Home
last modified time | relevance | path

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

1234567891011

/openbsd/gnu/llvm/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.h385 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
399 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
452 void addDecl(NamedDecl *D) { in addDecl()
543 NamedDecl *getFoundDecl() const { in getFoundDecl()
669 NamedDecl *next() { in next()
687 void replace(NamedDecl *D) { in replace()
812 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
826 llvm::MapVector<NamedDecl*, NamedDecl*> Decls;
829 NamedDecl *operator()(std::pair<NamedDecl*, NamedDecl*> P) const { in operator()
836 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;
/openbsd/gnu/llvm/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 std::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.cpp40 bool VisitNamedDecl(NamedDecl *D) { in VisitNamedDecl()
90 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
96 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
112 void ASTImporterLookupTable::add(NamedDecl *ND) { in add()
121 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove()
130 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
143 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced()
162 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
176 for (NamedDecl *ND : List) { in dump()
/openbsd/gnu/llvm/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
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 DDeclContextInternals.h84 void erase(NamedDecl *ND) { in erase()
85 erase_if([ND](NamedDecl *D) { return D == ND; }); in erase()
125 if (NamedDecl *ND = getAsDecl()) in getASTContext()
132 NamedDecl *getAsDecl() const { in getAsDecl()
148 void remove(NamedDecl *D) { in remove()
164 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
167 for (NamedDecl *D : Decls) in replaceExternalDecls()
215 void addOrReplaceDecl(NamedDecl *D) { in addOrReplaceDecl()
224 if (NamedDecl *OldD = getAsDecl()) { in addOrReplaceDecl()
248 if (auto *ND = N->Rest.dyn_cast<NamedDecl *>()) { in addOrReplaceDecl()
[all …]
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 const NamedDecl *ConstraintOwner = nullptr;
38 ConstraintSatisfaction(const NamedDecl *ConstraintOwner, in ConstraintSatisfaction()
60 const NamedDecl *ConstraintOwner,
128 NamedDecl *FoundDecl;
139 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference()
161 NamedDecl *getFoundDecl() const { in getFoundDecl()
187 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in TypeConstraint()
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()
148 const NamedDecl *ID,
[all …]
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()
115 Impl.addDecl(C, reinterpret_cast<NamedDecl *>(ID << 2), AS); in addLazyDecl()
/openbsd/gnu/llvm/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.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()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DIdentifierResolver.cpp74 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl()
150 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl()
167 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl()
175 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter()
192 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter()
215 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl()
244 return iterator(static_cast<NamedDecl*>(Ptr)); in begin()
268 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations()
308 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl()
322 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl()
[all …]
H A DSemaLookup.cpp370 NamedDecl *D, NamedDecl *Existing) { in isPreferredLookupResult()
951 if (NamedDecl *D = in LookupBuiltin()
2015 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl()
2052 NamedDecl *LookupResult::getAcceptableDeclSlow(NamedDecl *D) const { in getAcceptableDeclSlow()
3797 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())]; in insert()
3989 NamedDecl *checkHidden(NamedDecl *ND);
4015 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden()
4313 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in lookupInScope()
4542 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl()
5645 static NamedDecl *getDefinitionToImport(NamedDecl *D) { in getDefinitionToImport()
[all …]
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/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 …]
/openbsd/gnu/llvm/clang/lib/Index/
H A DIndexingContext.h26 class NamedDecl; variable
78 bool handleReference(const NamedDecl *D, SourceLocation Loc,
79 const NamedDecl *Parent, const DeclContext *DC,
100 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
105 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
111 const NamedDecl *Parent,
116 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()
205 gatherTemplatePseudoOverrides(const NamedDecl *D, 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()
654 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingTypenameDecl()
697 const NamedDecl *Parent) { in indexTemplateParameters()
698 for (const NamedDecl *TP : *Params) { in indexTemplateParameters()
[all …]
/openbsd/gnu/llvm/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 DUSRFinder.h28 class NamedDecl; variable
34 const NamedDecl *getNamedDeclAt(const ASTContext &Context,
40 const NamedDecl *getNamedDeclFor(const ASTContext &Context,
/openbsd/gnu/llvm/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp20 const NamedDecl *
22 const NamedDecl *TypeDecl = nullptr; in getUnderlyingTypeDecl()
51 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getSymbolReferenceForType()
68 const NamedDecl *TypeDecl = getUnderlyingTypeDecl(Type); in getUSRForType()

1234567891011