Home
last modified time | relevance | path

Searched refs:Decls (Results 1 – 25 of 65) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTUnresolvedSet.h40 DeclsTy Decls; variable
63 for (DeclsTy::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in replace()
72 void erase(unsigned I) { Decls[I] = Decls.pop_back_val(); } in erase()
74 void clear() { Decls.clear(); } in clear()
76 bool empty() const { return Decls.empty(); } in empty()
77 unsigned size() const { return Decls.size(); } in size()
80 Decls.reserve(C, N); in reserve()
84 Decls.append(C, I.I, E.I); in append()
100 if (Impl.Decls.isLazy()) in get()
108 assert(Impl.empty() || Impl.Decls.isLazy()); in addLazyDecl()
[all …]
H A DDeclContextInternals.h34 using Decls = DeclListNode::Decls; variable
47 Decls List = Data.getPointer(); in erase_if()
51 DeclListNode::Decls NewHead = nullptr; in erase_if()
52 DeclListNode::Decls *NewLast = nullptr; in erase_if()
102 Decls List = Data.getPointer(); in MaybeDeallocList()
165 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
168 for (NamedDecl *D : Decls) in replaceExternalDecls()
177 if (Decls.empty()) in replaceExternalDecls()
182 DeclListNode::Decls DeclsAsList = Decls.back(); in replaceExternalDecls()
198 DeclListNode::Decls *Tail = &Head; in replaceExternalDecls()
[all …]
H A DDeclGroup.h36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
68 static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument
72 return DeclGroupRef(Decls[0]); in Create()
73 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls)); in Create()
H A DDeclBase.h1243 using Decls = llvm::PointerUnion<NamedDecl*, DeclListNode*>;
1248 Decls Ptr;
1249 iterator(Decls Node) : Ptr(Node) { }
1287 Decls Rest = nullptr;
1293 using Decls = DeclListNode::Decls;
1296 Decls Result;
1300 DeclContextLookupResult(Decls Result) : Result(Result) {}
1846 BuildDeclChain(ArrayRef<Decl*> Decls, bool FieldsAlreadyLoaded);
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp23 llvm::stable_sort(Decls, in getDeclOccurrencesSortedByOffset()
29 return Decls; in getDeclOccurrencesSortedByOffset()
38 Decls.emplace_back(Roles, Offset, D, Relations); in addDeclOccurence()
45 Decls.emplace_back(Roles, Offset, Name, MI); in addMacroOccurence()
50 std::remove_if(Decls.begin(), Decls.end(), [](const DeclOccurrence &D) { in removeHeaderGuardMacros()
55 Decls.erase(It, Decls.end()); in removeHeaderGuardMacros()
60 for (auto &DclInfo : Decls) { in print()
H A DFileIndexRecord.h31 mutable std::vector<DeclOccurrence> Decls; variable
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DLookup.h185 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult()
206 Decls = std::move(Other.Decls);
332 return Decls; in asUnresolvedSet()
433 Decls.addDecl(D, AS); in addDecl()
440 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls()
475 if (Decls.empty()) { in resolveKindAfterFilter()
556 Decls.clear(); in clear()
655 Results.Decls.erase(--I); in erase()
662 Results.Decls.replace(I-1, D); in replace()
668 Results.Decls.replace(I-1, D, AS); in replace()
[all …]
H A DExternalSemaSource.h118 SmallVectorImpl<const DeclaratorDecl *> &Decls) {} in ReadUnusedFileScopedDecls() argument
128 SmallVectorImpl<CXXConstructorDecl *> &Decls) {} in ReadDelegatingConstructors() argument
137 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {} in ReadExtVectorDecls() argument
146 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) {} in ReadUnusedLocalTypedefNameCandidates() argument
203 ReadDeclsToCheckForDeferredDiags(llvm::SmallSetVector<Decl *, 4> &Decls) {} in ReadDeclsToCheckForDeferredDiags() argument
H A DIdentifierResolver.h47 DeclsTy::iterator decls_begin() { return Decls.begin(); } in decls_begin()
48 DeclsTy::iterator decls_end() { return Decls.end(); } in decls_end()
50 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl()
58 Decls.insert(Pos, D); in InsertDecl()
62 DeclsTy Decls;
H A DMultiplexExternalSemaSource.h119 SmallVectorImpl<Decl *> &Decls) override;
256 SmallVectorImpl<const DeclaratorDecl*> &Decls) override;
266 SmallVectorImpl<CXXConstructorDecl*> &Decls) override;
275 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls) override;
284 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
340 llvm::SmallSetVector<Decl *, 4> &Decls) override;
H A DTypoCorrection.h172 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls() argument
174 CorrectionDecls.insert(CorrectionDecls.begin(), Decls.begin(), Decls.end()); in setCorrectionDecls()
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugAbbrev.cpp25 Decls.clear(); in clear()
45 Decls.push_back(std::move(AbbrDecl)); in extract()
51 for (const auto &Decl : Decls) in dump()
59 for (const auto &Decl : Decls) { in getAbbreviationDeclaration()
65 if (AbbrCode < FirstAbbrCode || AbbrCode >= FirstAbbrCode + Decls.size()) in getAbbreviationDeclaration()
67 return &Decls[AbbrCode - FirstAbbrCode]; in getAbbreviationDeclaration()
73 Codes.reserve(Decls.size()); in getCodeRange()
74 for (const auto &Decl : Decls) in getCodeRange()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DMultiplexExternalSemaSource.cpp127 SmallVectorImpl<Decl *> &Decls){ in FindFileRegionDecls() argument
129 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
253 SmallVectorImpl<const DeclaratorDecl*> &Decls) { in ReadUnusedFileScopedDecls() argument
255 Sources[i]->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
259 SmallVectorImpl<CXXConstructorDecl*> &Decls) { in ReadDelegatingConstructors() argument
261 Sources[i]->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
267 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls()
271 llvm::SmallSetVector<Decl *, 4> &Decls) { in ReadDeclsToCheckForDeferredDiags() argument
273 Sources[i]->ReadDeclsToCheckForDeferredDiags(Decls); in ReadDeclsToCheckForDeferredDiags()
277 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) { in ReadUnusedLocalTypedefNameCandidates() argument
[all …]
H A DSemaLookup.cpp332 (Decls.size() == 1 && in sanity()
480 unsigned N = Decls.size(); in resolveKind()
522 Decls[I] = Decls[--N]; in resolveKind()
557 Decls[*ExistingI] = Decls[I]; in resolveKind()
558 Decls[I] = Decls[--N]; in resolveKind()
585 Decls[I] = Decls[--N]; in resolveKind()
612 Decls[UniqueTagIndex] = Decls[--N]; in resolveKind()
623 Decls.set_size(N); in resolveKind()
663 Out << Decls.size() << " result(s)"; in print()
2236 Path.Decls != Path.Decls.end(); ++Path.Decls) { in LookupQualifiedName()
[all …]
H A DIdentifierResolver.cpp75 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) { in RemoveDecl()
77 Decls.erase(I-1); in RemoveDecl()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h93 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument
94 m_Source->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
356 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument
358 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
485 llvm::SmallVectorImpl<const clang::DeclaratorDecl *> &Decls) override { in ReadUnusedFileScopedDecls() argument
487 Source->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
491 llvm::SmallVectorImpl<clang::CXXConstructorDecl *> &Decls) override { in ReadDelegatingConstructors() argument
493 Source->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
497 llvm::SmallVectorImpl<clang::TypedefNameDecl *> &Decls) override { in ReadExtVectorDecls() argument
499 Source->ReadExtVectorDecls(Decls); in ReadExtVectorDecls()
[all …]
H A DClangASTSource.h103 llvm::SmallVectorImpl<clang::Decl *> &Decls) override;
222 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindExternalLexicalDecls() argument
223 return m_original.FindExternalLexicalDecls(DC, IsKindWeWant, Decls); in FindExternalLexicalDecls()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDebugAbbrev.h27 std::vector<DWARFAbbreviationDeclaration> Decls; variable
43 return Decls.begin(); in begin()
47 return Decls.end(); in end()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTImporterLookupTable.cpp90 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() local
92 Decls.insert(ND); in add()
96 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in remove() local
97 bool EraseResult = Decls.remove(ND); in remove()
H A DDeclGroup.cpp20 DeclGroup* DeclGroup::Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument
24 new (Mem) DeclGroup(NumDecls, Decls); in Create()
H A DODRHash.cpp488 llvm::SmallVector<const Decl *, 16> Decls; in AddCXXRecordDecl() local
491 Decls.push_back(SubDecl); in AddCXXRecordDecl()
499 ID.AddInteger(Decls.size()); in AddCXXRecordDecl()
500 for (auto SubDecl : Decls) { in AddCXXRecordDecl()
589 llvm::SmallVector<const Decl *, 16> Decls; in AddFunctionDecl() local
592 Decls.push_back(SubDecl); in AddFunctionDecl()
596 ID.AddInteger(Decls.size()); in AddFunctionDecl()
597 for (auto SubDecl : Decls) { in AddFunctionDecl()
619 Decls.push_back(SubDecl); in AddEnumDecl()
623 ID.AddInteger(Decls.size()); in AddEnumDecl()
[all …]
H A DExternalASTMerger.cpp247 bool HasDeclOfSameType(llvm::ArrayRef<Candidate> Decls, const Candidate &C) { in HasDeclOfSameType() argument
250 return llvm::any_of(Decls, [&](const Candidate &D) { in HasDeclOfSameType()
481 llvm::SmallVector<NamedDecl *, 1> Decls; in FindExternalVisibleDeclsByName() local
508 Decls.reserve(Candidates.size()); in FindExternalVisibleDeclsByName()
522 Decls.push_back(ND); in FindExternalVisibleDeclsByName()
524 SetExternalVisibleDeclsForName(DC, Name, Decls); in FindExternalVisibleDeclsByName()
H A DDeclPrinter.cpp37 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls);
290 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup()
292 Decls.clear(); in ProcessDeclGroup()
381 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local
414 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext()
418 Decls.push_back(*D); in VisitDeclContext()
424 if (!Decls.empty()) in VisitDeclContext()
425 ProcessDeclGroup(Decls); in VisitDeclContext()
430 Decls.push_back(*D); in VisitDeclContext()
496 if (!Decls.empty()) in VisitDeclContext()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/
H A DClangASTNodesEmitter.cpp223 RecordVector Decls = Records.getAllDerivedDefinitions(DeclNodeClassName); in EmitClangDeclContext() local
226 for (RecordVector::iterator i = Decls.begin(), e = Decls.end(); i != e; ++i) { in EmitClangDeclContext()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h554 ArrayRef<serialization::LocalDeclID> Decls; member
557 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo()
558 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
1932 SmallVectorImpl<Decl *> &Decls) override;
1938 SmallVectorImpl<Decl *> &Decls) override;
2010 SmallVectorImpl<const DeclaratorDecl *> &Decls) override;
2013 SmallVectorImpl<CXXConstructorDecl *> &Decls) override;
2015 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override;
2018 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
2021 llvm::SmallSetVector<Decl *, 4> &Decls) override;
[all …]

123