clang-tools
9.0.0
|
A base struct for Infos. More...
#include <Representation.h>
Public Member Functions | |
Info ()=default | |
Info (InfoType IT) | |
Info (InfoType IT, SymbolID USR) | |
Info (InfoType IT, SymbolID USR, StringRef Name) | |
Info (const Info &Other)=delete | |
Info (Info &&Other)=default | |
virtual | ~Info ()=default |
void | mergeBase (Info &&I) |
bool | mergeable (const Info &Other) |
llvm::SmallString< 16 > | extractName () |
llvm::Expected< Reference > | getEnclosingScope () |
Public Attributes | |
SymbolID | USR |
const InfoType | IT = InfoType::IT_default |
SmallString< 16 > | Name |
llvm::SmallVector< Reference, 4 > | Namespace |
std::vector< CommentInfo > | Description |
llvm::SmallString< 128 > | Path |
A base struct for Infos.
Definition at line 218 of file Representation.h.
|
default |
|
inline |
Definition at line 220 of file Representation.h.
Definition at line 221 of file Representation.h.
Definition at line 222 of file Representation.h.
|
delete |
|
default |
|
virtualdefault |
llvm::SmallString< 16 > clang::doc::Info::extractName | ( | ) |
Definition at line 200 of file Representation.cpp.
References IT, clang::doc::IT_default, clang::doc::IT_enum, clang::doc::IT_function, clang::doc::IT_namespace, clang::doc::IT_record, Name, Namespace, and USR.
llvm::Expected<Reference> clang::doc::Info::getEnclosingScope | ( | ) |
bool clang::doc::Info::mergeable | ( | const Info & | Other | ) |
Definition at line 133 of file Representation.cpp.
Referenced by clang::doc::NamespaceInfo::merge(), clang::doc::SymbolInfo::merge(), clang::doc::FunctionInfo::merge(), clang::doc::RecordInfo::merge(), clang::doc::EnumInfo::merge(), and mergeBase().
void clang::doc::Info::mergeBase | ( | Info && | I | ) |
Definition at line 115 of file Representation.cpp.
References Description, mergeable(), Name, Namespace, Path, and USR.
Referenced by clang::doc::NamespaceInfo::merge(), and clang::doc::SymbolInfo::merge().
std::vector<CommentInfo> clang::doc::Info::Description |
Definition at line 235 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::getCommentInfo(), llvm::yaml::InfoMapping(), mergeBase(), and clang::doc::serialize::populateInfo().
const InfoType clang::doc::Info::IT = InfoType::IT_default |
Definition at line 231 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::dispatchInfoForWrite(), extractName(), and mergeable().
SmallString<16> clang::doc::Info::Name |
Definition at line 232 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), extractName(), llvm::yaml::InfoMapping(), mergeBase(), and clang::doc::serialize::populateInfo().
llvm::SmallVector<Reference, 4> clang::doc::Info::Namespace |
Definition at line 234 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::serialize::emitInfo(), extractName(), llvm::yaml::InfoMapping(), mergeBase(), and clang::doc::serialize::populateInfo().
llvm::SmallString<128> clang::doc::Info::Path |
Definition at line 236 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), llvm::yaml::InfoMapping(), and mergeBase().
SymbolID clang::doc::Info::USR |
Definition at line 229 of file Representation.h.
Referenced by clang::doc::ClangDocBitcodeWriter::emitBlock(), extractName(), llvm::yaml::InfoMapping(), mergeable(), mergeBase(), and clang::doc::serialize::populateInfo().