clang 22.0.0git
USRGeneration.h File Reference
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/StringRef.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::index

Functions

static StringRef clang::index::getUSRSpacePrefix ()
bool clang::index::generateUSRForDecl (const Decl *D, SmallVectorImpl< char > &Buf)
 Generate a USR for a Decl, including the USR prefix.
bool clang::index::generateUSRForDecl (const Decl *D, SmallVectorImpl< char > &Buf, const LangOptions &LangOpts)
void clang::index::generateUSRForObjCClass (StringRef Cls, raw_ostream &OS, StringRef ExtSymbolDefinedIn="", StringRef CategoryContextExtSymbolDefinedIn="")
 Generate a USR fragment for an Objective-C class.
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.
void clang::index::generateUSRForObjCIvar (StringRef Ivar, raw_ostream &OS)
 Generate a USR fragment for an Objective-C instance variable.
void clang::index::generateUSRForObjCMethod (StringRef Sel, bool IsInstanceMethod, raw_ostream &OS)
 Generate a USR fragment for an Objective-C method.
void clang::index::generateUSRForObjCProperty (StringRef Prop, bool isClassProp, raw_ostream &OS)
 Generate a USR fragment for an Objective-C property.
void clang::index::generateUSRForObjCProtocol (StringRef Prot, raw_ostream &OS, StringRef ExtSymbolDefinedIn="")
 Generate a USR fragment for an Objective-C protocol.
void clang::index::generateUSRForGlobalEnum (StringRef EnumName, raw_ostream &OS, StringRef ExtSymbolDefinedIn="")
 Generate USR fragment for a global (non-nested) enum.
void clang::index::generateUSRForEnumConstant (StringRef EnumConstantName, raw_ostream &OS)
 Generate a USR fragment for an enum constant.
bool clang::index::generateUSRForMacro (const MacroDefinitionRecord *MD, const SourceManager &SM, SmallVectorImpl< char > &Buf)
 Generate a USR for a macro, including the USR prefix.
bool clang::index::generateUSRForMacro (StringRef MacroName, SourceLocation Loc, const SourceManager &SM, SmallVectorImpl< char > &Buf)
bool clang::index::generateUSRForType (QualType T, ASTContext &Ctx, SmallVectorImpl< char > &Buf)
 Generates a USR for a type.
bool clang::index::generateUSRForType (QualType T, ASTContext &Ctx, SmallVectorImpl< char > &Buf, const LangOptions &LangOpts)
bool clang::index::generateFullUSRForModule (const Module *Mod, raw_ostream &OS)
 Generate a USR for a module, including the USR prefix.
bool clang::index::generateFullUSRForTopLevelModuleName (StringRef ModName, raw_ostream &OS)
 Generate a USR for a top-level module name, including the USR prefix.
bool clang::index::generateUSRFragmentForModule (const Module *Mod, raw_ostream &OS)
 Generate a USR fragment for a module.
bool clang::index::generateUSRFragmentForModuleName (StringRef ModName, raw_ostream &OS)
 Generate a USR fragment for a module name.