clang 20.0.0git
|
Base class used for specific record types that have children records this is analogous to the DeclContext for the AST. More...
#include "clang/ExtractAPI/API.h"
Classes | |
struct | record_iterator |
Public Types | |
using | record_range = llvm::iterator_range< record_iterator > |
Public Member Functions | |
RecordContext (APIRecord::RecordKind Kind) | |
void | stealRecordChain (RecordContext &Other) |
Append Other children chain into ours and empty out Other's record chain. | |
void | removeFromRecordChain (APIRecord *Record) |
APIRecord::RecordKind | getKind () const |
record_range | records () const |
record_iterator | records_begin () const |
record_iterator | records_end () const |
bool | records_empty () const |
Static Public Member Functions | |
static bool | classof (const APIRecord *Record) |
static bool | classofKind (APIRecord::RecordKind K) |
static bool | classof (const RecordContext *Context) |
Protected Member Functions | |
void | addToRecordChain (APIRecord *) const |
Friends | |
class | APISet |
Base class used for specific record types that have children records this is analogous to the DeclContext for the AST.
using clang::extractapi::RecordContext::record_range = llvm::iterator_range<record_iterator> |
|
inline |
|
protected |
Definition at line 307 of file API.h.
References classofKind().
Referenced by clang::extractapi::ToRecordContextCastInfoWrapper< FromTy, IsKnownSubType >::isPossible().
|
inlinestatic |
|
inlinestatic |
Definition at line 310 of file API.h.
References clang::extractapi::APIRecord::RK_FirstRecordContext, and clang::extractapi::APIRecord::RK_LastRecordContext.
Referenced by classof().
|
inline |
|
inline |
Definition at line 363 of file API.h.
References records_begin(), and records_end().
|
inline |
|
inline |
|
inline |
void RecordContext::removeFromRecordChain | ( | APIRecord * | Record | ) |
void RecordContext::stealRecordChain | ( | RecordContext & | Other | ) |
Append Other
children chain into ours and empty out Other's record chain.
Definition at line 59 of file API.cpp.
References clang::Other.
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::maybeMergeWithAnonymousTag().