/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTUnresolvedSet.h | 41 DeclsTy Decls; variable 45 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet() 50 iterator begin() { return iterator(Decls.begin()); } in begin() 51 iterator end() { return iterator(Decls.end()); } in end() 53 const_iterator begin() const { return const_iterator(Decls.begin()); } in begin() 54 const_iterator end() const { return const_iterator(Decls.end()); } in end() 57 Decls.push_back(DeclAccessPair::make(D, AS), C); in addDecl() 61 Decls.push_back(DeclAccessPair::makeLazy(ID.getRawValue(), AS), C); in addLazyDecl() 68 for (DeclsTy::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in replace() 78 if (I == Decls.size() - 1) in erase() [all …]
|
H A D | DeclContextInternals.h | 34 using Decls = DeclListNode::Decls; variable 38 using DeclsAndHasExternalTy = llvm::PointerIntPair<Decls, 1, bool>; 45 template <typename Fn> DeclListNode::Decls *erase_if(Fn ShouldErase) { in erase_if() 46 Decls List = Data.getPointer(); in erase_if() 52 DeclListNode::Decls NewHead = nullptr; in erase_if() 53 DeclListNode::Decls *NewLast = nullptr; in erase_if() 54 DeclListNode::Decls *NewTail = &NewHead; in erase_if() 89 return (DeclListNode::Decls *)&Data; in erase_if() 113 Decls List = Data.getPointer(); in MaybeDeallocList() 173 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls() argument [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()
|
H A D | DeclBase.h | 1319 using Decls = llvm::PointerUnion<NamedDecl*, DeclListNode*>; 1324 Decls Ptr; 1325 iterator(Decls Node) : Ptr(Node) { } 1363 Decls Rest = nullptr; 1369 using Decls = DeclListNode::Decls; 1372 Decls Result; 1376 DeclContextLookupResult(Decls Result) : Result(Result) {} 2071 BuildDeclChain(ArrayRef<Decl*> Decls, bool FieldsAlreadyLoaded);
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Lookup.h | 200 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult() 223 Decls = std::move(Other.Decls); 355 return Decls; in asUnresolvedSet() 358 iterator begin() const { return iterator(Decls.begin()); } in begin() 359 iterator end() const { return iterator(Decls.end()); } in end() 362 bool empty() const { return Decls.empty(); } in empty() 482 Decls.addDecl(D, AS); in addDecl() 489 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls() 504 Decls.empty()); in setNotFoundInCurrentInstantiation() 526 if (Decls.empty()) { in resolveKindAfterFilter() [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 | MultiplexExternalSemaSource.h | 118 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;
|
/freebsd/contrib/llvm-project/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() 48 llvm::erase_if(Decls, [](const DeclOccurrence &D) { in removeHeaderGuardMacros() 57 for (auto &DclInfo : Decls) { in print()
|
H A D | FileIndexRecord.h | 31 mutable std::vector<DeclOccurrence> Decls; variable
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFDebugAbbrev.cpp | 25 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/contrib/llvm-project/clang/lib/Sema/ |
H A D | MultiplexExternalSemaSource.cpp | 133 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() 271 SmallVectorImpl<TypedefNameDecl*> &Decls) { in ReadExtVectorDecls() argument 273 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls() 277 llvm::SmallSetVector<Decl *, 4> &Decls) { in ReadDeclsToCheckForDeferredDiags() argument 279 Sources[i]->ReadDeclsToCheckForDeferredDiags(Decls); in ReadDeclsToCheckForDeferredDiags() [all …]
|
H A D | SemaLookup.cpp | 334 assert(ResultKind != NotFound || Decls.size() == 0); in checkDebugAssumptions() 335 assert(ResultKind != Found || Decls.size() == 1); in checkDebugAssumptions() 336 assert(ResultKind != FoundOverloaded || Decls.size() > 1 || in checkDebugAssumptions() 337 (Decls.size() == 1 && in checkDebugAssumptions() 340 assert(ResultKind != Ambiguous || Decls.size() > 1 || in checkDebugAssumptions() 341 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects || in checkDebugAssumptions() 486 unsigned N = Decls.size(); in resolveKind() 498 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind() 522 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind() 542 for (auto *OtherDecl : Decls) { in resolveKind() [all …]
|
H A D | SemaBoundsSafety.cpp | 53 llvm::SmallVectorImpl<TypeCoupledDeclRefInfo> &Decls, bool CountInBytes, in CheckCountedByAttrOnField() argument 189 Decls.push_back(TypeCoupledDeclRefInfo(CountFD, /*IsDref*/ false)); in CheckCountedByAttrOnField()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ODRHash.cpp | 426 llvm::SmallVector<const Decl *, 16> Decls; in VisitObjCMethodDecl() local 429 Decls.push_back(SubDecl); in VisitObjCMethodDecl() 431 ID.AddInteger(Decls.size()); in VisitObjCMethodDecl() 432 for (auto SubDecl : Decls) in VisitObjCMethodDecl() 584 llvm::SmallVector<const Decl *, 16> Decls; in AddCXXRecordDecl() local 587 Decls.push_back(SubDecl); in AddCXXRecordDecl() 595 ID.AddInteger(Decls.size()); in AddCXXRecordDecl() 596 for (auto SubDecl : Decls) { in AddCXXRecordDecl() 622 llvm::SmallVector<const Decl *, 16> Decls; in AddRecordDecl() local 625 Decls.push_back(SubDecl); in AddRecordDecl() [all …]
|
H A D | ASTImporterLookupTable.cpp | 105 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 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 | ExternalASTMerger.cpp | 244 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 D | DeclPrinter.cpp | 38 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls); 324 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument 326 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup() 328 Decls.clear(); in ProcessDeclGroup() 427 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local 460 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext() 463 cast<ElaboratedType>(BaseType)->getOwnedTagDecl() == Decls[0]) { in VisitDeclContext() 464 Decls.push_back(*D); in VisitDeclContext() 470 if (!Decls.empty()) in VisitDeclContext() 471 ProcessDeclGroup(Decls); in VisitDeclContext() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ASTUtils.h | 100 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument 101 m_Source->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls() 363 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument 365 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls() 492 llvm::SmallVectorImpl<const clang::DeclaratorDecl *> &Decls) override { in ReadUnusedFileScopedDecls() argument 494 Source->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls() 498 llvm::SmallVectorImpl<clang::CXXConstructorDecl *> &Decls) override { in ReadDelegatingConstructors() argument 500 Source->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors() 504 llvm::SmallVectorImpl<clang::TypedefNameDecl *> &Decls) override { in ReadExtVectorDecls() argument 506 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()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | RefCntblBaseVirtualDtorChecker.cpp | 157 Decls.insert(RD); in checkASTDecl() 192 llvm::SetVector<const CXXRecordDecl *> Decls; in checkASTDecl() member 198 for (auto *RD : visitor.Decls) { in checkASTDecl()
|
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
H A D | ASTReader.h | 582 ArrayRef<serialization::unaligned_decl_id_t> Decls; member 586 ArrayRef<serialization::unaligned_decl_id_t> Decls) in FileDeclsInfo() 587 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo() 2017 SmallVectorImpl<Decl *> &Decls) override; 2023 SmallVectorImpl<Decl *> &Decls) override; 2095 SmallVectorImpl<const DeclaratorDecl *> &Decls) override; 2098 SmallVectorImpl<CXXConstructorDecl *> &Decls) override; 2100 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override; 2103 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override; 2106 llvm::SmallSetVector<Decl *, 4> &Decls) override; [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseHLSL.cpp | 28 DeclGroupRef Decls = DG.get(); in validateDeclsInsideHLSLBuffer() local 31 for (DeclGroupRef::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in validateDeclsInsideHLSLBuffer()
|
/freebsd/contrib/llvm-project/clang/include/clang/Index/ |
H A D | IndexingAction.h | 59 ArrayRef<const Decl *> Decls,
|