10 #ifndef LLVM_CLANG_INDEX_INDEXINGACTION_H 11 #define LLVM_CLANG_INDEX_INDEXINGACTION_H 16 #include "llvm/ADT/ArrayRef.h" 26 namespace serialization {
31 class IndexDataConsumer;
41 = SystemSymbolFilterKind::DeclarationsOnly;
42 bool IndexFunctionLocals =
false;
43 bool IndexImplicitInstantiation =
false;
47 bool IndexMacrosInPreprocessor =
false;
52 std::unique_ptr<FrontendAction>
55 std::unique_ptr<FrontendAction> WrappedAction);
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...
Defines the clang::Preprocessor interface.
Information about a module that has been loaded by the ASTReader.
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< FrontendAction > createIndexingAction(std::shared_ptr< IndexDataConsumer > DataConsumer, IndexingOptions Opts, std::unique_ptr< FrontendAction > WrappedAction)
Creates a frontend action that indexes all symbols (macros and AST decls).
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.