9 #ifndef LLVM_CLANG_INDEX_INDEXINGACTION_H 10 #define LLVM_CLANG_INDEX_INDEXINGACTION_H 17 #include "llvm/ADT/ArrayRef.h" 28 namespace serialization {
33 class IndexDataConsumer;
37 std::shared_ptr<IndexDataConsumer> DataConsumer,
38 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP,
39 std::function<
bool(
const Decl *)> ShouldSkipFunctionBody);
42 std::shared_ptr<IndexDataConsumer> DataConsumer,
45 std::move(DataConsumer), Opts, std::move(PP),
46 [](
const Decl *) {
return false; });
50 std::unique_ptr<FrontendAction>
Decl - This represents one declaration (or definition), e.g.
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Utility class for loading a ASTContext from an AST file.
void indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer, IndexingOptions Opts)
Recursively indexes all decls in the AST.
void indexModuleFile(serialization::ModuleFile &Mod, ASTReader &Reader, IndexDataConsumer &DataConsumer, IndexingOptions Opts)
Recursively indexes all top-level decls in the module.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
std::unique_ptr< ASTConsumer > createIndexingASTConsumer(std::shared_ptr< IndexDataConsumer > DataConsumer, const IndexingOptions &Opts, std::shared_ptr< Preprocessor > PP)
Defines the clang::Preprocessor interface.
Information about a module that has been loaded by the ASTReader.
std::unique_ptr< FrontendAction > createIndexingAction(std::shared_ptr< IndexDataConsumer > DataConsumer, const IndexingOptions &Opts)
Creates a frontend action that indexes all symbols (macros and AST decls).
Dataflow Directional Tag Classes.
Reads an AST files chain containing the contents of a translation unit.
void indexTopLevelDecls(ASTContext &Ctx, Preprocessor &PP, ArrayRef< const Decl *> Decls, IndexDataConsumer &DataConsumer, IndexingOptions Opts)
Recursively indexes Decls.
Defines the PPCallbacks interface.
std::unique_ptr< PPCallbacks > indexMacrosCallback(IndexDataConsumer &Consumer, IndexingOptions Opts)
Creates a PPCallbacks that indexes macros and feeds macros to Consumer.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.