Home
last modified time | relevance | path

Searched refs:NamedDecl (Results 1 – 25 of 174) sorted by relevance

1234567

/external/clang/include/clang/AST/
DDeclContextInternals.h35 typedef SmallVector<NamedDecl *, 4> DeclsTy;
44 llvm::PointerUnion<NamedDecl*, DeclsAndHasExternalTy> Data;
50 RHS.Data = (NamedDecl *)nullptr; in StoredDeclsList()
63 RHS.Data = (NamedDecl *)nullptr;
69 NamedDecl *getAsDecl() const { in getAsDecl()
70 return Data.dyn_cast<NamedDecl *>(); in getAsDecl()
90 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls()
96 void setOnlyValue(NamedDecl *ND) { in setOnlyValue()
101 assert(*(NamedDecl **)&Data == ND && in setOnlyValue()
105 void remove(NamedDecl *D) { in remove()
[all …]
DUnresolvedSet.h30 std::random_access_iterator_tag, NamedDecl *,
31 std::ptrdiff_t, NamedDecl *, NamedDecl *> {
44 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl()
45 void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } in setDecl()
50 NamedDecl *operator*() const { return getDecl(); }
51 NamedDecl *operator->() const { return **this; }
77 void addDecl(NamedDecl *D) { in addDecl()
81 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
88 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace()
97 void replace(iterator I, NamedDecl *New) { I.I->setDecl(New); } in replace()
[all …]
DDeclAccessPair.h26 class NamedDecl; variable
36 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make()
42 NamedDecl *getDecl() const { in getDecl()
43 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl()
49 void setDecl(NamedDecl *D) { in setDecl()
55 void set(NamedDecl *D, AccessSpecifier AS) { in set()
59 operator NamedDecl*() const { return getDecl(); }
60 NamedDecl *operator->() const { return getDecl(); }
DMangle.h32 class NamedDecl; variable
92 bool shouldMangleDeclName(const NamedDecl *D);
93 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
97 void mangleName(const NamedDecl *D, raw_ostream &);
98 virtual void mangleCXXName(const NamedDecl *D, raw_ostream &) = 0;
117 const NamedDecl *ID,
135 virtual void mangleSEHFilterExpression(const NamedDecl *EnclosingDecl,
138 virtual void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl,
DDependentDiagnostic.h31 class NamedDecl; variable
44 NamedDecl *TargetDecl, in Create()
77 NamedDecl *getAccessTarget() const { in getAccessTarget()
82 NamedDecl *getAccessNamingClass() const { in getAccessNamingClass()
115 NamedDecl *TargetDecl;
DDeclTemplate.h49 : private llvm::TrailingObjects<TemplateParameterList, NamedDecl *> { in LLVM_ALIGNAS()
66 size_t numTrailingObjects(OverloadToken<NamedDecl *>) const { in LLVM_ALIGNAS()
71 NamedDecl **Params, unsigned NumParams, in LLVM_ALIGNAS()
78 NamedDecl **Params, in LLVM_ALIGNAS()
83 typedef NamedDecl** iterator; in LLVM_ALIGNAS()
86 typedef NamedDecl* const* const_iterator; in LLVM_ALIGNAS()
88 iterator begin() { return getTrailingObjects<NamedDecl *>(); } in LLVM_ALIGNAS()
89 const_iterator begin() const { return getTrailingObjects<NamedDecl *>(); } in LLVM_ALIGNAS()
95 ArrayRef<NamedDecl*> asArray() { in LLVM_ALIGNAS()
98 ArrayRef<const NamedDecl*> asArray() const { in LLVM_ALIGNAS()
[all …]
DASTUnresolvedSet.h50 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
57 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { in replace()
104 Impl.addDecl(C, reinterpret_cast<NamedDecl*>(ID << 2), AS); in addLazyDecl()
DDeclCXX.h49 NamedDecl *Function;
51 AnyFunctionDecl(NamedDecl *ND) : Function(ND) { } in AnyFunctionDecl()
59 operator NamedDecl *() const { return Function; }
62 NamedDecl *get() const { return Function; } in get()
64 static AnyFunctionDecl getFromNamedDecl(NamedDecl *ND) { in getFromNamedDecl()
81 static_cast< ::clang::NamedDecl*>(P)); in getFromVoidPointer()
1092 void removeConversion(const NamedDecl *Old);
2549 class UsingDirectiveDecl : public NamedDecl {
2561 NamedDecl *NominatedNamespace;
2579 NamedDecl *Nominated, in UsingDirectiveDecl()
[all …]
DTemplateName.h27 class NamedDecl; variable
98 NamedDecl **getStorage() { in getStorage()
99 return reinterpret_cast<NamedDecl **>(this + 1); in getStorage()
101 NamedDecl * const *getStorage() const { in getStorage()
102 return reinterpret_cast<NamedDecl *const *>(this + 1); in getStorage()
106 typedef NamedDecl *const *iterator;
/external/clang/include/clang/Sema/
DIdentifierResolver.h28 class NamedDecl; variable
43 typedef SmallVector<NamedDecl*, 2> DeclsTy;
48 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl()
52 void RemoveDecl(NamedDecl *D);
55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl()
70 typedef NamedDecl * value_type;
71 typedef NamedDecl * reference;
72 typedef NamedDecl * pointer;
86 iterator(NamedDecl *D) { in iterator()
109 NamedDecl *operator*() const {
[all …]
DLookup.h231 bool isHiddenDeclarationVisible(NamedDecl *ND) const { in isHiddenDeclarationVisible()
290 static bool isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible()
302 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
313 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
314 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
367 void addDecl(NamedDecl *D) { in addDecl()
373 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
458 NamedDecl *getFoundDecl() const { in getFoundDecl()
465 NamedDecl *getRepresentativeDecl() const { in getRepresentativeDecl()
582 NamedDecl *next() { in next()
[all …]
DTypoCorrection.h42 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
53 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
133 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl()
147 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl()
153 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls()
160 void addCorrectionDecl(NamedDecl *CDecl);
211 typedef SmallVectorImpl<NamedDecl *>::iterator decl_iterator;
216 typedef SmallVectorImpl<NamedDecl *>::const_iterator const_decl_iterator;
235 SmallVector<NamedDecl *, 1> CorrectionDecls;
DDelayedDiagnostic.h70 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl()
106 NamedDecl *Target;
127 const NamedDecl *D,
167 const NamedDecl *getDeprecationDecl() const { in getDeprecationDecl()
214 const NamedDecl *Decl;
/external/clang/lib/Sema/
DIdentifierResolver.cpp70 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl()
142 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl()
159 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl()
167 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter()
184 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter()
207 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl()
236 return iterator(static_cast<NamedDecl*>(Ptr)); in begin()
258 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations()
298 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl()
312 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl()
[all …]
DSemaCXXScopeSpec.cpp289 bool Sema::isAcceptableNestedNameSpecifier(const NamedDecl *SD, in isAcceptableNestedNameSpecifier()
331 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope()
349 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
399 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>()) in isNonTypeNestedNameSpecifier()
464 NamedDecl *ScopeLookupResult, in BuildCXXNestedNameSpecifier()
575 if (NamedDecl *ND = R.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier()
582 if (NamedDecl *ND = R.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier()
610 if (NamedDecl *ND = Corrected.getCorrectionDecl()) in BuildCXXNestedNameSpecifier()
618 NamedDecl *SD = Found.getAsSingle<NamedDecl>(); in BuildCXXNestedNameSpecifier()
638 NamedDecl *OuterDecl; in BuildCXXNestedNameSpecifier()
[all …]
DSemaLookup.cpp361 NamedDecl *D, NamedDecl *Existing) { in isPreferredLookupResult()
442 static bool canHideTag(NamedDecl *D) { in canHideTag()
472 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
483 llvm::SmallDenseMap<NamedDecl*, unsigned, 16> Unique; in resolveKind()
489 NamedDecl *HasNonFunction = nullptr; in resolveKind()
491 llvm::SmallVector<NamedDecl*, 4> EquivalentNonFunctions; in resolveKind()
497 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
498 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
587 NamedDecl *OtherDecl = Decls[UniqueTagIndex ? 0 : N - 1]; in resolveKind()
686 if (NamedDecl *D = S.LazilyCreateBuiltin((IdentifierInfo *)II, in LookupBuiltin()
[all …]
/external/clang/tools/libclang/
DIndexingContext.h50 const NamedDecl *Dcl;
381 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
384 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
388 const NamedDecl *Parent,
393 void indexBody(const Stmt *S, const NamedDecl *Parent,
434 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor,
435 const NamedDecl *Parent,
440 bool handleReference(const NamedDecl *D, SourceLocation Loc,
441 const NamedDecl *Parent,
468 bool handleDecl(const NamedDecl *D,
[all …]
DIndexTypeSourceInfo.cpp20 const NamedDecl *Parent;
24 TypeIndexer(IndexingContext &indexCtx, const NamedDecl *parent, in TypeIndexer()
97 const NamedDecl *Parent, in indexTypeSourceInfo()
106 const NamedDecl *Parent, in indexTypeLoc()
117 const NamedDecl *Parent, in indexNestedNameSpecifierLoc()
/external/clang/lib/AST/
DMangle.cpp59 static bool isExternC(const NamedDecl *ND) { in isExternC()
66 const NamedDecl *ND) { in getCallingConvMangling()
98 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName()
117 void MangleContext::mangleName(const NamedDecl *D, raw_ostream &Out) { in mangleName()
187 const NamedDecl *ID, in mangleGlobalBlock()
230 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
235 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
241 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock()
DDecl.cpp113 LVForType = NamedDecl::VisibilityForType,
118 LVForValue = NamedDecl::VisibilityForValue,
155 static Optional<Visibility> getExplicitVisibility(const NamedDecl *D, in getExplicitVisibility()
159 return D->getExplicitVisibility((NamedDecl::ExplicitVisibilityKind) kind); in getExplicitVisibility()
164 static bool usesTypeVisibility(const NamedDecl *D) { in usesTypeVisibility()
205 static Optional<Visibility> getVisibilityOf(const NamedDecl *D, in getVisibilityOf()
206 NamedDecl::ExplicitVisibilityKind kind) { in getVisibilityOf()
209 if (kind == NamedDecl::VisibilityForType) { in getVisibilityOf()
245 for (const NamedDecl *P : *Params) { in getLVForTemplateParameterList()
296 static LinkageInfo getLVForDecl(const NamedDecl *D,
[all …]
DDeclFriend.cpp33 if (Friend.is<NamedDecl*>()) { in Create()
34 NamedDecl *D = Friend.get<NamedDecl*>(); in Create()
DItaniumMangle.cpp109 static const NamedDecl *getStructor(const NamedDecl *decl) { in getStructor()
114 static bool isLambda(const NamedDecl *ND) { in isLambda()
127 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier;
137 bool shouldMangleCXXName(const NamedDecl *D) override;
141 void mangleCXXName(const NamedDecl *D, raw_ostream &) override;
167 void mangleSEHFilterExpression(const NamedDecl *EnclosingDecl,
169 void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl,
177 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator()
219 const NamedDecl *Structor;
270 const NamedDecl *D = nullptr) in CXXNameMangler()
[all …]
DDeclBase.cpp226 if (const NamedDecl *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) { in print()
1116 ArrayRef<NamedDecl*> Decls) { in SetExternalVisibleDeclsForName()
1150 for (ArrayRef<NamedDecl*>::iterator in SetExternalVisibleDeclsForName()
1207 if (isa<NamedDecl>(D)) { in removeDecl()
1208 NamedDecl *ND = cast<NamedDecl>(D); in removeDecl()
1255 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in addDecl()
1263 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in addDeclInternal()
1270 static bool shouldBeHidden(NamedDecl *D) { in shouldBeHidden()
1344 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in buildLookupImpl()
1360 NamedDecl *const DeclContextLookupResult::SingleElementDummyList = nullptr;
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCSelfInitChecker.cpp52 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND);
173 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostObjCMessage()
200 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostStmt()
213 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreStmt()
241 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreCall()
269 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostCall()
304 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkLocation()
386 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) { in shouldRunOnFunctionOrMethod()
/external/clang/include/clang/Tooling/Core/
DLookup.h23 class NamedDecl; variable
42 const NamedDecl *FromDecl,

1234567