/external/clang/include/clang/AST/ |
DeclAccessPair.h | 11 // efficient representation of a pair of a NamedDecl* and an 25 class NamedDecl; 27 /// A POD class for pairing a NamedDecl* with an access specifier. 30 NamedDecl *Ptr; // we'd use llvm::PointerUnion, but it isn't trivial 35 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { 41 NamedDecl *getDecl() const { 42 return (NamedDecl*) (~Mask & (uintptr_t) Ptr); 48 void setDecl(NamedDecl *D) { 54 void set(NamedDecl *D, AccessSpecifier AS) { 55 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 | 45 typedef NamedDecl *value_type; 46 typedef NamedDecl **pointer; 47 typedef NamedDecl *reference; 50 NamedDecl *getDecl() const { return ir->getDecl(); } 55 NamedDecl *operator*() const { return getDecl(); } 111 void addDecl(NamedDecl *D) { 115 void addDecl(NamedDecl *D, AccessSpecifier AS) { 122 bool replace(const NamedDecl* Old, NamedDecl *New) { 131 void replace(iterator I, NamedDecl *New) [all...] |
DependentDiagnostic.h | 31 class NamedDecl; 44 NamedDecl *TargetDecl, 77 NamedDecl *getAccessTarget() const { 82 NamedDecl *getAccessNamingClass() const { 116 NamedDecl *TargetDecl;
|
DeclFriend.h | 41 typedef llvm::PointerUnion<NamedDecl*,TypeSourceInfo*> FriendUnion; 94 NamedDecl *getFriendDecl() const { 95 return Friend.dyn_cast<NamedDecl*>(); 106 if (NamedDecl *ND = getFriendDecl())
|
DeclBase.h | 29 class NamedDecl; 899 : public std::pair<NamedDecl**,NamedDecl**> { 901 DeclContextLookupResult(NamedDecl **I, NamedDecl **E) 902 : std::pair<NamedDecl**,NamedDecl**>(I, E) {} 904 : std::pair<NamedDecl**,NamedDecl**>() {} 906 using std::pair<NamedDecl**,NamedDecl**>::operator= [all...] |
Mangle.h | 31 class NamedDecl; 99 virtual bool shouldMangleDeclName(const NamedDecl *D) = 0; 100 virtual void mangleName(const NamedDecl *D, raw_ostream &)=0;
|
DeclTemplate.h | 56 NamedDecl **Params, unsigned NumParams, 63 NamedDecl **Params, 68 typedef NamedDecl** iterator; 71 typedef NamedDecl* const* const_iterator; 73 iterator begin() { return reinterpret_cast<NamedDecl **>(this + 1); } 75 return reinterpret_cast<NamedDecl * const *>(this + 1); 82 NamedDecl* getParam(unsigned Idx) { 87 const NamedDecl* getParam(unsigned Idx) const { 118 NamedDecl *Params[N]; 123 NamedDecl **Params, SourceLocation RAngleLoc) [all...] |
CXXInheritance.h | 34 class NamedDecl; 159 NamedDecl **DeclsFound; 173 typedef NamedDecl **decl_iterator;
|
/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...] |
Lookup.h | 277 static bool isVisible(NamedDecl *D) { 290 NamedDecl *getAcceptableDecl(NamedDecl *D) const { 301 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const; 354 void addDecl(NamedDecl *D) { 360 void addDecl(NamedDecl *D, AccessSpecifier AS) { 430 NamedDecl *getFoundDecl() const { 437 NamedDecl *getRepresentativeDecl() const { 548 NamedDecl *next() [all...] |
TypoCorrection.h | 40 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl, 50 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS=0, 118 NamedDecl* getCorrectionDecl() const { 127 void setCorrectionDecl(NamedDecl *CDecl) { 132 /// \brief Add the given NamedDecl to the list of NamedDecls that are the 134 void addCorrectionDecl(NamedDecl *CDecl); 146 /// added to the list of the correction's NamedDecl pointers, NULL is added 173 typedef llvm::SmallVector<NamedDecl*, 1>::iterator decl_iterator; 178 typedef llvm::SmallVector<NamedDecl*, 1>::const_iterator const_decl_iterator; 192 llvm::SmallVector<NamedDecl*, 1> CorrectionDecls [all...] |
DelayedDiagnostic.h | 69 NamedDecl *getTargetDecl() const { return Target; } 105 NamedDecl *Target; 125 const NamedDecl *D, 162 const NamedDecl *getDeprecationDecl() const { 200 const NamedDecl *Decl;
|
/external/clang/lib/AST/ |
DeclFriend.cpp | 26 if (Friend.is<NamedDecl*>()) { 27 NamedDecl *D = Friend.get<NamedDecl*>();
|
DeclBase.cpp | 183 if (const NamedDecl *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) 954 ArrayRef<NamedDecl*> Decls) { 962 for (ArrayRef<NamedDecl*>::iterator 1029 if (isa<NamedDecl>(D)) { 1030 NamedDecl *ND = cast<NamedDecl>(D); 1074 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) 1082 if (NamedDecl *ND = dyn_cast<NamedDecl>(D) [all...] |
ItaniumMangle.cpp | 66 static const CXXRecordDecl *GetLocalClassDecl(const NamedDecl *ND) { 86 static const NamedDecl *getStructor(const NamedDecl *decl) { 96 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier; 118 bool shouldMangleDeclName(const NamedDecl *D); 119 void mangleName(const NamedDecl *D, raw_ostream &); 148 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { 175 const NamedDecl *Structor; 226 const NamedDecl *D = 0) 255 void mangle(const NamedDecl *D, StringRef Prefix = "_Z") [all...] |
/external/clang/lib/Sema/ |
IdentifierResolver.cpp | 71 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { 83 IdentifierResolver::IdDeclInfo::ReplaceDecl(NamedDecl *Old, NamedDecl *New) { 151 void IdentifierResolver::AddDecl(NamedDecl *D) { 168 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); 176 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { 193 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); 216 void IdentifierResolver::RemoveDecl(NamedDecl *D) [all...] |
DelayedDiagnostic.cpp | 23 const NamedDecl *D,
|
/external/clang/tools/libclang/ |
IndexingContext.h | 47 const NamedDecl *Dcl; 389 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, 392 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, 396 const NamedDecl *Parent, 401 void indexBody(const Stmt *S, const NamedDecl *Parent, 440 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, 441 const NamedDecl *Parent, 446 bool handleReference(const NamedDecl *D, SourceLocation Loc, 447 const NamedDecl *Parent, 474 bool handleDecl(const NamedDecl *D [all...] |
IndexTypeSourceInfo.cpp | 21 const NamedDecl *Parent; 25 TypeIndexer(IndexingContext &indexCtx, const NamedDecl *parent, 98 const NamedDecl *Parent, 107 const NamedDecl *Parent, 118 const NamedDecl *Parent,
|
IndexBody.cpp | 21 const NamedDecl *Parent; 27 const NamedDecl *Parent, const DeclContext *DC) 146 void IndexingContext::indexBody(const Stmt *S, const NamedDecl *Parent,
|
/external/clang/examples/PrintFunctionNames/ |
PrintFunctionNames.cpp | 29 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
|
/external/clang/include/clang/Analysis/Analyses/ |
ThreadSafety.h | 121 virtual void handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, 132 virtual void handleMutexNotHeld(const NamedDecl *D,
|
/external/clang/lib/Analysis/ |
ThreadSafety.cpp | 85 SmallVector<NamedDecl*, 2> DeclSeq; 91 void buildMutexID(Expr *Exp, const NamedDecl *D, Expr *Parent, 99 NamedDecl *ND = cast<NamedDecl>(DRE->getDecl()->getCanonicalDecl()); 119 NamedDecl *ND = ME->getMemberDecl(); 186 void buildMutexIDFromExp(Expr *MutexExp, Expr *DeclExp, const NamedDecl *D) { 236 MutexID(Expr* MutexExp, Expr *DeclExp, const NamedDecl* D) { 248 Expr *DeclExp, const NamedDecl* D) { 288 for (SmallVectorImpl<NamedDecl*>::const_iterator I = DeclSeq.begin(), 337 typedef llvm::ImmutableMap<NamedDecl*, unsigned> LocalVarContext [all...] |
/external/clang/include/clang/Analysis/Support/ |
BlkExprDeclBitVector.h | 21 #include "clang/AST/Decl.h" // for Decl* -> NamedDecl* conversion 53 typedef llvm::DenseMap<const NamedDecl*, unsigned > DMapTy; 65 bool isTracked(const NamedDecl *SD) { return DMap.find(SD) != DMap.end(); } 67 Idx getIdx(const NamedDecl *SD) const { 74 void Register(const NamedDecl *SD) { 120 operator()(const NamedDecl *ND, const AnalysisDataTy& AD) { 124 bool operator()(const NamedDecl *ND, const AnalysisDataTy& AD) const {
|