Add another Clang TableGen-backend (-gen-clang-diags-options) for emitting
authorTed Kremenek <kremenek@apple.com>
Wed, 18 Mar 2009 21:16:16 +0000 (21:16 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 18 Mar 2009 21:16:16 +0000 (21:16 +0000)
commit8b9d027701dbfe4e0dad8c0fd8a2fdc95e7bf7db
treeebd00140e120568b78b0e40863513924dd90caea
parentd4771828caa4e3a0403cb32e6b1c6c96ffa41830
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.cpp
utils/TableGen/ClangDiagnosticsEmitter.h
utils/TableGen/TableGen.cpp