clang-tools
11.0.0
|
#include <Representation.h>
Public Member Functions | |
Reference ()=default | |
Reference (llvm::StringRef Name) | |
Reference (llvm::StringRef Name, StringRef Path) | |
Reference (SymbolID USR, StringRef Name, InfoType IT) | |
Reference (SymbolID USR, StringRef Name, InfoType IT, StringRef Path) | |
bool | operator== (const Reference &Other) const |
bool | mergeable (const Reference &Other) |
void | merge (Reference &&I) |
llvm::SmallString< 64 > | getRelativeFilePath (const StringRef &CurrentPath) const |
Returns the path for this Reference relative to CurrentPath. More... | |
llvm::SmallString< 16 > | getFileBaseName () const |
Returns the basename that should be used for this Reference. More... | |
Public Attributes | |
SymbolID | USR = SymbolID() |
SmallString< 16 > | Name |
InfoType | RefType = InfoType::IT_default |
llvm::SmallString< 128 > | Path |
bool | IsInGlobalNamespace = false |
Definition at line 115 of file Representation.h.
|
default |
|
inline |
Definition at line 117 of file Representation.h.
|
inline |
Definition at line 120 of file Representation.h.
Definition at line 122 of file Representation.h.
|
inline |
Definition at line 126 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 144 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 140 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 167 of file Representation.cpp.
References IsInGlobalNamespace, mergeable(), Name, and Path.
bool clang::doc::Reference::mergeable | ( | const Reference & | Other | ) |
Definition at line 163 of file Representation.cpp.
Referenced by merge().
|
inline |
Definition at line 130 of file Representation.h.
bool clang::doc::Reference::IsInGlobalNamespace = false |
Definition at line 154 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), and merge().
SmallString<16> clang::doc::Reference::Name |
Definition at line 145 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::genHTML(), clang::doc::genMarkdown(), getFileBaseName(), getRelativeFilePath(), merge(), clang::doc::FunctionInfo::merge(), clang::doc::Index::operator<(), operator==(), and clang::doc::writeNameLink().
llvm::SmallString<128> clang::doc::Reference::Path |
Definition at line 151 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), getRelativeFilePath(), and merge().
InfoType clang::doc::Reference::RefType = InfoType::IT_default |
Definition at line 146 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), getFileBaseName(), getRelativeFilePath(), mergeable(), and operator==().
Definition at line 144 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::FunctionInfo::merge(), mergeable(), operator==(), and clang::doc::Index::operator==().