Home
last modified time | relevance | path

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

123

/freebsd-14.2/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()
73 if (I == Decls.size() - 1) in erase()
74 Decls.pop_back(); in erase()
76 Decls[I] = Decls.pop_back_val(); in erase()
79 void clear() { Decls.clear(); } in clear()
81 bool empty() const { return Decls.empty(); } in empty()
85 Decls.reserve(C, N); in reserve()
89 Decls.append(C, I.I, E.I); in append()
105 if (Impl.Decls.isLazy()) in get()
[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()
101 Decls List = Data.getPointer(); in MaybeDeallocList()
164 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
167 for (NamedDecl *D : Decls) in replaceExternalDecls()
176 if (Decls.empty()) in replaceExternalDecls()
181 DeclListNode::Decls DeclsAsList = Decls.back(); in replaceExternalDecls()
197 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.h1330 using Decls = llvm::PointerUnion<NamedDecl*, DeclListNode*>;
1335 Decls Ptr;
1336 iterator(Decls Node) : Ptr(Node) { }
1374 Decls Rest = nullptr;
1380 using Decls = DeclListNode::Decls;
1383 Decls Result;
1387 DeclContextLookupResult(Decls Result) : Result(Result) {}
2058 BuildDeclChain(ArrayRef<Decl*> Decls, bool FieldsAlreadyLoaded);
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DLookup.h198 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult()
221 Decls = std::move(Other.Decls);
352 return Decls; in asUnresolvedSet()
479 Decls.addDecl(D, AS); in addDecl()
486 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls()
521 if (Decls.empty()) { in resolveKindAfterFilter()
602 Decls.clear(); in clear()
717 Results.Decls.erase(--I); in erase()
724 Results.Decls.replace(I-1, D); in replace()
730 Results.Decls.replace(I-1, D, AS); in replace()
[all …]
H A DExternalSemaSource.h116 SmallVectorImpl<const DeclaratorDecl *> &Decls) {} in ReadUnusedFileScopedDecls() argument
126 SmallVectorImpl<CXXConstructorDecl *> &Decls) {} in ReadDelegatingConstructors() argument
135 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {} in ReadExtVectorDecls() argument
144 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) {} in ReadUnusedLocalTypedefNameCandidates() argument
201 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.h118 SmallVectorImpl<Decl *> &Decls) override;
255 SmallVectorImpl<const DeclaratorDecl*> &Decls) override;
265 SmallVectorImpl<CXXConstructorDecl*> &Decls) override;
274 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls) override;
283 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
339 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-14.2/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp22 llvm::stable_sort(Decls, in getDeclOccurrencesSortedByOffset()
28 return Decls; in getDeclOccurrencesSortedByOffset()
37 Decls.emplace_back(Roles, Offset, D, Relations); in addDeclOccurence()
44 Decls.emplace_back(Roles, Offset, Name, MI); in addMacroOccurence()
48 llvm::erase_if(Decls, [](const DeclOccurrence &D) { in removeHeaderGuardMacros()
57 for (auto &DclInfo : Decls) { in print()
H A DFileIndexRecord.h31 mutable std::vector<DeclOccurrence> Decls; variable
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugAbbrev.cpp25 Decls.clear(); in clear()
51 Decls.push_back(std::move(AbbrDecl)); in extract()
57 for (const auto &Decl : Decls) in dump()
65 for (const auto &Decl : Decls) { in getAbbreviationDeclaration()
71 if (AbbrCode < FirstAbbrCode || AbbrCode >= FirstAbbrCode + Decls.size()) in getAbbreviationDeclaration()
73 return &Decls[AbbrCode - FirstAbbrCode]; in getAbbreviationDeclaration()
79 Codes.reserve(Decls.size()); in getCodeRange()
80 for (const auto &Decl : Decls) in getCodeRange()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DMultiplexExternalSemaSource.cpp133 SmallVectorImpl<Decl *> &Decls){ in FindFileRegionDecls() argument
135 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
259 SmallVectorImpl<const DeclaratorDecl*> &Decls) { in ReadUnusedFileScopedDecls() argument
261 Sources[i]->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
265 SmallVectorImpl<CXXConstructorDecl*> &Decls) { in ReadDelegatingConstructors() argument
267 Sources[i]->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
273 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls()
277 llvm::SmallSetVector<Decl *, 4> &Decls) { in ReadDeclsToCheckForDeferredDiags() argument
279 Sources[i]->ReadDeclsToCheckForDeferredDiags(Decls); in ReadDeclsToCheckForDeferredDiags()
283 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) { in ReadUnusedLocalTypedefNameCandidates() argument
[all …]
H A DSemaLookup.cpp335 (Decls.size() == 1 && in checkDebugAssumptions()
484 unsigned N = Decls.size(); in resolveKind()
540 for (auto *OtherDecl : Decls) { in resolveKind()
584 Decls[*ExistingI] = Decls[I]; in resolveKind()
635 Decls[I] = Decls[--N]; in resolveKind()
636 Decls.truncate(N); in resolveKind()
679 Out << Decls.size() << " result(s)"; in print()
2507 Path.Decls != Path.Decls.end(); ++Path.Decls) { in LookupQualifiedName()
2635 HasSameDeclarations(Paths.begin()->Decls, Path->Decls)) in LookupQualifiedName()
2652 if (HasOnlyStaticMembers(Path->Decls)) in LookupQualifiedName()
[all …]
H A DIdentifierResolver.cpp78 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) { in RemoveDecl()
80 Decls.erase(I-1); in RemoveDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DODRHash.cpp580 Decls.push_back(SubDecl); in AddCXXRecordDecl()
588 ID.AddInteger(Decls.size()); in AddCXXRecordDecl()
589 for (auto SubDecl : Decls) { in AddCXXRecordDecl()
621 ID.AddInteger(Decls.size()); in AddRecordDecl()
648 ID.AddInteger(Decls.size()); in AddObjCInterfaceDecl()
649 for (auto *SubDecl : Decls) in AddObjCInterfaceDecl()
734 ID.AddInteger(Decls.size()); in AddFunctionDecl()
735 for (auto SubDecl : Decls) { in AddFunctionDecl()
761 ID.AddInteger(Decls.size()); in AddEnumDecl()
762 for (auto SubDecl : Decls) { in AddEnumDecl()
[all …]
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 DASTImporterLookupTable.cpp105 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() local
107 Decls.insert(ND); in add()
112 DeclList &Decls = LookupTable[DC][Name]; in remove() local
113 bool EraseResult = Decls.remove(ND); in remove()
H A DExternalASTMerger.cpp244 bool HasDeclOfSameType(llvm::ArrayRef<Candidate> Decls, const Candidate &C) { in HasDeclOfSameType() argument
247 return llvm::any_of(Decls, [&](const Candidate &D) { in HasDeclOfSameType()
476 llvm::SmallVector<NamedDecl *, 1> Decls; in FindExternalVisibleDeclsByName() local
503 Decls.reserve(Candidates.size()); in FindExternalVisibleDeclsByName()
517 Decls.push_back(ND); in FindExternalVisibleDeclsByName()
519 SetExternalVisibleDeclsForName(DC, Name, Decls); in FindExternalVisibleDeclsByName()
H A DDeclPrinter.cpp37 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls);
372 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup()
374 Decls.clear(); in ProcessDeclGroup()
473 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local
506 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext()
510 Decls.push_back(*D); in VisitDeclContext()
516 if (!Decls.empty()) in VisitDeclContext()
517 ProcessDeclGroup(Decls); in VisitDeclContext()
522 Decls.push_back(*D); in VisitDeclContext()
585 if (!Decls.empty()) in VisitDeclContext()
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h94 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument
95 m_Source->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
357 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument
359 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
486 llvm::SmallVectorImpl<const clang::DeclaratorDecl *> &Decls) override { in ReadUnusedFileScopedDecls() argument
488 Source->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
492 llvm::SmallVectorImpl<clang::CXXConstructorDecl *> &Decls) override { in ReadDelegatingConstructors() argument
494 Source->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
498 llvm::SmallVectorImpl<clang::TypedefNameDecl *> &Decls) override { in ReadExtVectorDecls() argument
500 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-14.2/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-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseHLSL.cpp27 DeclGroupRef Decls = DG.get(); in validateDeclsInsideHLSLBuffer() local
30 for (DeclGroupRef::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in validateDeclsInsideHLSLBuffer()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h581 ArrayRef<serialization::LocalDeclID> Decls; member
584 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo()
585 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
2005 SmallVectorImpl<Decl *> &Decls) override;
2011 SmallVectorImpl<Decl *> &Decls) override;
2083 SmallVectorImpl<const DeclaratorDecl *> &Decls) override;
2086 SmallVectorImpl<CXXConstructorDecl *> &Decls) override;
2088 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override;
2091 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
2094 llvm::SmallSetVector<Decl *, 4> &Decls) override;
[all …]

123