Home
last modified time | relevance | path

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

12345678910

/freebsd-12.1/contrib/llvm/tools/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,
144 LinkageInfo computeLVForDecl(const NamedDecl *D,
[all …]
H A DASTImporterLookupTable.cpp26 bool VisitNamedDecl(NamedDecl *D) { in VisitNamedDecl()
59 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
65 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
72 void ASTImporterLookupTable::add(NamedDecl *ND) { in add()
81 void ASTImporterLookupTable::remove(NamedDecl *ND) { in remove()
114 for (NamedDecl *ND : List) { in dump()
H A DMangle.cpp54 static bool isExternC(const NamedDecl *ND) { in isExternC()
61 const NamedDecl *ND) { in getCallingConvMangling()
93 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName()
117 void MangleContext::mangleName(const NamedDecl *D, raw_ostream &Out) { in mangleName()
189 const NamedDecl *ID, in mangleGlobalBlock()
232 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
237 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
243 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclContextInternals.h52 RHS.Data = (NamedDecl *)nullptr; in StoredDeclsList()
65 RHS.Data = (NamedDecl *)nullptr;
71 NamedDecl *getAsDecl() const { in getAsDecl()
72 return Data.dyn_cast<NamedDecl *>(); in getAsDecl()
92 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls()
98 void setOnlyValue(NamedDecl *ND) { in setOnlyValue()
107 void remove(NamedDecl *D) { in remove()
112 Data = (NamedDecl *)nullptr; in remove()
150 if (NamedDecl *ND = getAsDecl()) { in getLookupResult()
179 NamedDecl *OldD = *OD; in HandleRedeclaration()
[all …]
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; }
89 void addDecl(NamedDecl *D) { in addDecl()
93 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
100 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace()
109 void replace(iterator I, NamedDecl *New) { I.I->setDecl(New); } in replace()
[all …]
H A DDeclAccessPair.h26 class NamedDecl; variable
36 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make()
42 NamedDecl *getDecl() const { in getDecl()
43 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl()
49 void setDecl(NamedDecl *D) { in setDecl()
55 void set(NamedDecl *D, AccessSpecifier AS) { in set()
59 operator NamedDecl*() const { return getDecl(); }
60 NamedDecl *operator->() const { return getDecl(); }
H A DASTImporterLookupTable.h26 class NamedDecl; variable
54 using DeclList = llvm::SmallSetVector<NamedDecl *, 2>;
58 void add(DeclContext *DC, NamedDecl *ND);
59 void remove(DeclContext *DC, NamedDecl *ND);
65 void add(NamedDecl *ND);
66 void remove(NamedDecl *ND);
H A DMangle.h35 class NamedDecl; variable
95 bool shouldMangleDeclName(const NamedDecl *D);
96 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
100 void mangleName(const NamedDecl *D, raw_ostream &);
101 virtual void mangleCXXName(const NamedDecl *D, raw_ostream &) = 0;
120 const NamedDecl *ID,
139 virtual void mangleSEHFilterExpression(const NamedDecl *EnclosingDecl,
142 virtual void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl,
H A DDeclCXX.h79 NamedDecl *Function;
92 NamedDecl *get() const { return Function; } in get()
1853 std::vector<const NamedDecl *>
2927 NamedDecl *NominatedNamespace;
3037 NamedDecl *Namespace;
3143 NamedDecl *Underlying = nullptr;
3147 NamedDecl *UsingOrNextShadow = nullptr;
3205 void setTargetDecl(NamedDecl *ND) {
3340 void setConstructor(NamedDecl *Ctor);
3507 NamedDecl *InstantiatedFrom;
[all …]
H A DASTUnresolvedSet.h27 class NamedDecl; variable
56 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
63 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { in replace()
111 Impl.addDecl(C, reinterpret_cast<NamedDecl *>(ID << 2), AS); in addLazyDecl()
H A DDeclTemplate.h114 using iterator = NamedDecl **;
117 using const_iterator = NamedDecl * const *;
126 ArrayRef<NamedDecl*> asArray() { in asArray()
133 NamedDecl* getParam(unsigned Idx) { in getParam()
192 NamedDecl *, Expr *>::with_counts<
399 class TemplateDecl : public NamedDecl {
468 NamedDecl *TemplatedDecl;
994 NamedDecl *Decl)
2086 NamedDecl *Decl)
2300 NamedDecl *getFriendDecl() const {
[all …]
H A DDependentDiagnostic.h34 class NamedDecl; variable
47 NamedDecl *TargetDecl, in Create()
80 NamedDecl *getAccessTarget() const { in getAccessTarget()
85 NamedDecl *getAccessNamingClass() const { in getAccessNamingClass()
119 NamedDecl *TargetDecl;
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DIdentifierResolver.h32 class NamedDecl; variable
46 using DeclsTy = SmallVector<NamedDecl *, 2>;
55 void RemoveDecl(NamedDecl *D);
74 using value_type = NamedDecl *;
75 using reference = NamedDecl *;
76 using pointer = NamedDecl *;
88 iterator(NamedDecl *D) { in iterator()
111 NamedDecl *operator*() const {
115 return reinterpret_cast<NamedDecl*>(Ptr);
160 void AddDecl(NamedDecl *D);
[all …]
H A DLookup.h350 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
362 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
415 void addDecl(NamedDecl *D) { in addDecl()
506 NamedDecl *getFoundDecl() const { in getFoundDecl()
632 NamedDecl *next() { in next()
650 void replace(NamedDecl *D) { in replace()
773 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
787 llvm::MapVector<NamedDecl*, NamedDecl*> Decls;
790 NamedDecl *operator()(std::pair<NamedDecl*, NamedDecl*> P) const { in operator()
797 void insert(NamedDecl *D);
[all …]
H A DTypoCorrection.h60 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
69 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
147 NamedDecl *getFoundDecl() const { in getFoundDecl()
152 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl()
167 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl()
173 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls()
180 void addCorrectionDecl(NamedDecl *CDecl);
231 using decl_iterator = SmallVectorImpl<NamedDecl *>::iterator;
239 using const_decl_iterator = SmallVectorImpl<NamedDecl *>::const_iterator;
269 SmallVector<NamedDecl *, 1> CorrectionDecls;
H A DDelayedDiagnostic.h86 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl()
122 NamedDecl *Target;
143 const NamedDecl *ReferringDecl,
144 const NamedDecl *OffendingDecl,
183 const NamedDecl *getAvailabilityReferringDecl() const { in getAvailabilityReferringDecl()
188 const NamedDecl *getAvailabilityOffendingDecl() const { in getAvailabilityOffendingDecl()
241 const NamedDecl *ReferringDecl;
242 const NamedDecl *OffendingDecl;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DIdentifierResolver.cpp75 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl()
145 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl()
162 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl()
170 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter()
187 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter()
210 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl()
239 return iterator(static_cast<NamedDecl*>(Ptr)); in begin()
263 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations()
303 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl()
317 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl()
[all …]
H A DSemaLookup.cpp360 NamedDecl *D, NamedDecl *Existing) { in isPreferredLookupResult()
842 for (NamedDecl *D : DR) { in LookupDirect()
1656 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl()
1684 NamedDecl *LookupResult::getAcceptableDeclSlow(NamedDecl *D) const { in getAcceptableDeclSlow()
3267 NamedDecl *&Old = Decls[cast<NamedDecl>(New->getCanonicalDecl())]; in insert()
3414 NamedDecl *checkHidden(NamedDecl *ND);
3440 NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { in checkHidden()
3691 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in LookupVisibleDecls()
3940 void TypoCorrectionConsumer::FoundDecl(NamedDecl *ND, NamedDecl *Hiding, in FoundDecl()
5023 static NamedDecl *getDefinitionToImport(NamedDecl *D) { in getDefinitionToImport()
[all …]
/freebsd-12.1/contrib/llvm/tools/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-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexingContext.h27 class NamedDecl; variable
75 bool handleReference(const NamedDecl *D, SourceLocation Loc,
76 const NamedDecl *Parent,
99 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
104 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
110 const NamedDecl *Parent,
115 void indexBody(const Stmt *S, const NamedDecl *Parent,
H A DIndexDecl.cpp56 const NamedDecl *Parent, in handleTemplateArgumentLoc()
73 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in handleTemplateArgumentLoc()
83 const NamedDecl *Parent = nullptr, in handleDeclarator()
192 gatherTemplatePseudoOverrides(const NamedDecl *D, in gatherTemplatePseudoOverrides()
585 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDecl()
597 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUsingDirectiveDecl()
614 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingValueDecl()
623 const NamedDecl *Parent = dyn_cast<NamedDecl>(DC); in VisitUnresolvedUsingTypenameDecl()
667 const NamedDecl *Parent = D->getTemplatedDecl(); in VisitTemplateDecl()
675 for (const NamedDecl *TP : *Params) { in VisitTemplateDecl()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/Rename/
H A DUSRFindingAction.h28 class NamedDecl; variable
39 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl);
42 std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
H A DUSRFinder.h29 class NamedDecl; variable
35 const NamedDecl *getNamedDeclAt(const ASTContext &Context,
41 const NamedDecl *getNamedDeclFor(const ASTContext &Context,
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangPersistentVariables.cpp57 clang::NamedDecl *decl) { in RegisterPersistentDecl()
59 std::pair<const char *, clang::NamedDecl *>(name.GetCString(), decl)); in RegisterPersistentDecl()
63 m_persistent_decls.insert(std::pair<const char *, clang::NamedDecl *>( in RegisterPersistentDecl()
70 clang::NamedDecl *
H A DClangASTSource.h485 llvm::SmallVectorImpl<clang::NamedDecl *>
526 llvm::SmallVectorImpl<clang::NamedDecl *> &decls, in NameSearchContext()
540 clang::NamedDecl *AddVarDecl(const CompilerType &type);
552 clang::NamedDecl *AddFunDecl(const CompilerType &type, bool extern_c = false);
558 clang::NamedDecl *AddGenericFunDecl();
567 clang::NamedDecl *AddTypeDecl(const CompilerType &compiler_type);
586 void AddNamedDecl(clang::NamedDecl *decl);

12345678910