/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...] |
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...] |
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...] |
ExternalSemaSource.h | 73 llvm::DenseMap<NamedDecl*, SourceLocation> &Undefined); 140 SmallVectorImpl<NamedDecl *> &Decls) {}
|
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/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...] |
DelayedDiagnostic.cpp | 23 const NamedDecl *D,
|
/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) {
|
Decl.cpp | 38 // NamedDecl Implementation 96 LVForType = NamedDecl::VisibilityForType, 101 LVForValue = NamedDecl::VisibilityForValue, 134 static Optional<Visibility> getExplicitVisibility(const NamedDecl *D, 138 return D->getExplicitVisibility((NamedDecl::ExplicitVisibilityKind) kind); 143 static bool usesTypeVisibility(const NamedDecl *D) { 185 static Optional<Visibility> getVisibilityOf(const NamedDecl *D, 186 NamedDecl::ExplicitVisibilityKind kind) { 189 if (kind == NamedDecl::VisibilityForType) { 273 static LinkageInfo getLVForDecl(const NamedDecl *D [all...] |
DeclBase.cpp | 193 if (const NamedDecl *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) { 1009 ArrayRef<NamedDecl*> Decls) { 1016 for (ArrayRef<NamedDecl*>::iterator 1073 if (isa<NamedDecl>(D)) { 1074 NamedDecl *ND = cast<NamedDecl>(D); [all...] |
/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,
|
/external/clang/examples/PrintFunctionNames/ |
PrintFunctionNames.cpp | 29 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
|
/external/clang/include/clang/Analysis/Analyses/ |
ThreadSafety.h | 123 virtual void handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, 134 virtual void handleMutexNotHeld(const 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) {
|
/external/clang/include/clang/Analysis/Support/ |
BlkExprDeclBitVector.h | 20 #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 {
|