From 8b9d027701dbfe4e0dad8c0fd8a2fdc95e7bf7db Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 18 Mar 2009 21:16:16 +0000 Subject: 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 --- utils/TableGen/ClangDiagnosticsEmitter.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/TableGen/ClangDiagnosticsEmitter.h') 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 -- cgit v1.1