Home
last modified time | relevance | path

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

1234567891011

/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DIdentifierResolver.h31 class NamedDecl; variable
45 using DeclsTy = SmallVector<NamedDecl *, 2>;
54 void RemoveDecl(NamedDecl *D);
73 using value_type = NamedDecl *;
74 using reference = NamedDecl *;
75 using pointer = NamedDecl *;
87 iterator(NamedDecl *D) { in iterator()
110 NamedDecl *operator*() const {
114 return reinterpret_cast<NamedDecl*>(Ptr);
159 void AddDecl(NamedDecl *D);
[all …]
H A DLookup.h361 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
373 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
426 void addDecl(NamedDecl *D) { in addDecl()
517 NamedDecl *getFoundDecl() const { in getFoundDecl()
643 NamedDecl *next() { in next()
661 void replace(NamedDecl *D) { in replace()
787 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
801 llvm::MapVector<NamedDecl*, NamedDecl*> Decls;
804 NamedDecl *operator()(std::pair<NamedDecl*, NamedDecl*> P) const { in operator()
811 void insert(NamedDecl *D);
[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;
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DLinkage.h42 explicit LVComputationKind(NamedDecl::ExplicitVisibilityKind EK) in LVComputationKind()
46 NamedDecl::ExplicitVisibilityKind getExplicitVisibilityKind() const { in getExplicitVisibilityKind()
51 return getExplicitVisibilityKind() == NamedDecl::VisibilityForType; in isTypeVisibility()
59 LVComputationKind Result(NamedDecl::VisibilityForValue); in forLinkageOnly()
86 llvm::PointerIntPair<const NamedDecl *,
94 llvm::Optional<LinkageInfo> lookup(const NamedDecl *ND, in lookup()
124 LinkageInfo getLVForNamespaceScopeDecl(const NamedDecl *D,
128 LinkageInfo getLVForClassMember(const NamedDecl *D,
135 LinkageInfo getLVForLocalDecl(const NamedDecl *D,
146 LinkageInfo computeLVForDecl(const NamedDecl *D,
[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()
120 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
147 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
161 for (NamedDecl *ND : List) { in dump()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DUnresolvedSet.h28 class NamedDecl; variable
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()
111 void replace(iterator I, NamedDecl *New) { I.I->setDecl(New); } in replace()
[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);
77 void update(NamedDecl *ND, DeclContext *OldDC);
83 bool contains(DeclContext *DC, NamedDecl *ND) const;
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()
149 void remove(NamedDecl *D) { in remove()
165 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
168 for (NamedDecl *D : Decls) in replaceExternalDecls()
216 void addOrReplaceDecl(NamedDecl *D) { in addOrReplaceDecl()
225 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl()
249 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { in addOrReplaceDecl()
[all …]
H A DMangle.h35 class NamedDecl; variable
60 llvm::DenseMap<const NamedDecl*, uint64_t> AnonStructIds;
86 uint64_t getAnonymousStructId(const NamedDecl *D) { 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;
110 virtual bool isUniqueInternalLinkageDecl(const NamedDecl *ND) { in isUniqueInternalLinkageDecl()
134 const NamedDecl *ID,
159 virtual void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl,
[all …]
H A DASTConcept.h33 const NamedDecl *ConstraintOwner = nullptr;
40 ConstraintSatisfaction(const NamedDecl *ConstraintOwner, in ConstraintSatisfaction()
61 const NamedDecl *ConstraintOwner,
117 NamedDecl *FoundDecl;
129 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference()
151 NamedDecl *getFoundDecl() const { in getFoundDecl()
177 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;
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DNameSearchContext.h30 llvm::SmallVectorImpl<clang::NamedDecl *> &m_decls;
65 llvm::SmallVectorImpl<clang::NamedDecl *> &decls, in NameSearchContext()
78 clang::NamedDecl *AddVarDecl(const CompilerType &type);
88 clang::NamedDecl *AddFunDecl(const CompilerType &type, bool extern_c = false);
92 clang::NamedDecl *AddGenericFunDecl();
99 clang::NamedDecl *AddTypeDecl(const CompilerType &compiler_type);
114 void AddNamedDecl(clang::NamedDecl *decl);
H A DNameSearchContext.cpp15 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()
H A DClangDeclVendor.cpp19 std::vector<clang::NamedDecl *> &decls) { in FindDecls()
27 clang::NamedDecl *nd = llvm::cast<clang::NamedDecl>(d); in FindDecls()
/freebsd-13.1/contrib/llvm-project/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 …]
/freebsd-13.1/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-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp48 auto isVisible = [](const NamedDecl *ND) -> bool { in WriteNamedDecl()
84 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * { 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()
245 bool VisitNamedDecl(NamedDecl *ND) { in HandleTranslationUnit()
261 std::set<const NamedDecl *> LateParsedDecls; in HandleTranslationUnit()
262 std::set<NamedDecl *> NamedDecls; in HandleTranslationUnit()
283 for (const NamedDecl *ND : v.ValueDecls) in HandleTranslationUnit()
[all …]
/freebsd-13.1/contrib/llvm-project/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()
199 gatherTemplatePseudoOverrides(const NamedDecl *D, 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()
632 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingTypenameDecl()
676 const NamedDecl *Parent = D->getTemplatedDecl(); in VisitTemplateDecl()
684 for (const NamedDecl *TP : *Params) { in VisitTemplateDecl()
[all …]
/freebsd-13.1/contrib/llvm-project/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 DUSRFinder.h28 class NamedDecl; variable
34 const NamedDecl *getNamedDeclAt(const ASTContext &Context,
40 const NamedDecl *getNamedDeclFor(const ASTContext &Context,
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;

1234567891011