Home
last modified time | relevance | path

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

1234567

/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDDeclContextInternals.h35 typedef SmallVector<NamedDecl *, 4> DeclsTy;
44 llvm::PointerUnion<NamedDecl*, DeclsAndHasExternalTy> Data;
50 RHS.Data = (NamedDecl *)nullptr; in StoredDeclsList()
63 RHS.Data = (NamedDecl *)nullptr;
69 NamedDecl *getAsDecl() const { in getAsDecl()
70 return Data.dyn_cast<NamedDecl *>(); in getAsDecl()
90 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls()
96 void setOnlyValue(NamedDecl *ND) { in setOnlyValue()
101 assert(*(NamedDecl **)&Data == ND && in setOnlyValue()
105 void remove(NamedDecl *D) { in remove()
[all …]
HDUnresolvedSet.h30 std::random_access_iterator_tag, NamedDecl *,
31 std::ptrdiff_t, NamedDecl *, NamedDecl *> {
44 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl()
45 void setDecl(NamedDecl *ND) const { return I->setDecl(ND); } in setDecl()
50 NamedDecl *operator*() const { return getDecl(); }
51 NamedDecl *operator->() const { return **this; }
77 void addDecl(NamedDecl *D) { in addDecl()
81 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
88 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace()
97 void replace(iterator I, NamedDecl *New) { I.I->setDecl(New); } in replace()
[all …]
HDDeclAccessPair.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(); }
HDMangle.h32 class NamedDecl; variable
92 bool shouldMangleDeclName(const NamedDecl *D);
93 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
97 void mangleName(const NamedDecl *D, raw_ostream &);
98 virtual void mangleCXXName(const NamedDecl *D, raw_ostream &) = 0;
117 const NamedDecl *ID,
135 virtual void mangleSEHFilterExpression(const NamedDecl *EnclosingDecl,
138 virtual void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl,
HDDependentDiagnostic.h31 class NamedDecl; variable
44 NamedDecl *TargetDecl, in Create()
77 NamedDecl *getAccessTarget() const { in getAccessTarget()
82 NamedDecl *getAccessNamingClass() const { in getAccessNamingClass()
115 NamedDecl *TargetDecl;
HDDeclTemplate.h63 NamedDecl **Params, unsigned NumParams,
70 NamedDecl **Params,
75 typedef NamedDecl** iterator;
78 typedef NamedDecl* const* const_iterator;
80 iterator begin() { return reinterpret_cast<NamedDecl **>(this + 1); } in begin()
82 return reinterpret_cast<NamedDecl * const *>(this + 1); in begin()
89 ArrayRef<NamedDecl*> asArray() { in asArray()
92 ArrayRef<const NamedDecl*> asArray() const { in asArray()
96 NamedDecl* getParam(unsigned Idx) { in getParam()
101 const NamedDecl* getParam(unsigned Idx) const { in getParam()
[all …]
HDASTUnresolvedSet.h50 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
57 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { in replace()
104 Impl.addDecl(C, reinterpret_cast<NamedDecl*>(ID << 2), AS); in addLazyDecl()
HDDeclCXX.h49 NamedDecl *Function;
51 AnyFunctionDecl(NamedDecl *ND) : Function(ND) { } in AnyFunctionDecl()
59 operator NamedDecl *() const { return Function; }
62 NamedDecl *get() const { return Function; } in get()
64 static AnyFunctionDecl getFromNamedDecl(NamedDecl *ND) { in getFromNamedDecl()
81 static_cast< ::clang::NamedDecl*>(P)); in getFromVoidPointer()
1092 void removeConversion(const NamedDecl *Old);
2559 class UsingDirectiveDecl : public NamedDecl {
2571 NamedDecl *NominatedNamespace;
2589 NamedDecl *Nominated, in UsingDirectiveDecl()
[all …]
HDTemplateName.h27 class NamedDecl; variable
98 NamedDecl **getStorage() { in getStorage()
99 return reinterpret_cast<NamedDecl **>(this + 1); in getStorage()
101 NamedDecl * const *getStorage() const { in getStorage()
102 return reinterpret_cast<NamedDecl *const *>(this + 1); in getStorage()
106 typedef NamedDecl *const *iterator;
/NextBSD/contrib/llvm/tools/clang/include/clang/Sema/
HDIdentifierResolver.h28 class NamedDecl; variable
43 typedef SmallVector<NamedDecl*, 2> DeclsTy;
48 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl()
52 void RemoveDecl(NamedDecl *D);
55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl()
70 typedef NamedDecl * value_type;
71 typedef NamedDecl * reference;
72 typedef NamedDecl * pointer;
86 iterator(NamedDecl *D) { in iterator()
109 NamedDecl *operator*() const {
[all …]
HDLookup.h289 static bool isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible()
301 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
312 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
313 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
366 void addDecl(NamedDecl *D) { in addDecl()
372 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
457 NamedDecl *getFoundDecl() const { in getFoundDecl()
464 NamedDecl *getRepresentativeDecl() const { in getRepresentativeDecl()
577 NamedDecl *next() { in next()
595 void replace(NamedDecl *D) { in replace()
[all …]
HDTypoCorrection.h42 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
53 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = nullptr,
133 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl()
147 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl()
153 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls()
160 void addCorrectionDecl(NamedDecl *CDecl);
211 typedef SmallVectorImpl<NamedDecl *>::iterator decl_iterator;
216 typedef SmallVectorImpl<NamedDecl *>::const_iterator const_decl_iterator;
235 SmallVector<NamedDecl *, 1> CorrectionDecls;
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDIdentifierResolver.cpp70 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl()
142 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl()
159 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl()
167 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter()
184 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter()
207 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl()
236 return iterator(static_cast<NamedDecl*>(Ptr)); in begin()
258 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations()
298 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl()
312 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl()
[all …]
HDSemaCXXScopeSpec.cpp289 bool Sema::isAcceptableNestedNameSpecifier(const NamedDecl *SD, in isAcceptableNestedNameSpecifier()
331 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope()
349 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
399 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>()) in isNonTypeNestedNameSpecifier()
464 NamedDecl *ScopeLookupResult, in BuildCXXNestedNameSpecifier()
572 if (NamedDecl *ND = R.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier()
579 if (NamedDecl *ND = R.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier()
607 if (NamedDecl *ND = Corrected.getCorrectionDecl()) in BuildCXXNestedNameSpecifier()
615 NamedDecl *SD = Found.getAsSingle<NamedDecl>(); in BuildCXXNestedNameSpecifier()
635 NamedDecl *OuterDecl; in BuildCXXNestedNameSpecifier()
[all …]
HDSemaLookup.cpp370 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
381 llvm::SmallPtrSet<NamedDecl*, 16> Unique; in resolveKind()
392 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
393 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
546 if (NamedDecl *D = S.LazilyCreateBuiltin((IdentifierInfo *)II, in LookupBuiltin()
684 NamedDecl *D = *I; in LookupDirect()
934 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1010 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
1099 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1178 if (M || !isa<NamedDecl>(Entity) || !cast<NamedDecl>(Entity)->isHidden()) in getOwningModule()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDMangle.cpp59 static bool isExternC(const NamedDecl *ND) { in isExternC()
66 const NamedDecl *ND) { in getCallingConvMangling()
98 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName()
117 void MangleContext::mangleName(const NamedDecl *D, raw_ostream &Out) { in mangleName()
187 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()
HDDecl.cpp113 LVForType = NamedDecl::VisibilityForType,
118 LVForValue = NamedDecl::VisibilityForValue,
155 static Optional<Visibility> getExplicitVisibility(const NamedDecl *D, in getExplicitVisibility()
159 return D->getExplicitVisibility((NamedDecl::ExplicitVisibilityKind) kind); in getExplicitVisibility()
164 static bool usesTypeVisibility(const NamedDecl *D) { in usesTypeVisibility()
205 static Optional<Visibility> getVisibilityOf(const NamedDecl *D, in getVisibilityOf()
206 NamedDecl::ExplicitVisibilityKind kind) { in getVisibilityOf()
209 if (kind == NamedDecl::VisibilityForType) { in getVisibilityOf()
245 for (const NamedDecl *P : *Params) { in getLVForTemplateParameterList()
297 static LinkageInfo getLVForDecl(const NamedDecl *D,
[all …]
HDItaniumMangle.cpp109 static const NamedDecl *getStructor(const NamedDecl *decl) { in getStructor()
114 static bool isLambda(const NamedDecl *ND) { in isLambda()
127 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier;
137 bool shouldMangleCXXName(const NamedDecl *D) override;
141 void mangleCXXName(const NamedDecl *D, raw_ostream &) override;
167 void mangleSEHFilterExpression(const NamedDecl *EnclosingDecl,
169 void mangleSEHFinallyBlock(const NamedDecl *EnclosingDecl,
179 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator()
221 const NamedDecl *Structor;
272 const NamedDecl *D = nullptr) in CXXNameMangler()
[all …]
HDDeclBase.cpp211 if (const NamedDecl *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) { in print()
1095 ArrayRef<NamedDecl*> Decls) { in SetExternalVisibleDeclsForName()
1129 for (ArrayRef<NamedDecl*>::iterator in SetExternalVisibleDeclsForName()
1186 if (isa<NamedDecl>(D)) { in removeDecl()
1187 NamedDecl *ND = cast<NamedDecl>(D); in removeDecl()
1231 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in addDecl()
1239 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in addDeclInternal()
1246 static bool shouldBeHidden(NamedDecl *D) { in shouldBeHidden()
1320 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in buildLookupImpl()
1336 NamedDecl *const DeclContextLookupResult::SingleElementDummyList = nullptr;
[all …]
HDDeclFriend.cpp33 if (Friend.is<NamedDecl*>()) { in Create()
34 NamedDecl *D = Friend.get<NamedDecl*>(); in Create()
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Expression/
HDClangASTSource.h422 …llvm::SmallVectorImpl<clang::NamedDecl*> &m_decls; ///< The list of declarations already …
453 llvm::SmallVectorImpl<clang::NamedDecl*> &decls, in NameSearchContext()
471 clang::NamedDecl *AddVarDecl(const ClangASTType &type);
483 clang::NamedDecl *AddFunDecl(const ClangASTType &type,
491 clang::NamedDecl *AddGenericFunDecl();
500 clang::NamedDecl *AddTypeDecl(const ClangASTType &clang_type);
520 void AddNamedDecl (clang::NamedDecl *decl);
/NextBSD/contrib/llvm/tools/lldb/source/Expression/
HDClangASTSource.cpp144 llvm::SmallVector<NamedDecl*, 1> method_decls; in FindExternalVisibleDeclsByName()
190 llvm::SmallVector<NamedDecl*, 4> name_decls; in FindExternalVisibleDeclsByName()
447 if (const NamedDecl *context_named_decl = dyn_cast<NamedDecl>(context_decl)) in FindExternalLexicalDecls()
517 if (const NamedDecl *context_named_decl = dyn_cast<NamedDecl>(context_decl)) in FindExternalLexicalDecls()
574 else if (const NamedDecl *context_named_decl = dyn_cast<NamedDecl>(context.m_decl_context)) in FindExternalVisibleDecls()
797 std::vector <clang::NamedDecl *> decls; in FindExternalVisibleDecls()
812 clang::NamedDecl *const decl_from_modules = decls[0]; in FindExternalVisibleDecls()
819 …clang::NamedDecl *copied_named_decl = copied_decl ? dyn_cast<clang::NamedDecl>(copied_decl) : null… in FindExternalVisibleDecls()
861 std::vector <clang::NamedDecl *> decls; in FindExternalVisibleDecls()
877 …clang::NamedDecl *copied_named_decl = copied_decl ? dyn_cast<clang::NamedDecl>(copied_decl) : null… in FindExternalVisibleDecls()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDObjCSelfInitChecker.cpp52 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND);
173 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostObjCMessage()
200 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostStmt()
213 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreStmt()
241 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreCall()
269 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostCall()
304 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkLocation()
386 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) { in shouldRunOnFunctionOrMethod()
/NextBSD/contrib/llvm/tools/lldb/source/Symbol/
HDClangASTImporter.cpp95 if (NamedDecl *named_decl = dyn_cast<NamedDecl>(decl)) in CopyDecl()
251 std::set<NamedDecl *> decls_to_deport; in DeportType()
252 std::set<NamedDecl *> decls_already_deported; in DeportType()
293 std::set<NamedDecl *> decls_to_deport; in DeportDecl()
294 std::set<NamedDecl *> decls_already_deported; in DeportDecl()
600 ClangASTImporter::Minion::InitDeportWorkQueues (std::set<clang::NamedDecl *> *decls_to_deport, in InitDeportWorkQueues()
601 … std::set<clang::NamedDecl *> *decls_already_deported) in InitDeportWorkQueues()
620 NamedDecl *decl = *m_decls_to_deport->begin(); in ExecuteDeportWorkQueues()
732 if (NamedDecl *from_named_decl = dyn_cast<clang::NamedDecl>(from)) in Imported()
787 NamedDecl *to_named_decl = dyn_cast<NamedDecl>(to); in Imported()
/NextBSD/contrib/llvm/tools/clang/lib/Index/
HDUSRGeneration.cpp78 void VisitNamedDecl(const NamedDecl *D);
109 bool ShouldGenerateLocation(const NamedDecl *D);
111 bool isLocal(const NamedDecl *D) { in isLocal()
149 bool EmitDeclName(const NamedDecl *D);
158 bool USRGenerator::EmitDeclName(const NamedDecl *D) { in EmitDeclName()
167 bool USRGenerator::ShouldGenerateLocation(const NamedDecl *D) { in ShouldGenerateLocation()
177 if (const NamedDecl *D = dyn_cast<NamedDecl>(DC)) in VisitDeclContext()
254 void USRGenerator::VisitNamedDecl(const NamedDecl *D) { in VisitNamedDecl()
498 if (const NamedDecl *DCN = dyn_cast<NamedDecl>(DC)) in VisitTypedefDecl()

1234567