Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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()
73 if (I == Decls.size() - 1) in erase()
74 Decls.pop_back(); in erase()
[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()
101 Decls List = Data.getPointer(); in MaybeDeallocList()
161 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls() argument
164 erase_if([Decls](NamedDecl *ND) { in replaceExternalDecls()
167 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()
/openbsd-src/gnu/llvm/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()
459 Decls.addDecl(D, AS); in addDecl()
466 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls()
479 assert(ResultKind == NotFound && Decls.empty()); in setNotFoundInCurrentInstantiation()
501 if (Decls.empty()) { in resolveKindAfterFilter()
[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()
/openbsd-src/gnu/llvm/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()
73 Codes.reserve(Decls.size()); in getCodeRange()
74 for (const auto &Decl : Decls) in getCodeRange()
/openbsd-src/gnu/llvm/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
/openbsd-src/gnu/llvm/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()
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 DSemaLookup.cpp332 assert(ResultKind != NotFound || Decls.size() == 0); in checkDebugAssumptions()
333 assert(ResultKind != Found || Decls.size() == 1); in checkDebugAssumptions()
334 assert(ResultKind != FoundOverloaded || Decls.size() > 1 || in checkDebugAssumptions()
335 (Decls.size() == 1 && in checkDebugAssumptions()
338 assert(ResultKind != Ambiguous || Decls.size() > 1 || in checkDebugAssumptions()
339 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects || in checkDebugAssumptions()
483 unsigned N = Decls.size(); in resolveKind()
495 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
520 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
526 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()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DODRHash.cpp415 llvm::SmallVector<const Decl *, 16> Decls; in VisitObjCMethodDecl() local
418 Decls.push_back(SubDecl); in VisitObjCMethodDecl()
420 ID.AddInteger(Decls.size()); in VisitObjCMethodDecl()
421 for (auto SubDecl : Decls) in VisitObjCMethodDecl()
573 llvm::SmallVector<const Decl *, 16> Decls; in AddCXXRecordDecl() local
576 Decls.push_back(SubDecl); in AddCXXRecordDecl()
584 ID.AddInteger(Decls.size()); in AddCXXRecordDecl()
585 for (auto SubDecl : Decls) { in AddCXXRecordDecl()
611 llvm::SmallVector<const Decl *, 16> Decls; in AddRecordDecl() local
614 Decls.push_back(SubDecl); in AddRecordDecl()
[all …]
H A DASTImporterLookupTable.cpp91 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 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()
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()
H A DDeclPrinter.cpp37 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls);
291 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument
293 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup()
295 Decls.clear(); in ProcessDeclGroup()
384 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local
417 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext()
420 cast<ElaboratedType>(BaseType)->getOwnedTagDecl() == Decls[0]) { in VisitDeclContext()
421 Decls.push_back(*D); in VisitDeclContext()
427 if (!Decls.empty()) in VisitDeclContext()
428 ProcessDeclGroup(Decls); in VisitDeclContext()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/include/clang/Serialization/
H A DASTReader.h573 ArrayRef<serialization::LocalDeclID> Decls; member
576 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo()
577 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
1978 SmallVectorImpl<Decl *> &Decls) override;
1984 SmallVectorImpl<Decl *> &Decls) override;
2056 SmallVectorImpl<const DeclaratorDecl *> &Decls) override;
2059 SmallVectorImpl<CXXConstructorDecl *> &Decls) override;
2061 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override;
2064 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
2067 llvm::SmallSetVector<Decl *, 4> &Decls) override;
[all …]

123