Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTUnresolvedSet.h40 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 DDeclContextInternals.h34 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 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);
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/
H A DFileIndexRecord.cpp20 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 DFileIndexRecord.h30 std::vector<DeclOccurrence> Decls; variable
36 return Decls; in getDeclOccurrencesSortedByOffset()
/netbsd-src/external/apache2/llvm/dist/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()
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 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()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
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 DSemaLookup.cpp329 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 DIdentifierResolver.cpp75 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 DDWARFDebugAbbrev.h27 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 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 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()
615 llvm::SmallVector<const Decl *, 16> Decls; in AddEnumDecl() local
619 Decls.push_back(SubDecl); 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 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);
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 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()
/netbsd-src/external/apache2/llvm/dist/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()
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 DTransaction.h32 std::vector<clang::DeclGroupRef> Decls; member
/netbsd-src/external/apache2/llvm/dist/clang/lib/Interpreter/
H A DIncrementalParser.cpp164 LastTransaction.Decls.push_back(ADecl.get()); in ParseOrWrapTopLevelDecl()
170 LastTransaction.Decls.push_back(DGR); in ParseOrWrapTopLevelDecl()

123