]> granicus.if.org Git - llvm/commit
Allow Compiler.h to be included in C files and fix fallthrough warnings
authorNathan Huckleberry <nhuck@google.com>
Fri, 23 Aug 2019 17:25:21 +0000 (17:25 +0000)
committerNathan Huckleberry <nhuck@google.com>
Fri, 23 Aug 2019 17:25:21 +0000 (17:25 +0000)
commitc738adf0b79d7ca67ed18ba5fb1b5e68c8e7acdf
tree6fd90c4d8a11bae0a9766bdbc83e7230ca69ea03
parentd2340dbfa168a724db46b08eb5e7cd5f93604ff2
Allow Compiler.h to be included in C files and fix fallthrough warnings

Summary:
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

Reviewers: nickdesaulniers, aaron.ballman, xbolva00, rsmith

Reviewed By: nickdesaulniers, aaron.ballman, rsmith

Subscribers: rsmith, sfertile, ormris, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66609

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369782 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h
lib/Support/regcomp.c