10 #ifndef LLVM_CLANG_INDEX_USRGENERATION_H 11 #define LLVM_CLANG_INDEX_USRGENERATION_H 14 #include "llvm/ADT/StringRef.h" 18 class MacroDefinitionRecord;
34 StringRef ExtSymbolDefinedIn =
"",
35 StringRef CategoryContextExtSymbolDefinedIn =
"");
39 StringRef ClsExtSymbolDefinedIn =
"",
40 StringRef CatExtSymbolDefinedIn =
"");
56 StringRef ExtSymbolDefinedIn =
"");
60 StringRef ExtSymbolDefinedIn =
"");
76 #endif // LLVM_CLANG_IDE_USRGENERATION_H bool generateUSRForMacro(const MacroDefinitionRecord *MD, const SourceManager &SM, SmallVectorImpl< char > &Buf)
Generate a USR for a macro, including the USR prefix.
void generateUSRForObjCCategory(StringRef Cls, StringRef Cat, raw_ostream &OS, StringRef ClsExtSymbolDefinedIn="", StringRef CatExtSymbolDefinedIn="")
Generate a USR fragment for an Objective-C class category.
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 ...
void generateUSRForObjCClass(StringRef Cls, raw_ostream &OS, StringRef ExtSymbolDefinedIn="", StringRef CategoryContextExtSymbolDefinedIn="")
Generate a USR fragment for an Objective-C class.
static StringRef getUSRSpacePrefix()
Record the location of a macro definition.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
void generateUSRForObjCMethod(StringRef Sel, bool IsInstanceMethod, raw_ostream &OS)
Generate a USR fragment for an Objective-C method.
Encodes a location in the source.
Dataflow Directional Tag Classes.
void generateUSRForEnumConstant(StringRef EnumConstantName, raw_ostream &OS)
Generate a USR fragment for an enum constant.
void generateUSRForObjCProtocol(StringRef Prot, raw_ostream &OS, StringRef ExtSymbolDefinedIn="")
Generate a USR fragment for an Objective-C protocol.
void generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS)
Generate a USR fragment for an Objective-C instance variable.
void generateUSRForObjCProperty(StringRef Prop, bool isClassProp, raw_ostream &OS)
Generate a USR fragment for an Objective-C property.
void generateUSRForGlobalEnum(StringRef EnumName, raw_ostream &OS, StringRef ExtSymbolDefinedIn="")
Generate USR fragment for a global (non-nested) enum.
bool generateUSRForDecl(const Decl *D, SmallVectorImpl< char > &Buf)
Generate a USR for a Decl, including the USR prefix.
This class handles loading and caching of source files into memory.