diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-12 02:41:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-12 02:41:45 +0000 |
commit | 16e1b07597f39af3f57dbed4d307498ab7c5c343 (patch) | |
tree | d4d64e695d45e84930340cc780ae9de70a9eadd8 /clang/tools/diagtool | |
parent | 72b31eee0b34844841dbddbb1e499dbbdbff8d2d (diff) | |
download | bcm5719-llvm-16e1b07597f39af3f57dbed4d307498ab7c5c343.tar.gz bcm5719-llvm-16e1b07597f39af3f57dbed4d307498ab7c5c343.zip |
Rather than duplicating extension diagnostics to allow them to cause a
substitution failure, allow a flag to be set on the Diagnostic object,
to mark it as 'causes substitution failure'.
Refactor Diagnostic.td and the tablegen to use an enum for SFINAE behavior
rather than a bunch of flags.
llvm-svn: 194444
Diffstat (limited to 'clang/tools/diagtool')
-rw-r--r-- | clang/tools/diagtool/DiagnosticNames.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/tools/diagtool/DiagnosticNames.cpp b/clang/tools/diagtool/DiagnosticNames.cpp index 34c3229c6eb..155c62d80b2 100644 --- a/clang/tools/diagtool/DiagnosticNames.cpp +++ b/clang/tools/diagtool/DiagnosticNames.cpp @@ -29,8 +29,7 @@ llvm::ArrayRef<DiagnosticRecord> diagtool::getBuiltinDiagnosticsByName() { // out of sync easily? static const DiagnosticRecord BuiltinDiagnosticsByID[] = { #define DIAG(ENUM,CLASS,DEFAULT_MAPPING,DESC,GROUP, \ - SFINAE,ACCESS,NOWERROR,SHOWINSYSHEADER, \ - CATEGORY) \ + SFINAE,NOWERROR,SHOWINSYSHEADER,CATEGORY) \ { #ENUM, diag::ENUM, STR_SIZE(#ENUM, uint8_t) }, #include "clang/Basic/DiagnosticCommonKinds.inc" #include "clang/Basic/DiagnosticDriverKinds.inc" |