Home
last modified time | relevance | path

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

1234567891011

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DLinkage.h45 explicit LVComputationKind(NamedDecl::ExplicitVisibilityKind EK) in LVComputationKind()
49 NamedDecl::ExplicitVisibilityKind getExplicitVisibilityKind() const { in getExplicitVisibilityKind()
50 return static_cast<NamedDecl::ExplicitVisibilityKind>(ExplicitKind); in getExplicitVisibilityKind()
54 return getExplicitVisibilityKind() == NamedDecl::VisibilityForType; in isTypeVisibility()
57 return getExplicitVisibilityKind() == NamedDecl::VisibilityForValue; in isValueVisibility()
62 LVComputationKind Result(NamedDecl::VisibilityForValue); in forLinkageOnly()
89 llvm::PointerIntPair<const NamedDecl *,
93 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) { in makeCacheKey()
97 std::optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup()
105 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) { in cache()
[all …]
H A DASTImporterLookupTable.cpp40 bool VisitNamedDecl(NamedDecl *D) { in VisitNamedDecl()
93 dyn_cast_or_null<NamedDecl>(TU.getASTContext().getVaListTagDecl())) { in ASTImporterLookupTable()
104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
126 void ASTImporterLookupTable::add(NamedDecl *ND) { in add()
135 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove()
144 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
157 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced()
176 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
190 for (NamedDecl *ND : List) { in dump()
H A DMangle.cpp58 static bool isExternC(const NamedDecl *ND) { in isExternC()
67 const NamedDecl *ND) { in getCallingConvMangling()
105 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName()
141 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleName()
259 const NamedDecl *ID, in mangleGlobalBlock()
302 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
306 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
312 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock()
482 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings()
536 bool writeFuncOrVarName(const NamedDecl *D, raw_ostream &OS) { in writeFuncOrVarName()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporterLookupTable.h24 class NamedDecl; variable
52 using DeclList = llvm::SmallSetVector<NamedDecl *, 2>;
56 void add(DeclContext *DC, NamedDecl *ND);
57 void remove(DeclContext *DC, NamedDecl *ND);
63 void add(NamedDecl *ND);
64 void remove(NamedDecl *ND);
76 void update(NamedDecl *ND, DeclContext *OldDC);
80 void updateForced(NamedDecl *ND, DeclContext *OldDC);
86 bool contains(DeclContext *DC, NamedDecl *ND) const;
H A DUnresolvedSet.h28 class NamedDecl; variable
34 std::random_access_iterator_tag, NamedDecl *,
35 std::ptrdiff_t, NamedDecl *, NamedDecl *> {
51 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl()
52 void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } in setDecl()
57 NamedDecl *operator*() const { return getDecl(); }
58 NamedDecl *operator->() const { return **this; }
92 void addDecl(NamedDecl *D) { in addDecl()
96 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
103 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace()
[all …]
H A DDeclContextInternals.h87 else if (NewHead.is<NamedDecl *>()) in erase_if()
91 assert(NewLast && NewLast->is<NamedDecl *>() && "Not the tail?"); in erase_if()
96 void erase(NamedDecl *ND) { in erase()
97 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase()
137 if (NamedDecl *ND = getAsDecl()) in getASTContext()
144 NamedDecl *getAsDecl() const { in getAsDecl()
145 return getAsListAndHasExternal().getPointer().dyn_cast<NamedDecl *>(); in getAsDecl()
160 void remove(NamedDecl *D) { in remove()
167 erase_if([](NamedDecl *ND) { return ND->isFromASTFile(); }); in removeExternalDecls()
173 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls()
[all …]
H A DDeclAccessPair.h26 class NamedDecl; variable
44 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make()
61 NamedDecl *getDecl() const { in getDecl()
63 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl()
67 void setDecl(NamedDecl *D) { in setDecl()
73 void set(NamedDecl *D, AccessSpecifier AS) { in set()
77 operator NamedDecl*() const { return getDecl(); }
78 NamedDecl *operator->() const { return getDecl(); }
H A DODRDiagsEmitter.h140 const NamedDecl *FirstRecord,
142 const NamedDecl *SecondRecord,
146 const NamedDecl *FirstRecord,
148 const NamedDecl *SecondRecord,
151 bool diagnoseSubMismatchField(const NamedDecl *FirstRecord,
156 bool diagnoseSubMismatchTypedef(const NamedDecl *FirstRecord,
162 bool diagnoseSubMismatchVar(const NamedDecl *FirstRecord,
180 bool diagnoseSubMismatchObjCMethod(const NamedDecl *FirstObjCContainer,
190 diagnoseSubMismatchObjCProperty(const NamedDecl *FirstObjCContainer,
H A DASTConcept.h30 class NamedDecl; variable
38 const NamedDecl *ConstraintOwner = nullptr;
45 ConstraintSatisfaction(const NamedDecl *ConstraintOwner, in ConstraintSatisfaction()
66 const NamedDecl *ConstraintOwner,
140 NamedDecl *FoundDecl;
150 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference()
161 NamedDecl *FoundDecl, ConceptDecl *NamedConcept,
196 NamedDecl *getFoundDecl() const { in getFoundDecl()
269 NamedDecl *getFoundDecl() const { return ConceptRef->getFoundDecl(); } in getFoundDecl()
H A DMangle.h36 class NamedDecl; variable
64 llvm::DenseMap<const NamedDecl*, uint64_t> AnonStructIds;
92 uint64_t getAnonymousStructId(const NamedDecl *D,
101 std::pair<llvm::DenseMap<const NamedDecl *, uint64_t>::iterator, bool>
106 uint64_t getAnonymousStructIdForDebugInfo(const NamedDecl *D) { in getAnonymousStructIdForDebugInfo()
107 llvm::DenseMap<const NamedDecl *, uint64_t>::iterator Result = in getAnonymousStructIdForDebugInfo()
120 bool shouldMangleDeclName(const NamedDecl *D);
121 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
124 virtual bool isUniqueInternalLinkageDecl(const NamedDecl *ND) { in isUniqueInternalLinkageDecl()
149 const NamedDecl *ID,
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DLookup.h304 bool isHiddenDeclarationVisible(NamedDecl *ND) const { in isHiddenDeclarationVisible()
372 static bool isVisible(Sema &SemaRef, NamedDecl *D);
374 static bool isReachable(Sema &SemaRef, NamedDecl *D);
376 static bool isAcceptable(Sema &SemaRef, NamedDecl *D, in isAcceptable()
404 static bool isAvailableForLookup(Sema &SemaRef, NamedDecl *ND);
408 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
419 static bool isAcceptableSlow(Sema &SemaRef, NamedDecl *D,
421 static bool isReachableSlow(Sema &SemaRef, NamedDecl *D);
422 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
475 void addDecl(NamedDecl *D) { in addDecl()
[all …]
H A DSema.h157 class NamedDecl; variable
256 typedef std::pair<llvm::PointerUnion<const TemplateTypeParmType *, NamedDecl *>,
374 NamedDecl *Previous = nullptr;
375 NamedDecl *New = nullptr;
642 SmallVectorImpl<std::pair<NamedDecl *, SourceLocation>> &Undefined);
866 NamedDecl *getCurFunctionOrMethodDecl() const;
1343 bool SetMemberAccessSpecifier(NamedDecl *MemberDecl,
1344 NamedDecl *PrevMemberDecl,
1378 AccessResult CheckFriendAccess(NamedDecl *D);
1436 bool IsSimplyAccessible(NamedDecl *Decl, CXXRecordDecl *NamingClass,
[all …]
H A DDelayedDiagnostic.h80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl()
118 NamedDecl *Target;
139 const NamedDecl *ReferringDecl,
140 const NamedDecl *OffendingDecl,
179 const NamedDecl *getAvailabilityReferringDecl() const { in getAvailabilityReferringDecl()
184 const NamedDecl *getAvailabilityOffendingDecl() const { in getAvailabilityOffendingDecl()
237 const NamedDecl *ReferringDecl;
238 const NamedDecl *OffendingDecl;
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.h30 llvm::SmallVectorImpl<clang::NamedDecl *> &m_decls;
64 llvm::SmallVectorImpl<clang::NamedDecl *> &decls, in NameSearchContext()
77 clang::NamedDecl *AddVarDecl(const CompilerType &type);
87 clang::NamedDecl *AddFunDecl(const CompilerType &type, bool extern_c = false);
91 clang::NamedDecl *AddGenericFunDecl();
98 clang::NamedDecl *AddTypeDecl(const CompilerType &compiler_type);
113 void AddNamedDecl(clang::NamedDecl *decl);
H A DNameSearchContext.cpp16 clang::NamedDecl *NameSearchContext::AddVarDecl(const CompilerType &type) { in AddVarDecl()
30 clang::NamedDecl *Decl = VarDecl::Create( in AddVarDecl()
38 clang::NamedDecl *NameSearchContext::AddFunDecl(const CompilerType &type, in AddFunDecl()
130 clang::NamedDecl *NameSearchContext::AddGenericFunDecl() { in AddGenericFunDecl()
143 clang::NamedDecl *
154 return (NamedDecl *)typedef_name_decl; in AddTypeDecl()
165 m_decls.push_back((NamedDecl *)interface_decl); in AddTypeDecl()
167 return (NamedDecl *)interface_decl; in AddTypeDecl()
174 for (clang::NamedDecl *decl : result) in AddLookupResult()
178 void NameSearchContext::AddNamedDecl(clang::NamedDecl *dec
[all...]
H A DClangDeclVendor.cpp19 std::vector<clang::NamedDecl *> &decls) { in FindDecls()
27 clang::NamedDecl *nd = llvm::cast<clang::NamedDecl>(d); in FindDecls()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp39 using MangledSymbols = std::map<const NamedDecl *, MangledSymbol>;
41 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) { in WriteNamedDecl()
49 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl()
53 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool { in WriteNamedDecl()
85 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { in WriteNamedDecl()
93 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string> { in WriteNamedDecl()
115 const NamedDecl *ParentDecl = getParentFunctionDecl(ND); in WriteNamedDecl()
148 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleDecls()
154 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations()
160 HandleNamedDecl(dyn_cast<NamedDecl>(D), Symbols, RDO); in HandleTemplateSpecializations()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/
H A DUSRFindingAction.h26 class NamedDecl; variable
37 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl);
40 std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
H A DRenamingAction.h56 const NamedDecl *getRenameDecl() const;
59 RenameOccurrences(const NamedDecl *ND, std::string NewName) in RenameOccurrences()
65 const NamedDecl *ND;
78 QualifiedRenameRule(const NamedDecl *ND, in QualifiedRenameRule()
86 const NamedDecl *ND;
H A DUSRFinder.h28 class NamedDecl; variable
34 const NamedDecl *getNamedDeclAt(const ASTContext &Context,
40 const NamedDecl *getNamedDeclFor(const ASTContext &Context,
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp51 const NamedDecl *Parent, in handleTemplateArgumentLoc()
68 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in handleTemplateArgumentLoc()
89 const NamedDecl *Parent = nullptr, in handleDeclarator()
98 const NamedDecl *Parent) { in handleDeclarator()
177 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
205 gatherTemplatePseudoOverrides(const NamedDecl *D, in gatherTemplatePseudoOverrides()
219 for (const NamedDecl *ND : Pattern->lookup(D->getDeclName())) { in gatherTemplatePseudoOverrides()
610 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDecl()
628 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDirectiveDecl()
645 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingValueDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp372 const NamedDecl *D, in isPreferredLookupResult()
373 const NamedDecl *Existing) { in isPreferredLookupResult()
465 static bool canHideTag(const NamedDecl *D) { in canHideTag()
498 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
509 llvm::SmallDenseMap<const NamedDecl *, unsigned, 16> Unique; in resolveKind()
516 const NamedDecl *HasNonFunction = nullptr; in resolveKind()
518 llvm::SmallVector<const NamedDecl *, 4> EquivalentNonFunctions; in resolveKind()
522 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
523 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
694 for (NamedDecl *D : *this) in dump()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp21 const NamedDecl *
23 const NamedDecl *TypeDecl = nullptr; in getUnderlyingTypeDecl()
52 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getSymbolReferenceForType()
72 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getUSRForType()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DAnalysisOrderChecker.cpp128 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in evalCall()
141 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in checkPreCall()
151 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl())) in checkPostCall()

1234567891011