14 #ifndef LLVM_CLANG_AST_ASTUNRESOLVEDSET_H 15 #define LLVM_CLANG_AST_ASTUNRESOLVEDSET_H 32 struct DeclsTy :
ASTVector<DeclAccessPair> {
36 bool isLazy()
const {
return getTag(); }
37 void setLazy(
bool Lazy) { setTag(Lazy); }
64 if (I->getDecl() == Old) {
72 void erase(
unsigned I) { Decls[I] = Decls.pop_back_val(); }
76 bool empty()
const {
return Decls.empty(); }
77 unsigned size()
const {
return Decls.size(); }
84 Decls.append(C, I.I, E.I);
100 if (Impl.Decls.isLazy())
101 getFromExternalSource(C);
108 assert(Impl.
empty() || Impl.Decls.isLazy());
109 Impl.Decls.setLazy(
true);
110 Impl.
addDecl(C, reinterpret_cast<NamedDecl *>(ID << 2), AS);
116 #endif // LLVM_CLANG_AST_ASTUNRESOLVEDSET_H
bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS)
Replaces the given declaration with the new one, once.
void append(ASTContext &C, iterator I, iterator E)
UnresolvedSetIterator iterator
AccessSpecifier
A C++ access specifier (public, private, protected), plus the special value "none" which means differ...
An UnresolvedSet-like class that might not have been loaded from the external AST source yet...
void addLazyDecl(ASTContext &C, uintptr_t ID, AccessSpecifier AS)
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
ASTUnresolvedSet()=default
const_iterator begin() const
The iterator over UnresolvedSets.
void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS)
static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS)
void reserve(ASTContext &C, unsigned N)
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
const_iterator end() const
ASTUnresolvedSet(ASTContext &C, unsigned N)
Defines various enumerations that describe declaration and type specifiers.
A POD class for pairing a NamedDecl* with an access specifier.
Dataflow Directional Tag Classes.
void reserve(ASTContext &C, unsigned N)
An UnresolvedSet-like class which uses the ASTContext's allocator.
DeclAccessPair & operator[](unsigned I)
UnresolvedSetIterator const_iterator
const DeclAccessPair & operator[](unsigned I) const
This represents a decl that may have a name.