Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHeuristicResolver.cpp35 std::vector<const NamedDecl *>
37 std::vector<const NamedDecl *>
39 std::vector<const NamedDecl *> resolveTypeOfCallExpr(const CallExpr *CE);
40 std::vector<const NamedDecl *> resolveCalleeOfCallExpr(const CallExpr *CE);
41 std::vector<const NamedDecl *>
43 std::vector<const NamedDecl *>
45 std::vector<const NamedDecl *> resolveTemplateSpecializationType(
49 std::vector<const NamedDecl *>
51 llvm::function_ref<bool(const NamedDecl *ND)> Filter);
71 std::vector<const NamedDecl *>
[all …]
H A DSemaLookup.cpp374 const NamedDecl *D, in isPreferredLookupResult()
375 const NamedDecl *Existing) { in isPreferredLookupResult()
467 static bool canHideTag(const NamedDecl *D) { in canHideTag()
500 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
512 llvm::SmallDenseMap<const NamedDecl *, unsigned, 16> Unique; in resolveKind()
519 const NamedDecl *HasNonFunction = nullptr; in resolveKind()
521 llvm::SmallVector<const NamedDecl *, 4> EquivalentNonFunctions; in resolveKind()
525 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
526 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
697 for (NamedDecl *D : *this) in dump()
[all …]
/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()
127 void ASTImporterLookupTable::add(NamedDecl *ND) { in add()
136 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove()
145 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
158 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced()
177 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
191 for (NamedDecl *ND : List) { in dump()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DHeuristicResolver.h24 class NamedDecl; variable
52 std::vector<const NamedDecl *>
54 std::vector<const NamedDecl *>
56 std::vector<const NamedDecl *>
58 std::vector<const NamedDecl *>
60 std::vector<const NamedDecl *>
62 std::vector<const NamedDecl *>
64 std::vector<const NamedDecl *> resolveTemplateSpecializationType(
76 std::vector<const NamedDecl *>
78 llvm::function_ref<bool(const NamedDecl *ND)> Filter);
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 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;
H A DSema.h231 typedef std::pair<llvm::PointerUnion<const TemplateTypeParmType *, NamedDecl *>,
351 NamedDecl *Previous = nullptr;
352 NamedDecl *New = nullptr;
948 SmallVectorImpl<std::pair<NamedDecl *, SourceLocation>> &Undefined);
1153 NamedDecl *getCurFunctionOrMethodDecl() const;
1651 bool SetMemberAccessSpecifier(NamedDecl *MemberDecl,
1652 NamedDecl *PrevMemberDecl,
1686 AccessResult CheckFriendAccess(NamedDecl *D);
1750 bool IsSimplyAccessible(NamedDecl *Decl, CXXRecordDecl *NamingClass,
2127 void inferGslPointerAttribute(NamedDecl *ND, CXXRecordDecl *UnderlyingRecord);
[all …]
H A DSemaConcept.h34 const NamedDecl *ConstraintDecl;
37 AtomicConstraint(const Expr *ConstraintExpr, const NamedDecl *ConstraintDecl) in AtomicConstraint()
117 fromAssociatedConstraints(Sema &S, const NamedDecl *D,
120 fromConstraintExpr(Sema &S, const NamedDecl *D, const Expr *E);
141 Sema &S, const NamedDecl *ConstrainedDecl,
153 std::optional<bool> Subsumes(const NamedDecl *DP,
155 const NamedDecl *DQ,
/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; }
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.h87 else if (isa<NamedDecl *>(NewHead)) in erase_if()
91 assert(NewLast && isa<NamedDecl *>(*NewLast) && "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.h31 class NamedDecl; variable
39 const NamedDecl *ConstraintOwner = nullptr;
46 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()
273 NamedDecl *getFoundDecl() const { return ConceptRef->getFoundDecl(); } in getFoundDecl()
H A DMangle.h36 class NamedDecl; variable
68 llvm::DenseMap<const NamedDecl *, uint64_t> AnonStructIds;
96 uint64_t getAnonymousStructId(const NamedDecl *D,
105 std::pair<llvm::DenseMap<const NamedDecl *, uint64_t>::iterator, bool>
110 uint64_t getAnonymousStructIdForDebugInfo(const NamedDecl *D) { in getAnonymousStructIdForDebugInfo()
111 llvm::DenseMap<const NamedDecl *, uint64_t>::iterator Result = in getAnonymousStructIdForDebugInfo()
124 bool shouldMangleDeclName(const NamedDecl *D);
125 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
128 virtual bool isUniqueInternalLinkageDecl(const NamedDecl *ND) { in isUniqueInternalLinkageDecl()
152 void mangleGlobalBlock(const BlockDecl *BD, const NamedDecl *ID,
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.h30 llvm::SmallVectorImpl<clang::NamedDecl *> &m_decls;
63 llvm::SmallVectorImpl<clang::NamedDecl *> &decls, in NameSearchContext()
76 clang::NamedDecl *AddVarDecl(const CompilerType &type);
86 clang::NamedDecl *AddFunDecl(const CompilerType &type, bool extern_c = false);
90 clang::NamedDecl *AddGenericFunDecl();
97 clang::NamedDecl *AddTypeDecl(const CompilerType &compiler_type);
112 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 *decl) { in AddNamedDecl()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp41 bool visitSymbolOccurrence(const NamedDecl *ND, in visitSymbolOccurrence()
56 const NamedDecl *getNamedDecl() const { return Result; } in getNamedDecl()
68 const NamedDecl *Result = nullptr;
75 const NamedDecl *getNamedDeclAt(const ASTContext &Context, in getNamedDeclAt()
106 bool VisitNamedDecl(const NamedDecl *ND) { in VisitNamedDecl()
117 const NamedDecl *getNamedDecl() const { return Result; } in getNamedDecl()
120 const NamedDecl *Result = nullptr;
126 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/lib/Index/
H A DIndexingContext.h27 class NamedDecl; variable
85 bool handleReference(const NamedDecl *D, SourceLocation Loc,
86 const NamedDecl *Parent, const DeclContext *DC,
106 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
111 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
117 const NamedDecl *Parent,
122 void indexBody(const Stmt *S, const NamedDecl *Parent,
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/StaticAnalyzer/Checkers/WebKit/
H A DMemoryUnsafeCastChecker.cpp45 const NamedDecl *Base = Nodes.getNodeAs<NamedDecl>(BaseNode); in emitDiagnostics()
46 const NamedDecl *Derived = Nodes.getNodeAs<NamedDecl>(DerivedNode); in emitDiagnostics()
65 const NamedDecl *FromCast = Nodes.getNodeAs<NamedDecl>(FromCastNode); in emitDiagnosticsUnrelated()
66 const NamedDecl *ToCast = Nodes.getNodeAs<NamedDecl>(ToCastNode); in emitDiagnosticsUnrelated()
85 if (const auto *ND = BN.get<NamedDecl>()) { in AST_MATCHER_P()
/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;

12345678910>>...12