1 //===- ClangASTNodesEmitter.h - Generate Clang AST node tables -*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // These tablegen backends emit Clang AST node tables
12 //===----------------------------------------------------------------------===//
14 #ifndef CLANGAST_EMITTER_H
15 #define CLANGAST_EMITTER_H
17 #include "TableGenBackend.h"
21 /// ClangStmtNodesEmitter - The top-level class emits .def files containing
22 /// declarations of Clang statements.
24 class ClangStmtNodesEmitter
: public TableGenBackend
{
25 RecordKeeper
&Records
;
27 explicit ClangStmtNodesEmitter(RecordKeeper
&R
)
30 // run - Output the .def file contents
31 void run(raw_ostream
&OS
);
34 } // End llvm namespace