summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-11-12 02:41:45 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-11-12 02:41:45 +0000
commit3347b497157d36cf280d1d9f52956faa6e702f34 (patch)
tree372b2099708e639e20e5aff626d1a9586814f8f6 /tools
parente0ac9bfbf588e269fefc8758e715ee5804affb18 (diff)
downloadclang-3347b497157d36cf280d1d9f52956faa6e702f34.tar.gz
clang-3347b497157d36cf280d1d9f52956faa6e702f34.tar.bz2
clang-3347b497157d36cf280d1d9f52956faa6e702f34.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/diagtool/DiagnosticNames.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/diagtool/DiagnosticNames.cpp b/tools/diagtool/DiagnosticNames.cpp
index 34c3229c6e..155c62d80b 100644
--- a/tools/diagtool/DiagnosticNames.cpp
+++ b/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"