clang 22.0.0git
|
Classes | |
class | CommentToXMLConverter |
struct | DeclOccurrence |
class | FileIndexRecord |
Stores the declaration occurrences seen in a particular source or header file of a translation unit. More... | |
class | IndexDataConsumer |
class | IndexingContext |
struct | IndexingOptions |
class | PathPool |
Pool of filesystem paths backed by a StringPool. More... | |
class | SerializablePathCollection |
Stores file paths and produces serialization-friendly representation. More... | |
class | StringPool |
Pool of strings. More... | |
struct | SymbolInfo |
struct | SymbolRelation |
Represents a relation to another symbol for a symbol occurrence. More... |
Typedefs | |
typedef uint16_t | SymbolPropertySet |
typedef unsigned | SymbolRoleSet |
Functions | |
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< ASTConsumer > | createIndexingASTConsumer (std::shared_ptr< IndexDataConsumer > DataConsumer, const IndexingOptions &Opts, std::shared_ptr< Preprocessor > PP, std::function< bool(const Decl *)> ShouldSkipFunctionBody) |
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. | |
void | indexTopLevelDecls (ASTContext &Ctx, Preprocessor &PP, ArrayRef< const Decl * > Decls, IndexDataConsumer &DataConsumer, IndexingOptions Opts) |
Recursively indexes Decls . | |
std::unique_ptr< PPCallbacks > | indexMacrosCallback (IndexDataConsumer &Consumer, IndexingOptions Opts) |
Creates a PPCallbacks that indexes macros and feeds macros to Consumer . | |
void | indexModuleFile (serialization::ModuleFile &Mod, ASTReader &Reader, IndexDataConsumer &DataConsumer, IndexingOptions Opts) |
Recursively indexes all top-level decls in the module. | |
SymbolInfo | getSymbolInfo (const Decl *D) |
SymbolInfo | getSymbolInfoForMacro (const MacroInfo &MI) |
bool | isFunctionLocalSymbol (const Decl *D) |
void | applyForEachSymbolRole (SymbolRoleSet Roles, llvm::function_ref< void(SymbolRole)> Fn) |
bool | applyForEachSymbolRoleInterruptible (SymbolRoleSet Roles, llvm::function_ref< bool(SymbolRole)> Fn) |
void | printSymbolRoles (SymbolRoleSet Roles, raw_ostream &OS) |
bool | printSymbolName (const Decl *D, const LangOptions &LO, raw_ostream &OS) |
StringRef | getSymbolKindString (SymbolKind K) |
StringRef | getSymbolSubKindString (SymbolSubKind K) |
StringRef | getSymbolLanguageString (SymbolLanguage K) |
void | applyForEachSymbolProperty (SymbolPropertySet Props, llvm::function_ref< void(SymbolProperty)> Fn) |
void | printSymbolProperties (SymbolPropertySet Props, raw_ostream &OS) |
static StringRef | getUSRSpacePrefix () |
bool | generateUSRForDecl (const Decl *D, SmallVectorImpl< char > &Buf) |
Generate a USR for a Decl, including the USR prefix. | |
bool | generateUSRForDecl (const Decl *D, SmallVectorImpl< char > &Buf, const LangOptions &LangOpts) |
void | generateUSRForObjCClass (StringRef Cls, raw_ostream &OS, StringRef ExtSymbolDefinedIn="", StringRef CategoryContextExtSymbolDefinedIn="") |
Generate a USR fragment for an Objective-C class. | |
void | generateUSRForObjCCategory (StringRef Cls, StringRef Cat, raw_ostream &OS, StringRef ClsExtSymbolDefinedIn="", StringRef CatExtSymbolDefinedIn="") |
Generate a USR fragment for an Objective-C class category. | |
void | generateUSRForObjCIvar (StringRef Ivar, raw_ostream &OS) |
Generate a USR fragment for an Objective-C instance variable. | |
void | generateUSRForObjCMethod (StringRef Sel, bool IsInstanceMethod, raw_ostream &OS) |
Generate a USR fragment for an Objective-C method. | |
void | generateUSRForObjCProperty (StringRef Prop, bool isClassProp, raw_ostream &OS) |
Generate a USR fragment for an Objective-C property. | |
void | generateUSRForObjCProtocol (StringRef Prot, raw_ostream &OS, StringRef ExtSymbolDefinedIn="") |
Generate a USR fragment for an Objective-C protocol. | |
void | generateUSRForGlobalEnum (StringRef EnumName, raw_ostream &OS, StringRef ExtSymbolDefinedIn="") |
Generate USR fragment for a global (non-nested) enum. | |
void | generateUSRForEnumConstant (StringRef EnumConstantName, raw_ostream &OS) |
Generate a USR fragment for an enum constant. | |
bool | generateUSRForMacro (const MacroDefinitionRecord *MD, const SourceManager &SM, SmallVectorImpl< char > &Buf) |
Generate a USR for a macro, including the USR prefix. | |
bool | generateUSRForMacro (StringRef MacroName, SourceLocation Loc, const SourceManager &SM, SmallVectorImpl< char > &Buf) |
bool | generateUSRForType (QualType T, ASTContext &Ctx, SmallVectorImpl< char > &Buf) |
Generates a USR for a type. | |
bool | generateUSRForType (QualType T, ASTContext &Ctx, SmallVectorImpl< char > &Buf, const LangOptions &LangOpts) |
bool | generateFullUSRForModule (const Module *Mod, raw_ostream &OS) |
Generate a USR for a module, including the USR prefix. | |
bool | generateFullUSRForTopLevelModuleName (StringRef ModName, raw_ostream &OS) |
Generate a USR for a top-level module name, including the USR prefix. | |
bool | generateUSRFragmentForModule (const Module *Mod, raw_ostream &OS) |
Generate a USR fragment for a module. | |
bool | generateUSRFragmentForModuleName (StringRef ModName, raw_ostream &OS) |
Generate a USR fragment for a module name. |
Variables | |
static const unsigned | SymbolPropertyBitNum = 9 |
static const unsigned | SymbolRoleBitNum = 21 |
typedef uint16_t clang::index::SymbolPropertySet |
Definition at line 84 of file IndexSymbol.h.
typedef unsigned clang::index::SymbolRoleSet |
Definition at line 134 of file IndexSymbol.h.
|
strong |
Definition at line 23 of file IndexSymbol.h.
|
strong |
Enumerator | |
---|---|
C | |
ObjC | |
CXX | |
Swift |
Definition at line 65 of file IndexSymbol.h.
|
strong |
Set of properties that provide additional info about a symbol.
Enumerator | |
---|---|
Generic | |
TemplatePartialSpecialization | |
TemplateSpecialization | |
UnitTest | |
IBAnnotated | |
IBOutletCollection | |
GKInspectable | |
Local | |
ProtocolInterface | Symbol is part of a protocol interface. |
Definition at line 86 of file IndexSymbol.h.
|
strong |
Set of roles that are attributed to symbol occurrences.
Low 9 bits of clang-c/include/Index.h CXSymbolRole mirrors this enum.
Definition at line 103 of file IndexSymbol.h.
|
strong |
Language specific sub-kinds.
Enumerator | |
---|---|
None | |
CXXCopyConstructor | |
CXXMoveConstructor | |
AccessorGetter | |
AccessorSetter | |
UsingTypename | |
UsingValue | |
UsingEnum |
Definition at line 73 of file IndexSymbol.h.
void clang::index::applyForEachSymbolProperty | ( | SymbolPropertySet | Props, |
llvm::function_ref< void(SymbolProperty)> | Fn ) |
Definition at line 573 of file IndexSymbol.cpp.
References APPLY_FOR_PROPERTY, Generic, GKInspectable, IBAnnotated, IBOutletCollection, Local, ProtocolInterface, TemplatePartialSpecialization, TemplateSpecialization, and UnitTest.
Referenced by printSymbolProperties().
void clang::index::applyForEachSymbolRole | ( | SymbolRoleSet | Roles, |
llvm::function_ref< void(SymbolRole)> | Fn ) |
Definition at line 449 of file IndexSymbol.cpp.
References applyForEachSymbolRoleInterruptible().
Referenced by printSymbolRoles().
bool clang::index::applyForEachSymbolRoleInterruptible | ( | SymbolRoleSet | Roles, |
llvm::function_ref< bool(SymbolRole)> | Fn ) |
Definition at line 415 of file IndexSymbol.cpp.
References AddressOf, APPLY_FOR_ROLE, Call, Declaration, Definition, Dynamic, Implicit, NameReference, Read, Reference, RelationAccessorOf, RelationBaseOf, RelationCalledBy, RelationChildOf, RelationContainedBy, RelationExtendedBy, RelationIBTypeOf, RelationOverrideOf, RelationReceivedBy, RelationSpecializationOf, Undefinition, and Write.
Referenced by applyForEachSymbolRole(), and shouldReportOccurrenceForSystemDeclOnlyMode().
std::unique_ptr< FrontendAction > clang::index::createIndexingAction | ( | std::shared_ptr< IndexDataConsumer > | DataConsumer, |
const IndexingOptions & | Opts ) |
Creates a frontend action that indexes all symbols (macros and AST decls).
Definition at line 193 of file IndexingAction.cpp.
std::unique_ptr< ASTConsumer > clang::index::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).
Definition at line 177 of file IndexingAction.cpp.
References bool, createIndexingASTConsumer(), std::function, and clang::index::IndexingOptions::ShouldTraverseDecl.
Referenced by createIndexingASTConsumer().
std::unique_ptr< ASTConsumer > clang::index::createIndexingASTConsumer | ( | std::shared_ptr< IndexDataConsumer > | DataConsumer, |
const IndexingOptions & | Opts, | ||
std::shared_ptr< Preprocessor > | PP, | ||
std::function< bool(const Decl *)> | ShouldSkipFunctionBody ) |
Definition at line 169 of file IndexingAction.cpp.
References std::function.
Generate a USR for a module, including the USR prefix.
Definition at line 1260 of file USRGeneration.cpp.
References generateFullUSRForModule(), generateFullUSRForTopLevelModuleName(), generateUSRFragmentForModule(), Module, clang::Module::Name, and clang::Module::Parent.
Referenced by generateFullUSRForModule().
bool clang::index::generateFullUSRForTopLevelModuleName | ( | StringRef | ModName, |
raw_ostream & | OS ) |
Generate a USR for a top-level module name, including the USR prefix.
Definition at line 1269 of file USRGeneration.cpp.
References generateUSRFragmentForModuleName(), and getUSRSpacePrefix().
Referenced by generateFullUSRForModule().
bool clang::index::generateUSRForDecl | ( | const Decl * | D, |
SmallVectorImpl< char > & | Buf ) |
Generate a USR for a Decl, including the USR prefix.
Definition at line 1184 of file USRGeneration.cpp.
References generateUSRForDecl(), clang::Decl::getASTContext(), and clang::ASTContext::getLangOpts().
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< std::conditional_t< std::is_same_v< Derived, void >, ExtractAPIVisitor<>, Derived > >::createSymbolReferenceForDecl(), generateUSRForDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< std::conditional_t< std::is_same_v< Derived, void >, ExtractAPIVisitor<>, Derived > >::getBases(), clang::extractapi::DeclarationFragmentsBuilder::getFragmentsForObjCCategory(), clang::extractapi::DeclarationFragmentsBuilder::getFragmentsForObjCInterface(), clang::extractapi::DeclarationFragmentsBuilder::getFragmentsForObjCProtocol(), clang::extractapi::DeclarationFragmentsBuilder::getFragmentsForTemplateArguments(), clang::cross_tu::CrossTranslationUnitContext::getLookupName(), clang::extractapi::TypedefUnderlyingTypeResolver::getSymbolReferenceForType(), clang::tooling::getUSRForDecl(), clang::extractapi::TypedefUnderlyingTypeResolver::getUSRForType(), clang::extractapi::impl::ExtractAPIVisitorBase< std::conditional_t< std::is_same_v< Derived, void >, ExtractAPIVisitor<>, Derived > >::maybeMergeWithAnonymousTag(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordEnumConstants(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCInstanceVariables(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCMethods(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCProperties(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::TraverseCXXRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::TraverseRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplatePartialSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplateSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitConceptDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConstructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConversionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXDestructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXMethodDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitEnumDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFieldDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitNamespaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCCategoryDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCInterfaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCProtocolDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitTypedefNameDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplatePartialSpecializationDecl(), and clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateSpecializationDecl().
bool clang::index::generateUSRForDecl | ( | const Decl * | D, |
SmallVectorImpl< char > & | Buf, | ||
const LangOptions & | LangOpts ) |
Definition at line 1191 of file USRGeneration.cpp.
References clang::Decl::getASTContext(), clang::Decl::getAttr(), and clang::Decl::getCanonicalDecl().
void clang::index::generateUSRForEnumConstant | ( | StringRef | EnumConstantName, |
raw_ostream & | OS ) |
Generate a USR fragment for an enum constant.
Definition at line 1179 of file USRGeneration.cpp.
void clang::index::generateUSRForGlobalEnum | ( | StringRef | EnumName, |
raw_ostream & | OS, | ||
StringRef | ExtSymbolDefinedIn = "" ) |
Generate USR fragment for a global (non-nested) enum.
Definition at line 1172 of file USRGeneration.cpp.
bool clang::index::generateUSRForMacro | ( | const MacroDefinitionRecord * | MD, |
const SourceManager & | SM, | ||
SmallVectorImpl< char > & | Buf ) |
Generate a USR for a macro, including the USR prefix.
Definition at line 1213 of file USRGeneration.cpp.
References generateUSRForMacro(), clang::MacroDefinitionRecord::getLocation(), clang::IdentifierInfo::getName(), clang::MacroDefinitionRecord::getName(), and SM.
Referenced by generateUSRForMacro().
bool clang::index::generateUSRForMacro | ( | StringRef | MacroName, |
SourceLocation | Loc, | ||
const SourceManager & | SM, | ||
SmallVectorImpl< char > & | Buf ) |
Definition at line 1223 of file USRGeneration.cpp.
References getUSRSpacePrefix(), clang::SourceLocation::isValid(), printLoc(), and SM.
void clang::index::generateUSRForObjCCategory | ( | StringRef | Cls, |
StringRef | Cat, | ||
raw_ostream & | OS, | ||
StringRef | ClsExtSymbolDefinedIn = "", | ||
StringRef | CatExtSymbolDefinedIn = "" ) |
Generate a USR fragment for an Objective-C class category.
Definition at line 1142 of file USRGeneration.cpp.
References combineClassAndCategoryExtContainers().
void clang::index::generateUSRForObjCClass | ( | StringRef | Cls, |
raw_ostream & | OS, | ||
StringRef | ExtSymbolDefinedIn = "", | ||
StringRef | CategoryContextExtSymbolDefinedIn = "" ) |
Generate a USR fragment for an Objective-C class.
Definition at line 1134 of file USRGeneration.cpp.
References combineClassAndCategoryExtContainers().
void clang::index::generateUSRForObjCIvar | ( | StringRef | Ivar, |
raw_ostream & | OS ) |
Generate a USR fragment for an Objective-C instance variable.
The complete USR can be created by concatenating the USR for the encompassing class with this USR fragment.
Definition at line 1150 of file USRGeneration.cpp.
void clang::index::generateUSRForObjCMethod | ( | StringRef | Sel, |
bool | IsInstanceMethod, | ||
raw_ostream & | OS ) |
Generate a USR fragment for an Objective-C method.
Definition at line 1154 of file USRGeneration.cpp.
void clang::index::generateUSRForObjCProperty | ( | StringRef | Prop, |
bool | isClassProp, | ||
raw_ostream & | OS ) |
Generate a USR fragment for an Objective-C property.
Definition at line 1160 of file USRGeneration.cpp.
void clang::index::generateUSRForObjCProtocol | ( | StringRef | Prot, |
raw_ostream & | OS, | ||
StringRef | ExtSymbolDefinedIn = "" ) |
Generate a USR fragment for an Objective-C protocol.
Definition at line 1165 of file USRGeneration.cpp.
bool clang::index::generateUSRForType | ( | QualType | T, |
ASTContext & | Ctx, | ||
SmallVectorImpl< char > & | Buf ) |
Generates a USR for a type.
Definition at line 1243 of file USRGeneration.cpp.
References generateUSRForType(), clang::ASTContext::getLangOpts(), and clang::T.
Referenced by generateUSRForType(), clang::extractapi::TypedefUnderlyingTypeResolver::getSymbolReferenceForType(), and clang::extractapi::TypedefUnderlyingTypeResolver::getUSRForType().
bool clang::index::generateUSRForType | ( | QualType | T, |
ASTContext & | Ctx, | ||
SmallVectorImpl< char > & | Buf, | ||
const LangOptions & | LangOpts ) |
Definition at line 1248 of file USRGeneration.cpp.
References clang::T.
Generate a USR fragment for a module.
Definition at line 1275 of file USRGeneration.cpp.
References generateUSRFragmentForModuleName(), Module, and clang::Module::Name.
Referenced by generateFullUSRForModule().
bool clang::index::generateUSRFragmentForModuleName | ( | StringRef | ModName, |
raw_ostream & | OS ) |
Generate a USR fragment for a module name.
Definition at line 1280 of file USRGeneration.cpp.
Referenced by generateFullUSRForTopLevelModuleName(), and generateUSRFragmentForModule().
SymbolInfo clang::index::getSymbolInfo | ( | const Decl * | D | ) |
Definition at line 86 of file IndexSymbol.cpp.
References AccessorGetter, AccessorSetter, C, clang::cast(), checkForIBOutlets(), Class, clang::Class, ClassMethod, Concept, Constructor, ConversionFunction, CXX, CXXCopyConstructor, CXXMoveConstructor, Destructor, Enum, clang::Enum, EnumConstant, Extension, Field, Function, Generic, clang::Decl::getAttr(), clang::Decl::getDeclContext(), clang::Decl::getExternalSourceSymbolAttr(), clang::Decl::getKind(), GKInspectable, clang::Decl::hasAttr(), IBAnnotated, InstanceMethod, InstanceProperty, clang::Interface, clang::isa(), isFunctionLocalSymbol(), clang::ObjCMethodDecl::isInstanceMethod(), clang::ObjCMethodDecl::isPropertyAccessor(), clang::CXXMethodDecl::isStatic(), isUnitTest(), isUnitTestCase(), clang::index::SymbolInfo::Kind, clang::index::SymbolInfo::Lang, Local, Module, Namespace, NamespaceAlias, None, NonTypeTemplateParm, ObjC, clang::ObjCMethodDecl::param_size(), Parameter, clang::index::SymbolInfo::Properties, Protocol, ProtocolInterface, StaticMethod, StaticProperty, Struct, clang::Struct, clang::index::SymbolInfo::SubKind, Swift, TemplatePartialSpecialization, TemplateSpecialization, TemplateTemplateParm, TemplateTypeParm, clang::FunctionDecl::TK_FunctionTemplateSpecialization, TypeAlias, Union, clang::Union, UnitTest, Unknown, Using, UsingEnum, UsingTypename, UsingValue, and Variable.
SymbolInfo clang::index::getSymbolInfoForMacro | ( | const MacroInfo & | MI | ) |
Definition at line 406 of file IndexSymbol.cpp.
References C, clang::index::SymbolInfo::Kind, clang::index::SymbolInfo::Lang, Macro, None, clang::index::SymbolInfo::Properties, and clang::index::SymbolInfo::SubKind.
StringRef clang::index::getSymbolKindString | ( | SymbolKind | K | ) |
Definition at line 508 of file IndexSymbol.cpp.
References Class, ClassMethod, ClassProperty, Concept, Constructor, ConversionFunction, Destructor, Enum, EnumConstant, Extension, Field, Function, IncludeDirective, InstanceMethod, InstanceProperty, Macro, Module, Namespace, NamespaceAlias, NonTypeTemplateParm, Parameter, Protocol, StaticMethod, StaticProperty, Struct, TemplateTemplateParm, TemplateTypeParm, TypeAlias, Union, Unknown, Using, and Variable.
StringRef clang::index::getSymbolLanguageString | ( | SymbolLanguage | K | ) |
StringRef clang::index::getSymbolSubKindString | ( | SymbolSubKind | K | ) |
Definition at line 549 of file IndexSymbol.cpp.
References AccessorGetter, AccessorSetter, CXXCopyConstructor, CXXMoveConstructor, None, UsingEnum, UsingTypename, and UsingValue.
|
inlinestatic |
Definition at line 27 of file USRGeneration.h.
Referenced by generateFullUSRForTopLevelModuleName(), and generateUSRForMacro().
void clang::index::indexASTUnit | ( | ASTUnit & | Unit, |
IndexDataConsumer & | DataConsumer, | ||
IndexingOptions | Opts ) |
Recursively indexes all decls in the AST.
Definition at line 258 of file IndexingAction.cpp.
References clang::index::IndexDataConsumer::finish(), clang::ASTUnit::getASTContext(), clang::ASTUnit::getPreprocessor(), clang::ASTUnit::getPreprocessorPtr(), clang::index::IndexingOptions::IndexMacrosInPreprocessor, indexPreprocessorMacros(), indexTranslationUnit(), clang::index::IndexDataConsumer::initialize(), clang::index::IndexingContext::setASTContext(), and clang::index::IndexDataConsumer::setPreprocessor().
std::unique_ptr< PPCallbacks > clang::index::indexMacrosCallback | ( | IndexDataConsumer & | Consumer, |
IndexingOptions | Opts ) |
Creates a PPCallbacks that indexes macros and feeds macros to Consumer
.
The caller is responsible for calling Consumer.setPreprocessor().
Definition at line 289 of file IndexingAction.cpp.
void clang::index::indexModuleFile | ( | serialization::ModuleFile & | Mod, |
ASTReader & | Reader, | ||
IndexDataConsumer & | DataConsumer, | ||
IndexingOptions | Opts ) |
Recursively indexes all top-level decls in the module.
Definition at line 294 of file IndexingAction.cpp.
References clang::index::IndexDataConsumer::finish(), clang::ASTReader::getContext(), clang::ASTReader::getModuleFileLevelDecls(), clang::ASTReader::getPreprocessor(), clang::index::IndexingOptions::IndexMacrosInPreprocessor, indexPreprocessorModuleMacros(), clang::index::IndexingContext::indexTopLevelDecl(), clang::index::IndexDataConsumer::initialize(), and clang::index::IndexingContext::setASTContext().
void clang::index::indexTopLevelDecls | ( | ASTContext & | Ctx, |
Preprocessor & | PP, | ||
ArrayRef< const Decl * > | Decls, | ||
IndexDataConsumer & | DataConsumer, | ||
IndexingOptions | Opts ) |
Recursively indexes Decls
.
Definition at line 271 of file IndexingAction.cpp.
References clang::index::IndexDataConsumer::finish(), clang::index::IndexingOptions::IndexMacrosInPreprocessor, indexPreprocessorMacros(), clang::index::IndexingContext::indexTopLevelDecl(), clang::index::IndexDataConsumer::initialize(), and clang::index::IndexingContext::setASTContext().
Definition at line 53 of file IndexSymbol.cpp.
References clang::External, clang::Decl::getParentFunctionOrMethod(), clang::Internal, clang::Invalid, clang::isa(), clang::Module, clang::None, clang::UniqueExternal, and clang::VisibleNone.
Referenced by getSymbolInfo(), clang::index::IndexingContext::handleReference(), and clang::index::IndexingContext::indexTagDecl().
bool clang::index::printSymbolName | ( | const Decl * | D, |
const LangOptions & | LO, | ||
raw_ostream & | OS ) |
Definition at line 490 of file IndexSymbol.cpp.
References clang::DeclarationName::isEmpty(), clang::DeclarationName::print(), and clang::PrintingPolicy::SuppressTemplateArgsInCXXConstructors.
void clang::index::printSymbolProperties | ( | SymbolPropertySet | Props, |
raw_ostream & | OS ) |
Definition at line 592 of file IndexSymbol.cpp.
References applyForEachSymbolProperty(), Generic, GKInspectable, IBAnnotated, IBOutletCollection, Local, ProtocolInterface, TemplatePartialSpecialization, TemplateSpecialization, and UnitTest.
void clang::index::printSymbolRoles | ( | SymbolRoleSet | Roles, |
raw_ostream & | OS ) |
Definition at line 457 of file IndexSymbol.cpp.
References AddressOf, applyForEachSymbolRole(), Call, Declaration, Definition, Dynamic, Implicit, NameReference, Read, Reference, RelationAccessorOf, RelationBaseOf, RelationCalledBy, RelationChildOf, RelationContainedBy, RelationExtendedBy, RelationIBTypeOf, RelationOverrideOf, RelationReceivedBy, RelationSpecializationOf, Role, Undefinition, and Write.
|
static |
Definition at line 98 of file IndexSymbol.h.
|
static |
Definition at line 133 of file IndexSymbol.h.