bind9/lib/isc/include
Ondřej Surý 4657b0f0c4 Use C2x [[fallthrough]] when supported by LLVM/clang
Clang added support for the gcc-style fallthrough
attribute (i.e. __attribute__((fallthrough))) in version 10.  However,
__has_attribute(fallthrough) will return 1 in C mode in older versions,
even though they only support the C++11 fallthrough attribute. At best,
the unsupported attribute is simply ignored; at worst, it causes errors.

The C2x fallthrough attribute has the advantages of being supported in
the broadest range of clang versions (added in version 9) and being easy
to check for support. Use C2x [[fallthrough]] attribute if possible, and
fall back to not using an attribute for clang versions that don't have
it.

Courtesy of Joshua Root

(cherry picked from commit 14c8d43863)
2022-05-19 22:02:07 +02:00
..
isc Use C2x [[fallthrough]] when supported by LLVM/clang 2022-05-19 22:02:07 +02:00
pk11 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
pkcs11 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
.clang-format Merge branch '46-enforce-clang-format-rules' into 'master' 2020-02-14 08:45:59 +00:00
Makefile.in Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00