]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/include/clang/Frontend/ASTConsumers.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / clang / include / clang / Frontend / ASTConsumers.h
1 //===--- ASTConsumers.h - ASTConsumer implementations -----------*- 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 // AST Consumers.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef DRIVER_ASTCONSUMERS_H
15 #define DRIVER_ASTCONSUMERS_H
16
17 #include "clang/Basic/LLVM.h"
18
19 namespace llvm {
20   namespace sys { class Path; }
21 }
22 namespace clang {
23
24 class ASTConsumer;
25 class CodeGenOptions;
26 class DiagnosticsEngine;
27 class FileManager;
28 class LangOptions;
29 class Preprocessor;
30 class TargetOptions;
31
32 // AST pretty-printer: prints out the AST in a format that is close to the
33 // original C code.  The output is intended to be in a format such that
34 // clang could re-parse the output back into the same AST, but the
35 // implementation is still incomplete.
36 ASTConsumer *CreateASTPrinter(raw_ostream *OS, StringRef FilterString);
37
38 // AST dumper: dumps the raw AST in human-readable form to stderr; this is
39 // intended for debugging.
40 ASTConsumer *CreateASTDumper(StringRef FilterString);
41
42 // AST Decl node lister: prints qualified names of all filterable AST Decl
43 // nodes.
44 ASTConsumer *CreateASTDeclNodeLister();
45
46 // AST XML-dumper: dumps out the AST to stderr in a very detailed XML
47 // format; this is intended for particularly intense debugging.
48 ASTConsumer *CreateASTDumperXML(raw_ostream &OS);
49
50 // Graphical AST viewer: for each function definition, creates a graph of
51 // the AST and displays it with the graph viewer "dotty".  Also outputs
52 // function declarations to stderr.
53 ASTConsumer *CreateASTViewer();
54
55 // DeclContext printer: prints out the DeclContext tree in human-readable form
56 // to stderr; this is intended for debugging.
57 ASTConsumer *CreateDeclContextPrinter();
58
59 } // end clang namespace
60
61 #endif