9#ifndef LLVM_CLANG_INDEX_INDEXINGACTION_H
10#define LLVM_CLANG_INDEX_INDEXINGACTION_H
17#include "llvm/ADT/ArrayRef.h"
28namespace serialization {
33class IndexDataConsumer;
36std::unique_ptr<ASTConsumer>
38 const IndexingOptions &Opts,
39 std::shared_ptr<Preprocessor> PP);
42 std::shared_ptr<IndexDataConsumer> DataConsumer,
43 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP,
46 std::function<
bool(
const Decl *)> ShouldSkipFunctionBody);
49std::unique_ptr<FrontendAction>
51 const IndexingOptions &Opts);
54void indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer,
55 IndexingOptions Opts);
59 ArrayRef<const Decl *> Decls,
60 IndexDataConsumer &DataConsumer, IndexingOptions Opts);
65 IndexingOptions Opts);
69 IndexDataConsumer &DataConsumer, IndexingOptions Opts);
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Defines the PPCallbacks interface.
Defines the clang::Preprocessor interface.
@ Decl
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
std::unique_ptr< PPCallbacks > indexMacrosCallback(IndexDataConsumer &Consumer, IndexingOptions Opts)
Creates a PPCallbacks that indexes macros and feeds macros to Consumer.
void indexTopLevelDecls(ASTContext &Ctx, Preprocessor &PP, ArrayRef< const Decl * > Decls, IndexDataConsumer &DataConsumer, IndexingOptions Opts)
Recursively indexes Decls.
void indexModuleFile(serialization::ModuleFile &Mod, ASTReader &Reader, IndexDataConsumer &DataConsumer, IndexingOptions Opts)
Recursively indexes all top-level decls in the module.
std::unique_ptr< ASTConsumer > createIndexingASTConsumer(std::shared_ptr< IndexDataConsumer > DataConsumer, const IndexingOptions &Opts, std::shared_ptr< Preprocessor > PP)
Creates an ASTConsumer that indexes all symbols (macros and AST decls).
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).
void indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer, IndexingOptions Opts)
Recursively indexes all decls in the AST.
The JSON file list parser is used to communicate input to InstallAPI.