ΒΆvoid ParseAST(clang::Preprocessor& pp,
              clang::ASTConsumer* C,
              clang::ASTContext& Ctx,
              bool PrintStats = false,
              clang::TranslationUnitKind TUKind =
                  TU_Complete,
              clang::CodeCompleteConsumer*
                  CompletionConsumer = nullptr,
              bool SkipFunctionBodies = false)

Description

Parse the entire file specified, notifying the ASTConsumer as the file is parsed. This operation inserts the parsed decls into the translation unit held by Ctx.

Declared at: clang/include/clang/Parse/ParseAST.h:38

Parameters

clang::Preprocessor& pp
clang::ASTConsumer* C
clang::ASTContext& Ctx
bool PrintStats = false
Whether to print LLVM statistics related to parsing.
clang::TranslationUnitKind TUKind = TU_Complete
The kind of translation unit being parsed.
clang::CodeCompleteConsumer* CompletionConsumer = nullptr
If given, an object to consume code completion results.
bool SkipFunctionBodies = false
Whether to skip parsing of function bodies. This option can be used, for example, to speed up searches for declarations/definitions when indexing.