Add initial implementation of a TableGen backend for converting Clang-warnings
[oota-llvm.git] / utils / TableGen / ClangDiagnosticsEmitter.h
1 //===- ClangDiagnosticsEmitter.h - Generate Clang diagnostics tables -*- C++ -*-
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // These tablegen backends emit Clang diagnostics tables.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef CLANGDIAGS_EMITTER_H
15 #define CLANGDIAGS_EMITTER_H
16
17 #include "TableGenBackend.h"
18
19 namespace llvm {
20
21 /// ClangDiagsDefsEmitter - The top-level class emits .def files containing
22 ///  declarations of Clang diagnostics.
23 ///
24 class ClangDiagsDefsEmitter : public TableGenBackend {
25   RecordKeeper &Records;
26 public:
27   explicit ClangDiagsDefsEmitter(RecordKeeper &R) : Records(R) {}
28
29   // run - Output the .def file contents
30   void run(std::ostream &OS);
31 };
32
33 } // End llvm namespace
34
35 #endif