Since clang does not support comment style fallthrough annotations
these should be switched to macros defined in Compiler.h. This
requires some fixing to Compiler.h.
Original patch: https://reviews.llvm.org/D66487
Paths
| Differential D66609
Allow Compiler.h to be included in C files and fix fallthrough warnings ClosedPublic Authored by Nathan-Huckleberry on Aug 22 2019, 11:11 AM.
Details Summary Since clang does not support comment style fallthrough annotations Original patch: https://reviews.llvm.org/D66487
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 22 2019, 12:32 PM Comment Actions Adding @rsmith as a reviewer just to be sure we are not missing something.
rsmith added inline comments.
Comment Actions Aside from commenting issue, LGTM.
Comment Actions Can we please either commit this, or revert r369414 otherwise? Several of the sanitizer buildbots have been red since Tuesday due to r369414. Closed by commit rL369782: Allow Compiler.h to be included in C files and fix fallthrough warnings (authored by Nathan-Huckleberry). · Explain WhyAug 23 2019, 10:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 216741 llvm/include/llvm/Support/Compiler.h
llvm/lib/Support/regcomp.c
|
The file comment should explicitly call out that we allow this function to be included in both C and C++ code.