final :
privatellvm::TrailingObjects<DeclGroup, Decl *> {
27 unsignedNumDecls = 0;
38 unsigned size()
const{
returnNumDecls; }
41assert (i < NumDecls &&
"Out-of-bounds access.");
42 returngetTrailingObjects<Decl *>()[i];
46assert (i < NumDecls &&
"Out-of-bounds access.");
47 returngetTrailingObjects<Decl *>()[i];
54 enumKind { SingleDeclKind=0x0, DeclGroupKind=0x1, Mask=0x1 };
58Kind getKind()
const{
59 return(Kind) (
reinterpret_cast<uintptr_t>(
D) & Mask);
66:
D((
Decl*) (reinterpret_cast<
uintptr_t>(dg) | DeclGroupKind)) {}
79 bool isNull()
const{
return D==
nullptr; }
81 bool isDeclGroup()
const{
returngetKind() == DeclGroupKind; }
101 return D? &
D:
nullptr;
107 return D? &
D+1 :
nullptr;
109 return&G[0] + G.
size();
114 return D? &
D:
nullptr;
120 return D? &
D+1 :
nullptr;
122 return&G[0] + G.
size();
128 X.D =
static_cast<Decl*
>(Ptr);
138 template<
typenameT>
143 return P.getAsOpaquePtr();
150 static constexpr intNumLowBitsAvailable = 0;
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
static DeclGroupRef getFromOpaquePtr(void *Ptr)
DeclGroupRef(DeclGroup *dg)
const Decl * getSingleDecl() const
Decl *const * const_iterator
const DeclGroup & getDeclGroup() const
static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls)
const_iterator end() const
const_iterator begin() const
DeclGroup & getDeclGroup()
void * getAsOpaquePtr() const
bool isSingleDecl() const
static DeclGroup * Create(ASTContext &C, Decl **Decls, unsigned NumDecls)
Decl *const & operator[](unsigned i) const
Decl *& operator[](unsigned i)
Decl - This represents one declaration (or definition), e.g.
@ Decl
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
The JSON file list parser is used to communicate input to InstallAPI.
@ Create
'create' clause, allowed on Compute and Combined constructs, plus 'data', 'enter data',...
Diagnostic wrappers for TextAPI types for error reporting.
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
static clang::DeclGroupRef getFromVoidPointer(void *P)
static void * getAsVoidPointer(clang::DeclGroupRef P)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4