| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | ASTUnresolvedSet.h | 40 DeclsTy Decls; variable 44 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet() 49 iterator begin() { return iterator(Decls.begin()); } in begin() 50 iterator end() { return iterator(Decls.end()); } in end() 52 const_iterator begin() const { return const_iterator(Decls.begin()); } in begin() 53 const_iterator end() const { return const_iterator(Decls.end()); } in end() 56 Decls.push_back(DeclAccessPair::make(D, AS), C); in addDecl() 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() [all …]
|
| H A D | DeclContextInternals.h | 34 using Decls = DeclListNode::Decls; variable 38 using DeclsAndHasExternalTy = llvm::PointerIntPair<Decls, 1, bool>; 47 Decls List = Data.getPointer(); in erase_if() 51 DeclListNode::Decls NewHead = nullptr; in erase_if() 52 DeclListNode::Decls *NewLast = nullptr; in erase_if() 53 DeclListNode::Decls *NewTail = &NewHead; in erase_if() 102 Decls List = Data.getPointer(); in MaybeDeallocList() 162 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls() argument 165 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls() 168 for (NamedDecl *D : Decls) 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()
|
| H A D | DeclBase.h | 1243 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);
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Index/ |
| H A D | FileIndexRecord.cpp | 20 static void addOccurrence(std::vector<DeclOccurrence> &Decls, in addOccurrence() argument 23 if (Decls.empty()) in addOccurrence() 25 auto &Last = Decls.back(); in addOccurrence() 30 Decls.push_back(std::move(Info)); in addOccurrence() 35 auto It = llvm::upper_bound(Decls, Info); in addOccurrence() 36 Decls.insert(It, std::move(Info)); in addOccurrence() 44 addOccurrence(Decls, DeclOccurrence(Roles, Offset, D, Relations)); in addDeclOccurence() 50 addOccurrence(Decls, DeclOccurrence(Roles, Offset, Name, MI)); in addMacroOccurence() 55 std::remove_if(Decls.begin(), Decls.end(), [](const DeclOccurrence &D) { in removeHeaderGuardMacros() 60 Decls.erase(It, Decls.end()); in removeHeaderGuardMacros() [all …]
|
| H A D | FileIndexRecord.h | 30 std::vector<DeclOccurrence> Decls; variable 36 return Decls; in getDeclOccurrencesSortedByOffset()
|
| /netbsd-src/external/apache2/llvm/dist/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() 335 iterator begin() const { return iterator(Decls.begin()); } in begin() 336 iterator end() const { return iterator(Decls.end()); } in end() 339 bool empty() const { return Decls.empty(); } in empty() 433 Decls.addDecl(D, AS); in addDecl() 440 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls() 453 assert(ResultKind == NotFound && Decls.empty()); in setNotFoundInCurrentInstantiation() 475 if (Decls.empty()) { in resolveKindAfterFilter() [all …]
|
| H A D | ExternalSemaSource.h | 118 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 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;
|
| H A D | TypoCorrection.h | 172 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls() argument 174 CorrectionDecls.insert(CorrectionDecls.begin(), Decls.begin(), Decls.end()); in setCorrectionDecls()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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() 265 SmallVectorImpl<TypedefNameDecl*> &Decls) { in ReadExtVectorDecls() argument 267 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls() 271 llvm::SmallSetVector<Decl *, 4> &Decls) { in ReadDeclsToCheckForDeferredDiags() argument 273 Sources[i]->ReadDeclsToCheckForDeferredDiags(Decls); in ReadDeclsToCheckForDeferredDiags() [all …]
|
| H A D | SemaLookup.cpp | 329 assert(ResultKind != NotFound || Decls.size() == 0); in sanity() 330 assert(ResultKind != Found || Decls.size() == 1); in sanity() 331 assert(ResultKind != FoundOverloaded || Decls.size() > 1 || in sanity() 332 (Decls.size() == 1 && in sanity() 335 assert(ResultKind != Ambiguous || Decls.size() > 1 || in sanity() 336 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects || in sanity() 480 unsigned N = Decls.size(); in resolveKind() 492 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind() 517 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind() 522 Decls[I] = Decls[--N]; in resolveKind() [all …]
|
| H A D | IdentifierResolver.cpp | 75 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) { in RemoveDecl() 77 Decls.erase(I-1); in RemoveDecl()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 90 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 D | ODRHash.cpp | 488 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() 615 llvm::SmallVector<const Decl *, 16> Decls; in AddEnumDecl() local 619 Decls.push_back(SubDecl); in AddEnumDecl() [all …]
|
| 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 | 247 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 D | DeclPrinter.cpp | 37 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls); 287 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument 289 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup() 291 Decls.clear(); in ProcessDeclGroup() 380 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local 413 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext() 416 cast<ElaboratedType>(BaseType)->getOwnedTagDecl() == Decls[0]) { in VisitDeclContext() 417 Decls.push_back(*D); in VisitDeclContext() 423 if (!Decls.empty()) in VisitDeclContext() 424 ProcessDeclGroup(Decls); in VisitDeclContext() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/ |
| H A D | ASTReader.h | 554 ArrayRef<serialization::LocalDeclID> Decls; member 557 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo() 558 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo() 1929 SmallVectorImpl<Decl *> &Decls) override; 1935 SmallVectorImpl<Decl *> &Decls) override; 2007 SmallVectorImpl<const DeclaratorDecl *> &Decls) override; 2010 SmallVectorImpl<CXXConstructorDecl *> &Decls) override; 2012 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override; 2015 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override; 2018 llvm::SmallSetVector<Decl *, 4> &Decls) override; [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Interpreter/ |
| H A D | Transaction.h | 32 std::vector<clang::DeclGroupRef> Decls; member
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 164 LastTransaction.Decls.push_back(ADecl.get()); in ParseOrWrapTopLevelDecl() 170 LastTransaction.Decls.push_back(DGR); in ParseOrWrapTopLevelDecl()
|