clang 20.0.0git
|
The base representation of an API record. Holds common symbol information. More...
#include "clang/ExtractAPI/API.h"
Public Member Functions | |
APIRecord * | getNextInContext () const |
RecordKind | getKind () const |
RecordKind | getKindForDisplay () const |
APIRecord ()=delete | |
APIRecord (RecordKind Kind, StringRef USR, StringRef Name, SymbolReference Parent, PresumedLoc Location, AvailabilityInfo Availability, LinkageInfo Linkage, const DocComment &Comment, DeclarationFragments Declaration, DeclarationFragments SubHeading, bool IsFromSystemHeader, AccessControl Access=AccessControl()) | |
APIRecord (RecordKind Kind, StringRef USR, StringRef Name) | |
virtual | ~APIRecord ()=0 |
Static Public Member Functions | |
static APIRecord * | castFromRecordContext (const RecordContext *Ctx) |
static RecordContext * | castToRecordContext (const APIRecord *Record) |
static bool | classof (const APIRecord *Record) |
static bool | classofKind (RecordKind K) |
static bool | classof (const RecordContext *Ctx) |
Public Attributes | |
StringRef | USR |
StringRef | Name |
SymbolReference | Parent |
PresumedLoc | Location |
AvailabilityInfo | Availability |
LinkageInfo | Linkage |
DocComment | Comment |
Documentation comment lines attached to this symbol declaration. | |
DeclarationFragments | Declaration |
Declaration fragments of this symbol declaration. | |
DeclarationFragments | SubHeading |
SubHeading provides a more detailed representation than the plain declaration name. | |
bool | IsFromSystemHeader |
Whether the symbol was defined in a system header. | |
AccessControl | Access |
RecordKind | KindForDisplay |
Friends | |
class | RecordContext |
The base representation of an API record. Holds common symbol information.
Discriminator for LLVM-style RTTI (dyn_cast<> et al.)
|
delete |
|
inline |
|
inline |
|
static |
Definition at line 26 of file API.cpp.
References clang::extractapi::RecordContext::getKind().
Referenced by clang::extractapi::FromRecordContextCastInfoWrapper< ToTy, IsKnownSubType >::doCast().
|
static |
Definition at line 39 of file API.cpp.
Referenced by clang::extractapi::ToRecordContextCastInfoWrapper< FromTy, IsKnownSubType >::doCast().
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
Definition at line 274 of file API.h.
References KindForDisplay.
|
inline |
|
friend |
AccessControl clang::extractapi::APIRecord::Access |
Definition at line 259 of file API.h.
Referenced by clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF().
AvailabilityInfo clang::extractapi::APIRecord::Availability |
DocComment clang::extractapi::APIRecord::Comment |
DeclarationFragments clang::extractapi::APIRecord::Declaration |
bool clang::extractapi::APIRecord::IsFromSystemHeader |
Whether the symbol was defined in a system header.
Definition at line 257 of file API.h.
Referenced by clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF().
RecordKind clang::extractapi::APIRecord::KindForDisplay |
Definition at line 261 of file API.h.
Referenced by getKindForDisplay(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplatePartialSpecializationDecl(), and clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXRecordDecl().
LinkageInfo clang::extractapi::APIRecord::Linkage |
PresumedLoc clang::extractapi::APIRecord::Location |
Definition at line 238 of file API.h.
Referenced by clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF().
StringRef clang::extractapi::APIRecord::Name |
Definition at line 234 of file API.h.
Referenced by clang::extractapi::RecordRecord::isAnonymousWithNoTypedef().
SymbolReference clang::extractapi::APIRecord::Parent |
DeclarationFragments clang::extractapi::APIRecord::SubHeading |
StringRef clang::extractapi::APIRecord::USR |
Definition at line 233 of file API.h.
Referenced by clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF().