aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/ClangDiagnosticsEmitter.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-13 22:53:41 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-13 22:53:41 +0000
commit557f7f88ba686886278f83159b7a629c24a47176 (patch)
tree09cd2599390ad33eed6bac86dab9b3153f9c4622 /utils/TableGen/ClangDiagnosticsEmitter.h
parent04a847e70616cba0208c654729736a9d8f4047ac (diff)
downloadexternal_llvm-557f7f88ba686886278f83159b7a629c24a47176.zip
external_llvm-557f7f88ba686886278f83159b7a629c24a47176.tar.gz
external_llvm-557f7f88ba686886278f83159b7a629c24a47176.tar.bz2
Add (hidden) TableGen command option '-clang-component' which specifies the
component's warnings to process for '-gen-clang-diags-defs'. Also, when the component is specified, generate a '#if' prologue at the top of the generated .def file (to match the current files). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/ClangDiagnosticsEmitter.h')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.h b/utils/TableGen/ClangDiagnosticsEmitter.h
index 9397970..bedfe5a 100644
--- a/utils/TableGen/ClangDiagnosticsEmitter.h
+++ b/utils/TableGen/ClangDiagnosticsEmitter.h
@@ -23,8 +23,10 @@ namespace llvm {
///
class ClangDiagsDefsEmitter : public TableGenBackend {
RecordKeeper &Records;
+ const std::string& Component;
public:
- explicit ClangDiagsDefsEmitter(RecordKeeper &R) : Records(R) {}
+ explicit ClangDiagsDefsEmitter(RecordKeeper &R, const std::string& component)
+ : Records(R), Component(component) {}
// run - Output the .def file contents
void run(std::ostream &OS);