clang API Documentation

Namespaces | Functions
USRGeneration.h File Reference
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/StringRef.h"
Include dependency graph for USRGeneration.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  clang
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.
void clang::index::generateUSRForObjCClass (StringRef Cls, raw_ostream &OS)
 Generate a USR fragment for an Objective-C class.
void clang::index::generateUSRForObjCCategory (StringRef Cls, StringRef Cat, raw_ostream &OS)
 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. The complete USR can be created by concatenating the USR for the encompassing class with this USR fragment.
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, raw_ostream &OS)
 Generate a USR fragment for an Objective-C property.
void clang::index::generateUSRForObjCProtocol (StringRef Prot, raw_ostream &OS)
 Generate a USR fragment for an Objective-C protocol.
bool clang::index::generateUSRForMacro (const MacroDefinition *MD, const SourceManager &SM, SmallVectorImpl< char > &Buf)
 Generate a USR for a macro, including the USR prefix.