clang
3.9.0
|
Classes | |
class | CodegenNameGenerator |
class | CommentToXMLConverter |
class | IndexDataConsumer |
struct | IndexingOptions |
struct | SymbolRelation |
Represents a relation to another symbol for a symbol occurrence. More... | |
struct | SymbolInfo |
class | IndexingContext |
class | SimpleFormatContext |
A small class to be used by libclang clients to format a declaration string in memory. More... | |
Typedefs | |
typedef unsigned | SymbolSubKindSet |
typedef unsigned | SymbolRoleSet |
Functions | |
std::unique_ptr< FrontendAction > | createIndexingAction (std::shared_ptr< IndexDataConsumer > DataConsumer, IndexingOptions Opts, std::unique_ptr< FrontendAction > WrappedAction) |
void | indexASTUnit (ASTUnit &Unit, std::shared_ptr< IndexDataConsumer > DataConsumer, IndexingOptions Opts) |
SymbolInfo | getSymbolInfo (const Decl *D) |
void | applyForEachSymbolRole (SymbolRoleSet Roles, llvm::function_ref< void(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 | getSymbolLanguageString (SymbolLanguage K) |
void | applyForEachSymbolSubKind (SymbolSubKindSet SubKinds, llvm::function_ref< void(SymbolSubKind)> Fn) |
void | printSymbolSubKinds (SymbolSubKindSet SubKinds, raw_ostream &OS) |
static StringRef | getUSRSpacePrefix () |
bool | generateUSRForDecl (const Decl *D, SmallVectorImpl< char > &Buf) |
Generate a USR for a Decl, including the USR prefix. More... | |
void | generateUSRForObjCClass (StringRef Cls, raw_ostream &OS) |
Generate a USR fragment for an Objective-C class. More... | |
void | generateUSRForObjCCategory (StringRef Cls, StringRef Cat, raw_ostream &OS) |
Generate a USR fragment for an Objective-C class category. More... | |
void | generateUSRForObjCIvar (StringRef Ivar, raw_ostream &OS) |
Generate a USR fragment for an Objective-C instance variable. More... | |
void | generateUSRForObjCMethod (StringRef Sel, bool IsInstanceMethod, raw_ostream &OS) |
Generate a USR fragment for an Objective-C method. More... | |
void | generateUSRForObjCProperty (StringRef Prop, bool isClassProp, raw_ostream &OS) |
Generate a USR fragment for an Objective-C property. More... | |
void | generateUSRForObjCProtocol (StringRef Prot, raw_ostream &OS) |
Generate a USR fragment for an Objective-C protocol. More... | |
bool | generateUSRForMacro (const MacroDefinitionRecord *MD, const SourceManager &SM, SmallVectorImpl< char > &Buf) |
Generate a USR for a macro, including the USR prefix. More... | |
Variables | |
static const unsigned | SymbolSubKindBitNum = 6 |
static const unsigned | SymbolRoleBitNum = 14 |
typedef unsigned clang::index::SymbolRoleSet |
Definition at line 93 of file IndexSymbol.h.
Definition at line 71 of file IndexSymbol.h.
|
strong |
Definition at line 23 of file IndexSymbol.h.
|
strong |
Enumerator | |
---|---|
C | |
ObjC | |
CXX |
Definition at line 56 of file IndexSymbol.h.
|
strong |
Set of roles that are attributed to symbol occurrences.
Enumerator | |
---|---|
Declaration | |
Definition | |
Reference | |
Read | |
Write | |
Call | |
Dynamic | |
AddressOf | |
Implicit | |
RelationChildOf | |
RelationBaseOf | |
RelationOverrideOf | |
RelationReceivedBy | |
RelationCalledBy |
Definition at line 74 of file IndexSymbol.h.
|
strong |
Enumerator | |
---|---|
Generic | |
TemplatePartialSpecialization | |
TemplateSpecialization | |
UnitTest | |
IBAnnotated | |
IBOutletCollection |
Definition at line 62 of file IndexSymbol.h.
void clang::index::applyForEachSymbolRole | ( | SymbolRoleSet | Roles, |
llvm::function_ref< void(SymbolRole)> | Fn | ||
) |
Definition at line 245 of file IndexSymbol.cpp.
References AddressOf, APPLY_FOR_ROLE, Call, Declaration, Definition, Dynamic, Implicit, Read, Reference, RelationBaseOf, RelationCalledBy, RelationChildOf, RelationOverrideOf, RelationReceivedBy, and Write.
Referenced by printSymbolRoles().
void clang::index::applyForEachSymbolSubKind | ( | SymbolSubKindSet | SubKinds, |
llvm::function_ref< void(SymbolSubKind)> | Fn | ||
) |
Definition at line 353 of file IndexSymbol.cpp.
References APPLY_FOR_SUBKIND, Generic, IBAnnotated, IBOutletCollection, TemplatePartialSpecialization, TemplateSpecialization, and UnitTest.
Referenced by printSymbolSubKinds().
std::unique_ptr< FrontendAction > clang::index::createIndexingAction | ( | std::shared_ptr< IndexDataConsumer > | DataConsumer, |
IndexingOptions | Opts, | ||
std::unique_ptr< FrontendAction > | WrappedAction | ||
) |
WrappedAction | another frontend action to wrap over or null. |
Definition at line 149 of file IndexingAction.cpp.
bool clang::index::generateUSRForDecl | ( | const Decl * | D, |
SmallVectorImpl< char > & | Buf | ||
) |
Generate a USR for a Decl, including the USR prefix.
Definition at line 876 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 887 of file USRGeneration.cpp.
References clang::MacroDefinitionRecord::getLocation(), clang::IdentifierInfo::getName(), clang::MacroDefinitionRecord::getName(), getUSRSpacePrefix(), clang::SourceManager::isInSystemHeader(), clang::SourceLocation::isInvalid(), and printLoc().
void clang::index::generateUSRForObjCCategory | ( | StringRef | Cls, |
StringRef | Cat, | ||
raw_ostream & | OS | ||
) |
Generate a USR fragment for an Objective-C class category.
Definition at line 852 of file USRGeneration.cpp.
void clang::index::generateUSRForObjCClass | ( | StringRef | Cls, |
raw_ostream & | OS | ||
) |
Generate a USR fragment for an Objective-C class.
Definition at line 848 of file USRGeneration.cpp.
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 857 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 861 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 867 of file USRGeneration.cpp.
void clang::index::generateUSRForObjCProtocol | ( | StringRef | Prot, |
raw_ostream & | OS | ||
) |
Generate a USR fragment for an Objective-C protocol.
Definition at line 872 of file USRGeneration.cpp.
SymbolInfo clang::index::getSymbolInfo | ( | const Decl * | D | ) |
Definition at line 52 of file IndexSymbol.cpp.
References C, checkForIBOutlets(), Class, ClassMethod, Constructor, ConversionFunction, CXX, Destructor, Enum, EnumConstant, Extension, Field, Function, Generic, IBAnnotated, clang::if(), InstanceMethod, InstanceProperty, clang::CXXMethodDecl::isStatic(), isUnitTest(), isUnitTestCase(), clang::index::SymbolInfo::Kind, clang::index::SymbolInfo::Lang, Module, Namespace, NamespaceAlias, ObjC, Protocol, StaticMethod, StaticProperty, Struct, clang::index::SymbolInfo::SubKinds, TemplatePartialSpecialization, TemplateSpecialization, clang::TTK_Class, clang::TTK_Enum, clang::TTK_Interface, clang::TTK_Struct, clang::TTK_Union, TypeAlias, Union, UnitTest, Unknown, and Variable.
StringRef clang::index::getSymbolKindString | ( | SymbolKind | K | ) |
Definition at line 313 of file IndexSymbol.cpp.
References clang::TypeAlias, and clang::prec::Unknown.
StringRef clang::index::getSymbolLanguageString | ( | SymbolLanguage | K | ) |
Definition at line 344 of file IndexSymbol.cpp.
References AttributeLangSupport::C, clang::CXX, and AttributeLangSupport::ObjC.
|
inlinestatic |
Definition at line 23 of file USRGeneration.h.
Referenced by generateUSRForMacro().
void clang::index::indexASTUnit | ( | ASTUnit & | Unit, |
std::shared_ptr< IndexDataConsumer > | DataConsumer, | ||
IndexingOptions | Opts | ||
) |
Definition at line 169 of file IndexingAction.cpp.
References clang::ASTUnit::getASTContext(), indexTranslationUnit(), and clang::index::IndexingContext::setASTContext().
bool clang::index::printSymbolName | ( | const Decl * | D, |
const LangOptions & | LO, | ||
raw_ostream & | OS | ||
) |
Definition at line 295 of file IndexSymbol.cpp.
References clang::DeclarationName::isEmpty(), clang::DeclarationName::print(), and clang::PrintingPolicy::SuppressTemplateArgsInCXXConstructors.
void clang::index::printSymbolRoles | ( | SymbolRoleSet | Roles, |
raw_ostream & | OS | ||
) |
Definition at line 269 of file IndexSymbol.cpp.
References applyForEachSymbolRole().
void clang::index::printSymbolSubKinds | ( | SymbolSubKindSet | SubKinds, |
raw_ostream & | OS | ||
) |
Definition at line 369 of file IndexSymbol.cpp.
References applyForEachSymbolSubKind().
|
static |
Definition at line 92 of file IndexSymbol.h.
|
static |
Definition at line 70 of file IndexSymbol.h.