clang-tools 20.0.0git
|
#include <Representation.h>
Public Member Functions | |
Reference (SymbolID USR=SymbolID(), StringRef Name=StringRef(), InfoType IT=InfoType::IT_default) | |
Reference (SymbolID USR, StringRef Name, InfoType IT, StringRef QualName, StringRef Path=StringRef()) | |
bool | operator== (const Reference &Other) const |
bool | mergeable (const Reference &Other) |
void | merge (Reference &&I) |
bool | operator< (const Reference &Other) const |
llvm::SmallString< 64 > | getRelativeFilePath (const StringRef &CurrentPath) const |
Returns the path for this Reference relative to CurrentPath. | |
llvm::SmallString< 16 > | getFileBaseName () const |
Returns the basename that should be used for this Reference. | |
Public Attributes | |
SymbolID | USR = SymbolID() |
SmallString< 16 > | Name |
SmallString< 16 > | QualName |
InfoType | RefType = InfoType::IT_default |
llvm::SmallString< 128 > | Path |
Definition at line 87 of file Representation.h.
|
inline |
Definition at line 93 of file Representation.h.
|
inline |
Definition at line 96 of file Representation.h.
llvm::SmallString< 16 > clang::doc::Reference::getFileBaseName | ( | ) | const |
Returns the basename that should be used for this Reference.
Definition at line 158 of file Representation.cpp.
References clang::doc::IT_namespace, Name, and RefType.
Referenced by clang::doc::writeNameLink().
llvm::SmallString< 64 > clang::doc::Reference::getRelativeFilePath | ( | const StringRef & | CurrentPath | ) | const |
Returns the path for this Reference relative to CurrentPath.
Definition at line 154 of file Representation.cpp.
References clang::doc::calculateRelativeFilePath(), Name, Path, and RefType.
Referenced by clang::doc::writeNameLink().
void clang::doc::Reference::merge | ( | Reference && | I | ) |
Definition at line 181 of file Representation.cpp.
References mergeable(), Name, and Path.
bool clang::doc::Reference::mergeable | ( | const Reference & | Other | ) |
Definition at line 177 of file Representation.cpp.
Referenced by merge().
|
inline |
Definition at line 107 of file Representation.h.
References Name.
|
inline |
SmallString<16> clang::doc::Reference::Name |
Definition at line 120 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::genHTML(), clang::doc::genMarkdown(), getFileBaseName(), getRelativeFilePath(), clang::doc::FunctionInfo::merge(), merge(), clang::doc::TypedefInfo::merge(), clang::doc::Index::operator<(), operator<(), operator==(), clang::doc::parseRecord(), and clang::doc::writeNameLink().
llvm::SmallString<128> clang::doc::Reference::Path |
Definition at line 132 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), getRelativeFilePath(), merge(), and clang::doc::parseRecord().
SmallString<16> clang::doc::Reference::QualName |
Definition at line 125 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), operator==(), and clang::doc::parseRecord().
InfoType clang::doc::Reference::RefType = InfoType::IT_default |
Definition at line 127 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), getFileBaseName(), getRelativeFilePath(), mergeable(), operator==(), and clang::doc::parseRecord().
Definition at line 115 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::FunctionInfo::merge(), mergeable(), operator==(), clang::doc::Index::operator==(), and clang::doc::parseRecord().