diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-06-01 21:23:17 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-06-01 21:23:17 +0000 |
commit | f11b0f9a4e8d79f1bf59f4271f96d28b55bcc067 (patch) | |
tree | 7bbeae13ab6fe02559808068b24312466fa216e0 /tools/diagtool/DiagnosticNames.h | |
parent | 39876df44d4aec9cbcb30bdfd6a0bc26867a2e75 (diff) | |
download | clang-f11b0f9a4e8d79f1bf59f4271f96d28b55bcc067.tar.gz clang-f11b0f9a4e8d79f1bf59f4271f96d28b55bcc067.tar.bz2 clang-f11b0f9a4e8d79f1bf59f4271f96d28b55bcc067.tar.xz |
[diagtool] Add 'show-enabled', which displays which warnings are enabled.
show-enabled uses the command line you give it to build a CompilerInstance,
so any flags you pass will be processed as if running clang proper.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/diagtool/DiagnosticNames.h')
-rw-r--r-- | tools/diagtool/DiagnosticNames.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/diagtool/DiagnosticNames.h b/tools/diagtool/DiagnosticNames.h new file mode 100644 index 0000000000..ac1934aac1 --- /dev/null +++ b/tools/diagtool/DiagnosticNames.h @@ -0,0 +1,28 @@ +//===- DiagnosticNames.h - Defines a table of all builtin diagnostics ------==// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/DataTypes.h" + +namespace diagtool { + struct DiagnosticRecord { + const char *NameStr; + unsigned short DiagID; + uint8_t NameLen; + + llvm::StringRef getName() const { + return llvm::StringRef(NameStr, NameLen); + } + }; + + extern const DiagnosticRecord BuiltinDiagnostics[]; + extern const size_t BuiltinDiagnosticsCount; + +} // end namespace diagtool + |