1 //===--- ParseAST.h - Define the ParseAST method ----------------*- 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 // This file defines the clang::ParseAST method.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CLANG_PARSE_PARSEAST_H
15 #define LLVM_CLANG_PARSE_PARSEAST_H
17 #include "clang/Basic/LangOptions.h"
23 class CodeCompleteConsumer;
26 /// \brief Parse the entire file specified, notifying the ASTConsumer as
27 /// the file is parsed.
29 /// This operation inserts the parsed decls into the translation
32 /// \param TUKind The kind of translation unit being parsed.
34 /// \param CompletionConsumer If given, an object to consume code completion
36 void ParseAST(Preprocessor &pp, ASTConsumer *C,
37 ASTContext &Ctx, bool PrintStats = false,
38 TranslationUnitKind TUKind = TU_Complete,
39 CodeCompleteConsumer *CompletionConsumer = 0,
40 bool SkipFunctionBodies = false);
42 /// \brief Parse the main file known to the preprocessor, producing an
43 /// abstract syntax tree.
44 void ParseAST(Sema &S, bool PrintStats = false,
45 bool SkipFunctionBodies = false);
47 } // end namespace clang