]> granicus.if.org Git - clang/commit
Rather than duplicating extension diagnostics to allow them to cause a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 12 Nov 2013 02:41:45 +0000 (02:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 12 Nov 2013 02:41:45 +0000 (02:41 +0000)
commit3347b497157d36cf280d1d9f52956faa6e702f34
tree372b2099708e639e20e5aff626d1a9586814f8f6
parente0ac9bfbf588e269fefc8758e715ee5804affb18
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
17 files changed:
include/clang/AST/ASTDiagnostic.h
include/clang/AST/CommentDiagnostic.h
include/clang/Analysis/AnalysisDiagnostic.h
include/clang/Basic/Diagnostic.td
include/clang/Basic/DiagnosticIDs.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Driver/DriverDiagnostic.h
include/clang/Frontend/FrontendDiagnostic.h
include/clang/Lex/LexDiagnostic.h
include/clang/Parse/ParseDiagnostic.h
include/clang/Sema/SemaDiagnostic.h
include/clang/Serialization/SerializationDiagnostic.h
lib/Basic/DiagnosticIDs.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaOverload.cpp
tools/diagtool/DiagnosticNames.cpp
utils/TableGen/ClangDiagnosticsEmitter.cpp