/external/clang/include/clang/AST/ |
DeclAccessPair.h | 11 // efficient representation of a pair of a NamedDecl* and an 26 class NamedDecl; 28 /// A POD class for pairing a NamedDecl* with an access specifier. 31 NamedDecl *Ptr; // we'd use llvm::PointerUnion, but it isn't trivial 36 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { 42 NamedDecl *getDecl() const { 43 return (NamedDecl*) (~Mask & (uintptr_t) Ptr); 49 void setDecl(NamedDecl *D) { 55 void set(NamedDecl *D, AccessSpecifier AS) { 56 Ptr = reinterpret_cast<NamedDecl*>(uintptr_t(AS) [all...] |
DeclContextInternals.h | 34 typedef SmallVector<NamedDecl *, 4> DeclsTy; 36 /// \brief The stored data, which will be either a pointer to a NamedDecl, 38 llvm::PointerUnion<NamedDecl *, DeclsTy *> Data; 65 NamedDecl *getAsDecl() const { 66 return Data.dyn_cast<NamedDecl *>(); 73 void setOnlyValue(NamedDecl *ND) { 76 // Make sure that Data is a plain NamedDecl* so we can use its address 78 assert(*(NamedDecl **)&Data == ND && 79 "PointerUnion mangles the NamedDecl pointer!"); 82 void remove(NamedDecl *D) [all...] |
UnresolvedSet.h | 48 typedef NamedDecl *value_type; 49 typedef NamedDecl **pointer; 50 typedef NamedDecl *reference; 53 NamedDecl *getDecl() const { return ir->getDecl(); } 58 NamedDecl *operator*() const { return getDecl(); } 114 void addDecl(NamedDecl *D) { 118 void addDecl(NamedDecl *D, AccessSpecifier AS) { 125 bool replace(const NamedDecl* Old, NamedDecl *New) { 134 void replace(iterator I, NamedDecl *New) [all...] |
ASTUnresolvedSet.h | 44 void addDecl(ASTContext &C, NamedDecl *D) { 48 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { 55 bool replace(const NamedDecl* Old, NamedDecl *New) {
|
DependentDiagnostic.h | 31 class NamedDecl; 44 NamedDecl *TargetDecl, 77 NamedDecl *getAccessTarget() const { 82 NamedDecl *getAccessNamingClass() const { 115 NamedDecl *TargetDecl;
|
Mangle.h | 31 class NamedDecl; 99 virtual bool shouldMangleDeclName(const NamedDecl *D) = 0; 100 virtual void mangleName(const NamedDecl *D, raw_ostream &)=0; 124 const NamedDecl *ID, 134 const NamedDecl *ID=0);
|
DeclTemplate.h | 61 NamedDecl **Params, unsigned NumParams, 68 NamedDecl **Params, 73 typedef NamedDecl** iterator; 76 typedef NamedDecl* const* const_iterator; 78 iterator begin() { return reinterpret_cast<NamedDecl **>(this + 1); } 80 return reinterpret_cast<NamedDecl * const *>(this + 1); 87 llvm::ArrayRef<NamedDecl*> asArray() { 88 return llvm::ArrayRef<NamedDecl*>(begin(), size()); 90 llvm::ArrayRef<const NamedDecl*> asArray() const { 91 return llvm::ArrayRef<const NamedDecl*>(begin(), size()) [all...] |
DeclFriend.h | 42 typedef llvm::PointerUnion<NamedDecl*,TypeSourceInfo*> FriendUnion; 125 NamedDecl *getFriendDecl() const { 126 return Friend.dyn_cast<NamedDecl*>(); 136 if (NamedDecl *ND = getFriendDecl()) {
|
/external/clang/include/clang/Sema/ |
IdentifierResolver.h | 28 class NamedDecl; 43 typedef SmallVector<NamedDecl*, 2> DeclsTy; 48 void AddDecl(NamedDecl *D) { Decls.push_back(D); } 52 void RemoveDecl(NamedDecl *D); 57 bool ReplaceDecl(NamedDecl *Old, NamedDecl *New); 60 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { 75 typedef NamedDecl * value_type; 76 typedef NamedDecl * reference; 77 typedef NamedDecl * pointer [all...] |
TypoCorrection.h | 41 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl, 51 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS=0, 119 NamedDecl* getCorrectionDecl() const { 128 void setCorrectionDecl(NamedDecl *CDecl) { 133 /// \brief Add the given NamedDecl to the list of NamedDecls that are the 135 void addCorrectionDecl(NamedDecl *CDecl); 147 /// added to the list of the correction's NamedDecl pointers, NULL is added 185 typedef SmallVector<NamedDecl *, 1>::iterator decl_iterator; 190 typedef SmallVector<NamedDecl *, 1>::const_iterator const_decl_iterator; 204 SmallVector<NamedDecl *, 1> CorrectionDecls [all...] |
Lookup.h | 286 static bool isVisible(NamedDecl *D) { 299 NamedDecl *getAcceptableDecl(NamedDecl *D) const { 310 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const; 363 void addDecl(NamedDecl *D) { 369 void addDecl(NamedDecl *D, AccessSpecifier AS) { 439 NamedDecl *getFoundDecl() const { 446 NamedDecl *getRepresentativeDecl() const { 558 NamedDecl *next() [all...] |
DelayedDiagnostic.h | 69 NamedDecl *getTargetDecl() const { return Target; } 105 NamedDecl *Target; 125 const NamedDecl *D, 163 const NamedDecl *getDeprecationDecl() const { 204 const NamedDecl *Decl;
|
/external/clang/tools/libclang/ |
IndexingContext.h | 46 const NamedDecl *Dcl; 384 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, 387 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, 391 const NamedDecl *Parent, 396 void indexBody(const Stmt *S, const NamedDecl *Parent, 435 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, 436 const NamedDecl *Parent, 441 bool handleReference(const NamedDecl *D, SourceLocation Loc, 442 const NamedDecl *Parent, 469 bool handleDecl(const NamedDecl *D [all...] |
IndexTypeSourceInfo.cpp | 20 const NamedDecl *Parent; 24 TypeIndexer(IndexingContext &indexCtx, const NamedDecl *parent, 97 const NamedDecl *Parent, 106 const NamedDecl *Parent, 117 const NamedDecl *Parent,
|
IndexingContext.cpp | 129 const NamedDecl *BaseD = 0; 212 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) { 308 bool IndexingContext::handleDecl(const NamedDecl *D, 644 bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc, 645 const NamedDecl *Parent, 657 bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc, 659 const NamedDecl *Parent, 747 const NamedDecl *OrigD) { 762 const NamedDecl *BaseD = BaseList.BaseEntities[i].Dcl [all...] |
IndexBody.cpp | 20 const NamedDecl *Parent; 26 const NamedDecl *Parent, const DeclContext *DC) 163 void IndexingContext::indexBody(const Stmt *S, const NamedDecl *Parent,
|
/external/clang/lib/Sema/ |
IdentifierResolver.cpp | 70 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { 82 IdentifierResolver::IdDeclInfo::ReplaceDecl(NamedDecl *Old, NamedDecl *New) { 154 void IdentifierResolver::AddDecl(NamedDecl *D) { 171 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); 179 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { 196 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); 219 void IdentifierResolver::RemoveDecl(NamedDecl *D) [all...] |
/external/clang/lib/AST/ |
DeclFriend.cpp | 33 if (Friend.is<NamedDecl*>()) { 34 NamedDecl *D = Friend.get<NamedDecl*>();
|
Mangle.cpp | 69 const NamedDecl *ID, 117 const NamedDecl *ND = cast<NamedDecl>(DC); 151 const NamedDecl *ID) {
|
ItaniumMangle.cpp | 67 static const CXXRecordDecl *GetLocalClassDecl(const NamedDecl *ND) { 87 static const NamedDecl *getStructor(const NamedDecl *decl) { 97 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier; 119 bool shouldMangleDeclName(const NamedDecl *D); 120 void mangleName(const NamedDecl *D, raw_ostream &); 149 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { 176 const NamedDecl *Structor; 227 const NamedDecl *D = 0) 256 void mangle(const NamedDecl *D, StringRef Prefix = "_Z") [all...] |
/external/clang/lib/Analysis/ |
ThreadSafety.cpp | 108 const NamedDecl* getNamedDecl() const { 110 return reinterpret_cast<const NamedDecl*>(Data); 113 const NamedDecl* getFunctionDecl() const { 115 return reinterpret_cast<const NamedDecl*>(Data); 168 const NamedDecl* AttrDecl; // The decl to which the attribute is attached. 175 CallingContext(const NamedDecl *D = 0, const Expr *S = 0, 206 unsigned makeNamedVar(const NamedDecl *D) { 211 unsigned makeLocalVar(const NamedDecl *D) { 221 unsigned makeDot(const NamedDecl *D, bool Arrow) { 226 unsigned makeCall(unsigned NumArgs, const NamedDecl *D) [all...] |
CallGraph.cpp | 209 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(FD)) 230 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Node->getDecl()))
|
/external/clang/examples/PrintFunctionNames/ |
PrintFunctionNames.cpp | 29 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
|
/external/clang/lib/Frontend/ |
ASTMerge.cpp | 63 if (NamedDecl *ND = dyn_cast<NamedDecl>(*D))
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
ObjCSelfInitChecker.cpp | 52 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND); 177 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( 204 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( 216 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( 244 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( 272 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( 307 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( 389 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) {
|