Home
last modified time | relevance | path

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

12345678910

/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DLinkage.h42 explicit LVComputationKind(NamedDecl::ExplicitVisibilityKind EK) in LVComputationKind()
46 NamedDecl::ExplicitVisibilityKind getExplicitVisibilityKind() const { in getExplicitVisibilityKind()
47 return static_cast<NamedDecl::ExplicitVisibilityKind>(ExplicitKind); in getExplicitVisibilityKind()
51 return getExplicitVisibilityKind() == NamedDecl::VisibilityForType; in isTypeVisibility()
54 return getExplicitVisibilityKind() == NamedDecl::VisibilityForValue; in isValueVisibility()
59 LVComputationKind Result(NamedDecl::VisibilityForValue); in forLinkageOnly()
86 llvm::PointerIntPair<const NamedDecl *,
90 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey()
94 llvm::Optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup()
102 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache()
[all …]
H A DASTImporterLookupTable.cpp39 bool VisitNamedDecl(NamedDecl *D) { in VisitNamedDecl()
89 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
95 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
102 void ASTImporterLookupTable::add(NamedDecl *ND) { in add()
111 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove()
144 for (NamedDecl *ND : List) { in dump()
H A DMangle.cpp58 static bool isExternC(const NamedDecl *ND) { in isExternC()
67 const NamedDecl *ND) { in getCallingConvMangling()
107 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName()
143 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleName()
251 const NamedDecl *ID, in mangleGlobalBlock()
294 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
299 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
305 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock()
475 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings()
519 bool writeFuncOrVarName(const NamedDecl *D, raw_ostream &OS) { in writeFuncOrVarName()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DIdentifierResolver.h31 class NamedDecl; variable
45 using DeclsTy = SmallVector<NamedDecl *, 2>;
50 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl()
54 void RemoveDecl(NamedDecl *D);
57 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl()
73 using value_type = NamedDecl *;
74 using reference = NamedDecl *;
75 using pointer = NamedDecl *;
87 iterator(NamedDecl *D) { in iterator()
110 NamedDecl *operator*() const {
[all …]
H A DLookup.h281 bool isHiddenDeclarationVisible(NamedDecl *ND) const { in isHiddenDeclarationVisible()
349 static bool isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible()
361 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
372 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
373 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
426 void addDecl(NamedDecl *D) { in addDecl()
432 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
517 NamedDecl *getFoundDecl() const { in getFoundDecl()
524 NamedDecl *getRepresentativeDecl() const { in getRepresentativeDecl()
643 NamedDecl *next() { in next()
[all …]
H A DTypoCorrection.h59 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
68 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
146 NamedDecl *getFoundDecl() const { in getFoundDecl()
151 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl()
166 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl()
172 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls()
179 void addCorrectionDecl(NamedDecl *CDecl);
230 using decl_iterator = SmallVectorImpl<NamedDecl *>::iterator;
238 using const_decl_iterator = SmallVectorImpl<NamedDecl *>::const_iterator;
268 SmallVector<NamedDecl *, 1> CorrectionDecls;
H A DDelayedDiagnostic.h80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl()
116 NamedDecl *Target;
137 const NamedDecl *ReferringDecl,
138 const NamedDecl *OffendingDecl,
177 const NamedDecl *getAvailabilityReferringDecl() const { in getAvailabilityReferringDecl()
182 const NamedDecl *getAvailabilityOffendingDecl() const { in getAvailabilityOffendingDecl()
235 const NamedDecl *ReferringDecl;
236 const NamedDecl *OffendingDecl;
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DUnresolvedSet.h28 class NamedDecl; variable
34 std::random_access_iterator_tag, NamedDecl *,
35 std::ptrdiff_t, NamedDecl *, NamedDecl *> {
50 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl()
51 void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } in setDecl()
56 NamedDecl *operator*() const { return getDecl(); }
57 NamedDecl *operator->() const { return **this; }
91 void addDecl(NamedDecl *D) { in addDecl()
95 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
102 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace()
[all …]
H A DDeclContextInternals.h85 void erase(NamedDecl *ND) { in erase()
86 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase()
126 if (NamedDecl *ND = getAsDecl()) in getASTContext()
133 NamedDecl *getAsDecl() const { in getAsDecl()
134 return getAsListAndHasExternal().getPointer().dyn_cast<NamedDecl *>(); in getAsDecl()
149 void remove(NamedDecl *D) { in remove()
156 erase_if([](NamedDecl *ND) { return ND->isFromASTFile(); }); in removeExternalDecls()
162 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls()
165 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
168 for (NamedDecl *D : Decls) in replaceExternalDecls()
[all …]
H A DDeclAccessPair.h25 class NamedDecl; variable
35 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make()
41 NamedDecl *getDecl() const { in getDecl()
42 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl()
48 void setDecl(NamedDecl *D) { in setDecl()
54 void set(NamedDecl *D, AccessSpecifier AS) { in set()
58 operator NamedDecl*() const { return getDecl(); }
59 NamedDecl *operator->() const { return getDecl(); }
H A DASTImporterLookupTable.h25 class NamedDecl; variable
53 using DeclList = llvm::SmallSetVector<NamedDecl *, 2>;
57 void add(DeclContext *DC, NamedDecl *ND);
58 void remove(DeclContext *DC, NamedDecl *ND);
64 void add(NamedDecl *ND);
65 void remove(NamedDecl *ND);
H A DMangle.h35 class NamedDecl; variable
60 llvm::DenseMap<const NamedDecl*, uint64_t> AnonStructIds;
86 uint64_t getAnonymousStructId(const NamedDecl *D) { in getAnonymousStructId()
87 std::pair<llvm::DenseMap<const NamedDecl *, uint64_t>::iterator, bool> in getAnonymousStructId()
92 uint64_t getAnonymousStructIdForDebugInfo(const NamedDecl *D) { in getAnonymousStructIdForDebugInfo()
93 llvm::DenseMap<const NamedDecl *, uint64_t>::iterator Result = in getAnonymousStructIdForDebugInfo()
106 bool shouldMangleDeclName(const NamedDecl *D);
107 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
113 virtual bool isUniqueInternalLinkageDecl(const NamedDecl *ND) { in isUniqueInternalLinkageDecl()
137 const NamedDecl *ID,
[all …]
H A DASTConcept.h32 const NamedDecl *ConstraintOwner = nullptr;
39 ConstraintSatisfaction(const NamedDecl *ConstraintOwner, in ConstraintSatisfaction()
60 const NamedDecl *ConstraintOwner,
116 NamedDecl *FoundDecl;
128 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference()
150 NamedDecl *getFoundDecl() const { in getFoundDecl()
176 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in TypeConstraint()
H A DASTUnresolvedSet.h26 class NamedDecl; variable
55 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
62 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { in replace()
110 Impl.addDecl(C, reinterpret_cast<NamedDecl *>(ID << 2), AS); in addLazyDecl()
H A DDependentDiagnostic.h33 class NamedDecl; variable
46 NamedDecl *TargetDecl, in Create()
79 NamedDecl *getAccessTarget() const { in getAccessTarget()
84 NamedDecl *getAccessNamingClass() const { in getAccessNamingClass()
118 NamedDecl *TargetDecl;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DIdentifierResolver.cpp74 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl()
144 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl()
161 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl()
169 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter()
186 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter()
209 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl()
238 return iterator(static_cast<NamedDecl*>(Ptr)); in begin()
262 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations()
302 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl()
316 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl()
[all …]
H A DSemaLookup.cpp367 NamedDecl *D, NamedDecl *Existing) { in isPreferredLookupResult()
459 static bool canHideTag(NamedDecl *D) { in canHideTag()
492 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
503 llvm::SmallDenseMap<NamedDecl*, unsigned, 16> Unique; in resolveKind()
509 NamedDecl *HasNonFunction = nullptr; in resolveKind()
511 llvm::SmallVector<NamedDecl*, 4> EquivalentNonFunctions; in resolveKind()
517 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
518 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
607 NamedDecl *OtherDecl = Decls[UniqueTagIndex ? 0 : N - 1]; in resolveKind()
676 for (NamedDecl *D : *this) in dump()
[all …]
H A DSemaAvailability.cpp62 static std::pair<AvailabilityResult, const NamedDecl *>
63 ShouldDiagnoseAvailabilityOfDecl(Sema &S, const NamedDecl *D, in ShouldDiagnoseAvailabilityOfDecl()
122 const NamedDecl *OffendingDecl) { in ShouldDiagnoseAvailabilityInContext()
203 static NamedDecl *findEnclosingDeclToAnnotate(Decl *OrigCtx) { in findEnclosingDeclToAnnotate()
207 return cast<NamedDecl>(Ctx); in findEnclosingDeclToAnnotate()
215 return dyn_cast<NamedDecl>(OrigCtx); in findEnclosingDeclToAnnotate()
225 static AttributeInsertion createInsertionAfter(const NamedDecl *D) { in createInsertionAfter()
231 static AttributeInsertion createInsertionBefore(const NamedDecl *D) { in createInsertionBefore()
280 createAttributeInsertion(const NamedDecl *D, const SourceManager &SM, in createAttributeInsertion()
311 Decl *Ctx, const NamedDecl *ReferringDecl, in DoEmitAvailabilityWarning()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp38 using MangledSymbols = std::map<const NamedDecl *, MangledSymbol>;
40 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in WriteNamedDecl()
48 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl()
52 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool { in WriteNamedDecl()
84 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl()
92 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string> { in WriteNamedDecl()
114 const NamedDecl *ParentDecl = getParentFunctionDecl(ND); in WriteNamedDecl()
147 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleDecls()
153 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations()
159 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp43 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence()
58 const NamedDecl *getNamedDecl() const { return Result; } in getNamedDecl()
70 const NamedDecl *Result = nullptr;
77 const NamedDecl *getNamedDeclAt(const ASTContext &Context, in getNamedDeclAt()
108 bool VisitNamedDecl(const NamedDecl *ND) { in VisitNamedDecl()
119 const NamedDecl *getNamedDecl() const { return Result; } in getNamedDecl()
122 const NamedDecl *Result = nullptr;
128 const NamedDecl *getNamedDeclFor(const ASTContext &Context, in getNamedDeclFor()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/
H A DIndexingContext.h26 class NamedDecl; variable
78 bool handleReference(const NamedDecl *D, SourceLocation Loc,
79 const NamedDecl *Parent,
102 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
107 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
113 const NamedDecl *Parent,
118 void indexBody(const Stmt *S, const NamedDecl *Parent,
H A DIndexDecl.cpp47 const NamedDecl *Parent, in handleTemplateArgumentLoc()
64 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in handleTemplateArgumentLoc()
85 const NamedDecl *Parent = nullptr, in handleDeclarator()
94 const NamedDecl *Parent) { in handleDeclarator()
171 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
199 gatherTemplatePseudoOverrides(const NamedDecl *D, in gatherTemplatePseudoOverrides()
213 for (const NamedDecl *ND : Pattern->lookup(D->getDeclName())) { in gatherTemplatePseudoOverrides()
595 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDecl()
606 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDirectiveDecl()
623 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingValueDecl()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/Rename/
H A DUSRFindingAction.h27 class NamedDecl; variable
38 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl);
41 std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
H A DRenamingAction.h57 const NamedDecl *getRenameDecl() const;
60 RenameOccurrences(const NamedDecl *ND, std::string NewName) in RenameOccurrences()
66 const NamedDecl *ND;
79 QualifiedRenameRule(const NamedDecl *ND, in QualifiedRenameRule()
87 const NamedDecl *ND;
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCXIndexDataConsumer.h49 const NamedDecl *Dcl;
413 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor,
414 const NamedDecl *Parent,
444 bool handleDecl(const NamedDecl *D,
454 bool handleCXXRecordDecl(const CXXRecordDecl *RD, const NamedDecl *OrigD);
456 bool markEntityOccurrenceInFile(const NamedDecl *D, SourceLocation Loc);
458 const NamedDecl *getEntityDecl(const NamedDecl *D) const;
466 void getEntityInfo(const NamedDecl *D,
476 CXCursor getRefCursor(const NamedDecl *D, SourceLocation Loc);

12345678910