| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTUnresolvedSet.h | 40 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 D | DeclContextInternals.h | 34 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 D | DeclGroup.h | 36 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()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | FileIndexRecord.cpp | 22 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() 49 std::remove_if(Decls.begin(), Decls.end(), [](const DeclOccurrence &D) { in removeHeaderGuardMacros() 54 Decls.erase(It, Decls.end()); in removeHeaderGuardMacros() 59 for (auto &DclInfo : Decls) { in print()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | StructuralEquivalenceTest.cpp | 217 auto Spec0 = get<0>(Decls); in TEST_F() 218 auto Spec1 = get<1>(Decls); in TEST_F() 227 auto Spec0 = get<0>(Decls); in TEST_F() 228 auto Spec1 = get<1>(Decls); in TEST_F() 935 auto Decls = in TEST_F() local 953 auto Decls = in TEST_F() local 965 auto Decls = in TEST_F() local 994 auto Decls = in TEST_F() local 1001 auto Decls = in TEST_F() local 1034 auto Decls = in TEST_F() local [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Lookup.h | 185 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult() 206 Decls = std::move(Other.Decls); 332 return Decls; in asUnresolvedSet() 459 Decls.addDecl(D, AS); in addDecl() 466 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls() 501 if (Decls.empty()) { in resolveKindAfterFilter() 582 Decls.clear(); in clear() 681 Results.Decls.erase(--I); in erase() 688 Results.Decls.replace(I-1, D); in replace() 694 Results.Decls.replace(I-1, D, AS); in replace() [all …]
|
| H A D | ExternalSemaSource.h | 116 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 D | IdentifierResolver.h | 47 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 D | MultiplexExternalSemaSource.h | 119 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;
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFDebugAbbrev.cpp | 25 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | HeuristicResolver.cpp | 106 auto Decls = in resolveMemberExpr() local 108 if (!Decls.empty()) in resolveMemberExpr() 109 return Decls; in resolveMemberExpr() 185 const Type *resolveDeclsToType(const std::vector<const NamedDecl *> &Decls) { in resolveDeclsToType() argument 186 if (Decls.size() != 1) // Names an overload set -- just bail. in resolveDeclsToType() 188 if (const auto *TD = dyn_cast<TypeDecl>(Decls[0])) { in resolveDeclsToType() 191 if (const auto *VD = dyn_cast<ValueDecl>(Decls[0])) { in resolveDeclsToType() 218 std::vector<const NamedDecl *> Decls = resolveExprToDecls(E); in resolveExprToType() local 219 if (!Decls.empty()) in resolveExprToType() 220 return resolveDeclsToType(Decls); in resolveExprToType()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | MultiplexExternalSemaSource.cpp | 127 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 D | SemaLookup.cpp | 333 (Decls.size() == 1 && in checkDebugAssumptions() 481 unsigned N = Decls.size(); in resolveKind() 523 Decls[I] = Decls[--N]; in resolveKind() 558 Decls[*ExistingI] = Decls[I]; in resolveKind() 559 Decls[I] = Decls[--N]; in resolveKind() 586 Decls[I] = Decls[--N]; in resolveKind() 613 Decls[UniqueTagIndex] = Decls[--N]; in resolveKind() 624 Decls.truncate(N); in resolveKind() 664 Out << Decls.size() << " result(s)"; in print() 2492 Path.Decls != Path.Decls.end(); ++Path.Decls) { in LookupQualifiedName() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | ConcatNestedNamespacesCheck.cpp | 30 NamespaceDecl::decl_range Decls = ND.decls(); in singleNamedNamespaceChild() local 31 if (std::distance(Decls.begin(), Decls.end()) != 1) in singleNamedNamespaceChild() 34 const auto *ChildNamespace = dyn_cast<const NamespaceDecl>(*Decls.begin()); in singleNamedNamespaceChild()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTUtils.h | 93 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 D | ClangASTSource.h | 103 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()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFDebugAbbrev.h | 27 std::vector<DWARFAbbreviationDeclaration> Decls; variable 43 return Decls.begin(); in begin() 47 return Decls.end(); in end()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | TestTU.cpp | 241 llvm::SmallVector<const NamedDecl *, 1> Decls; in findDecl() member 244 Decls.push_back(ND); in findDecl() 250 if (Visitor.Decls.size() != 1) { in findDecl() 251 llvm::errs() << Visitor.Decls.size() << " symbols matched.\n"; in findDecl() 252 assert(Visitor.Decls.size() == 1); in findDecl() 254 return *Visitor.Decls.front(); in findDecl()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 91 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() local 93 Decls.insert(ND); in add() 98 DeclList &Decls = LookupTable[DC][Name]; in remove() local 99 bool EraseResult = Decls.remove(ND); in remove()
|
| H A D | DeclGroup.cpp | 20 DeclGroup* DeclGroup::Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument 24 new (Mem) DeclGroup(NumDecls, Decls); in Create()
|
| H A D | ODRHash.cpp | 489 llvm::SmallVector<const Decl *, 16> Decls; in AddCXXRecordDecl() local 492 Decls.push_back(SubDecl); in AddCXXRecordDecl() 500 ID.AddInteger(Decls.size()); in AddCXXRecordDecl() 501 for (auto SubDecl : Decls) { in AddCXXRecordDecl() 590 llvm::SmallVector<const Decl *, 16> Decls; in AddFunctionDecl() local 593 Decls.push_back(SubDecl); in AddFunctionDecl() 597 ID.AddInteger(Decls.size()); in AddFunctionDecl() 598 for (auto SubDecl : Decls) { in AddFunctionDecl() 620 Decls.push_back(SubDecl); in AddEnumDecl() 624 ID.AddInteger(Decls.size()); in AddEnumDecl() [all …]
|
| H A D | ExternalASTMerger.cpp | 247 bool HasDeclOfSameType(llvm::ArrayRef<Candidate> Decls, const Candidate &C) { in HasDeclOfSameType() argument 250 return llvm::any_of(Decls, [&](const Candidate &D) { in HasDeclOfSameType() 479 llvm::SmallVector<NamedDecl *, 1> Decls; in FindExternalVisibleDeclsByName() local 506 Decls.reserve(Candidates.size()); in FindExternalVisibleDeclsByName() 520 Decls.push_back(ND); in FindExternalVisibleDeclsByName() 522 SetExternalVisibleDeclsForName(DC, Name, Decls); in FindExternalVisibleDeclsByName()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | pass-object-size.cpp | 22 void Decls() { in Decls() function 67 void Decls() { in Decls() function
|
| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | ClangASTNodesEmitter.cpp | 223 RecordVector Decls = Records.getAllDerivedDefinitions(DeclNodeClassName); in EmitClangDeclContext() local 226 for (RecordVector::iterator i = Decls.begin(), e = Decls.end(); i != e; ++i) { in EmitClangDeclContext()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllSymbols.cpp | 198 auto Decls = namedDecl(anyOf(CRecords, CXXRecords, Enums, Typedefs, Vars, in registerMatchers() local 202 MatchFinder->addMatcher(Decls.bind("decl"), this); in registerMatchers() 207 declRefExpr(isExpansionInMainFile(), to(Decls.bind("use"))), this); in registerMatchers()
|