diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-18 21:16:16 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-18 21:16:16 +0000 |
commit | 8b9d027701dbfe4e0dad8c0fd8a2fdc95e7bf7db (patch) | |
tree | ebd00140e120568b78b0e40863513924dd90caea /utils/TableGen/ClangDiagnosticsEmitter.h | |
parent | d4771828caa4e3a0403cb32e6b1c6c96ffa41830 (diff) | |
download | external_llvm-8b9d027701dbfe4e0dad8c0fd8a2fdc95e7bf7db.zip external_llvm-8b9d027701dbfe4e0dad8c0fd8a2fdc95e7bf7db.tar.gz external_llvm-8b9d027701dbfe4e0dad8c0fd8a2fdc95e7bf7db.tar.bz2 |
Add another Clang TableGen-backend (-gen-clang-diags-options) for emitting
declarations for controlling groups of warnings. Currently this transforms:
def UnusedMacrosDiags : Option<"unused-macros", [pp_macro_not_used]>;
into:
static const diag::kind UnusedMacrosDiags[] = { diag::pp_macro_not_used };
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/ClangDiagnosticsEmitter.h')
-rw-r--r-- | utils/TableGen/ClangDiagnosticsEmitter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.h b/utils/TableGen/ClangDiagnosticsEmitter.h index bedfe5a..b241bde 100644 --- a/utils/TableGen/ClangDiagnosticsEmitter.h +++ b/utils/TableGen/ClangDiagnosticsEmitter.h @@ -32,6 +32,15 @@ public: void run(std::ostream &OS); }; +class ClangOptionsEmitter : public TableGenBackend { + RecordKeeper &Records; +public: + explicit ClangOptionsEmitter(RecordKeeper &R) : Records(R) {} + + void run(std::ostream &OS); +}; + + } // End llvm namespace #endif |