summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/utils/TableGen/ClangASTNodesEmitter.h
blob: c4ce9fa820682cee4744bed81630242bc8e7794d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//===- ClangASTNodesEmitter.h - Generate Clang AST node tables -*- C++ -*--===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// These tablegen backends emit Clang AST node tables
//
//===----------------------------------------------------------------------===//

#ifndef CLANGAST_EMITTER_H
#define CLANGAST_EMITTER_H

#include "TableGenBackend.h"

namespace llvm {

/// ClangStmtNodesEmitter - The top-level class emits .def files containing
///  declarations of Clang statements.
///
class ClangStmtNodesEmitter : public TableGenBackend {
  RecordKeeper &Records;
public:
  explicit ClangStmtNodesEmitter(RecordKeeper &R)
    : Records(R) {}

  // run - Output the .def file contents
  void run(raw_ostream &OS);
};

} // End llvm namespace

#endif
OpenPOWER on IntegriCloud