summaryrefslogtreecommitdiff
path: root/include/clang/Basic/DiagnosticIDs.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-27 06:15:43 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-27 06:15:43 +0000
commit11583c757bac6ce5c342f2eb572055dd2619a657 (patch)
treee7522cac1ca56be8a9a829aa31f6de00618d94c0 /include/clang/Basic/DiagnosticIDs.h
parent97a9cf3b99486c7e8c128fce7e230e31bc7ba7c9 (diff)
downloadclang-11583c757bac6ce5c342f2eb572055dd2619a657.tar.gz
clang-11583c757bac6ce5c342f2eb572055dd2619a657.tar.bz2
clang-11583c757bac6ce5c342f2eb572055dd2619a657.tar.xz
Due to a bug, -Wno-everything works like -Weverything. Fix the bug by having
-Wno-everything remap all warnings to ignored. We can now use "-Wno-everything -W<warning>" to ignore all warnings except specific ones. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticIDs.h')
-rw-r--r--include/clang/Basic/DiagnosticIDs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticIDs.h b/include/clang/Basic/DiagnosticIDs.h
index 30fda59538..40fc3a98be 100644
--- a/include/clang/Basic/DiagnosticIDs.h
+++ b/include/clang/Basic/DiagnosticIDs.h
@@ -263,6 +263,9 @@ public:
bool getDiagnosticsInGroup(StringRef Group,
llvm::SmallVectorImpl<diag::kind> &Diags) const;
+ /// \brief Get the set of all diagnostic IDs.
+ void getAllDiagnostics(llvm::SmallVectorImpl<diag::kind> &Diags) const;
+
/// \brief Get the warning option with the closest edit distance to the given
/// group name.
static StringRef getNearestWarningOption(StringRef Group);