Searched refs:Decls (Results 1 - 25 of 63) sorted by relevance

123

/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DASTUnresolvedSet.h40 DeclsTy Decls; member in class:clang::ASTUnresolvedSet
44 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {}
49 iterator begin() { return iterator(Decls.begin()); }
50 iterator end() { return iterator(Decls.end()); }
52 const_iterator begin() const { return const_iterator(Decls.begin()); }
53 const_iterator end() const { return const_iterator(Decls.end()); }
56 Decls.push_back(DeclAccessPair::make(D, AS), C);
63 for (DeclsTy::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) {
72 void erase(unsigned I) { Decls[
[all...]
H A DDeclGroup.h1 //===- DeclGroup.h - Classes for representing groups of Decls ---*- C++ -*-===//
36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
68 static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls) {
72 return DeclGroupRef(Decls[0]);
73 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls));
/freebsd-11-stable/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp26 if (Decls.empty())
28 auto &Last = Decls.back();
33 Decls.emplace_back(Roles, Offset, D, Relations);
38 // We keep Decls in order as we need to access them in this order in all cases.
39 auto It = llvm::upper_bound(Decls, NewInfo);
40 Decls.insert(It, std::move(NewInfo));
45 for (auto &DclInfo : Decls) {
H A DFileIndexRecord.h30 std::vector<DeclOccurrence> Decls; member in class:clang::index::FileIndexRecord
36 return Decls;
H A DIndexingAction.cpp174 ArrayRef<const Decl *> Decls,
185 for (const Decl *D : Decls)
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DDeclGroup.cpp1 //===- DeclGroup.cpp - Classes for representing groups of Decls -----------===//
20 DeclGroup* DeclGroup::Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { argument
24 new (Mem) DeclGroup(NumDecls, Decls);
H A DCXXInheritance.cpp42 llvm::SmallSetVector<NamedDecl *, 8> Decls; local
44 Decls.insert(Path->Decls.front());
46 NumDeclsFound = Decls.size();
48 std::copy(Decls.begin(), Decls.end(), DeclsFound.get());
421 for (Path.Decls = BaseRecord->lookup(Name);
422 !Path.Decls.empty();
423 Path.Decls = Path.Decls
[all...]
H A DASTImporterLookupTable.cpp72 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; local
74 Decls.insert(ND);
78 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; local
79 bool EraseResult = Decls.remove(ND);
H A DODRHash.cpp486 // Filter out sub-Decls which will not be processed in order to get an
488 llvm::SmallVector<const Decl *, 16> Decls; local
491 Decls.push_back(SubDecl);
499 ID.AddInteger(Decls.size());
500 for (auto SubDecl : Decls) {
587 // Filter out sub-Decls which will not be processed in order to get an
589 llvm::SmallVector<const Decl *, 16> Decls; local
592 Decls.push_back(SubDecl);
596 ID.AddInteger(Decls.size());
597 for (auto SubDecl : Decls) {
615 llvm::SmallVector<const Decl *, 16> Decls; local
[all...]
H A DExternalASTMerger.cpp247 bool HasDeclOfSameType(llvm::ArrayRef<Candidate> Decls, const Candidate &C) { argument
250 return llvm::any_of(Decls, [&](const Candidate &D) {
481 llvm::SmallVector<NamedDecl *, 1> Decls;
508 Decls.reserve(Candidates.size());
522 Decls.push_back(ND);
524 SetExternalVisibleDeclsForName(DC, Name, Decls);
H A DExternalASTSource.cpp58 SmallVectorImpl<Decl *> &Decls) {}
56 FindFileRegionDecls(FileID File, unsigned Offset, unsigned Length, SmallVectorImpl<Decl *> &Decls) argument
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugAbbrev.cpp25 Decls.clear();
45 Decls.push_back(std::move(AbbrDecl));
51 for (const auto &Decl : Decls)
59 for (const auto &Decl : Decls) {
65 if (AbbrCode < FirstAbbrCode || AbbrCode >= FirstAbbrCode + Decls.size())
67 return &Decls[AbbrCode - FirstAbbrCode];
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDebugAbbrev.h27 std::vector<DWARFAbbreviationDeclaration> Decls; member in class:llvm::DWARFAbbreviationDeclarationSet
43 return Decls.begin();
47 return Decls.end();
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DIdentifierResolver.h47 DeclsTy::iterator decls_begin() { return Decls.begin(); }
48 DeclsTy::iterator decls_end() { return Decls.end(); }
50 void AddDecl(NamedDecl *D) { Decls.push_back(D); }
58 Decls.insert(Pos, D);
62 DeclsTy Decls; member in class:clang::IdentifierResolver::IdDeclInfo
H A DLookup.h185 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)),
206 Decls = std::move(Other.Decls);
332 return Decls;
335 iterator begin() const { return iterator(Decls.begin()); }
336 iterator end() const { return iterator(Decls.end()); }
339 bool empty() const { return Decls.empty(); }
433 Decls.addDecl(D, AS);
440 Decls
726 UnresolvedSet<8> Decls; member in class:clang::LookupResult
801 llvm::MapVector<NamedDecl*, NamedDecl*> Decls; member in class:clang::ADLResult
[all...]
H A DExternalSemaSource.h118 SmallVectorImpl<const DeclaratorDecl *> &Decls) {}
128 SmallVectorImpl<CXXConstructorDecl *> &Decls) {}
137 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {} argument
146 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) {}
117 ReadUnusedFileScopedDecls( SmallVectorImpl<const DeclaratorDecl *> &Decls) argument
127 ReadDelegatingConstructors( SmallVectorImpl<CXXConstructorDecl *> &Decls) argument
145 ReadUnusedLocalTypedefNameCandidates( llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) argument
H A DMultiplexExternalSemaSource.h119 SmallVectorImpl<Decl *> &Decls) override;
258 SmallVectorImpl<const DeclaratorDecl*> &Decls) override;
268 SmallVectorImpl<CXXConstructorDecl*> &Decls) override;
277 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls) override;
286 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
H A DTypoCorrection.h172 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { argument
174 CorrectionDecls.insert(CorrectionDecls.begin(), Decls.begin(), Decls.end());
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DMultiplexExternalSemaSource.cpp128 SmallVectorImpl<Decl *> &Decls){
130 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls);
261 SmallVectorImpl<const DeclaratorDecl*> &Decls) {
263 Sources[i]->ReadUnusedFileScopedDecls(Decls);
267 SmallVectorImpl<CXXConstructorDecl*> &Decls) {
269 Sources[i]->ReadDelegatingConstructors(Decls);
273 SmallVectorImpl<TypedefNameDecl*> &Decls) {
275 Sources[i]->ReadExtVectorDecls(Decls);
279 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) {
281 Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls);
125 FindFileRegionDecls(FileID File, unsigned Offset, unsigned Length, SmallVectorImpl<Decl *> &Decls) argument
260 ReadUnusedFileScopedDecls( SmallVectorImpl<const DeclaratorDecl*> &Decls) argument
266 ReadDelegatingConstructors( SmallVectorImpl<CXXConstructorDecl*> &Decls) argument
272 ReadExtVectorDecls( SmallVectorImpl<TypedefNameDecl*> &Decls) argument
278 ReadUnusedLocalTypedefNameCandidates( llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) argument
[all...]
H A DIdentifierResolver.cpp75 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) {
77 Decls.erase(I-1);
H A DSemaLookup.cpp328 assert(ResultKind != NotFound || Decls.size() == 0);
329 assert(ResultKind != Found || Decls.size() == 1);
330 assert(ResultKind != FoundOverloaded || Decls.size() > 1 ||
331 (Decls.size() == 1 &&
334 assert(ResultKind != Ambiguous || Decls.size() > 1 ||
335 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects ||
476 unsigned N = Decls.size();
488 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl();
513 NamedDecl *D = Decls[I]->getUnderlyingDecl();
518 Decls[
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTUtils.h92 llvm::SmallVectorImpl<clang::Decl *> &Decls) override {
93 m_Source->FindFileRegionDecls(File, Offset, Length, Decls);
355 llvm::SmallVectorImpl<clang::Decl *> &Decls) override {
357 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls);
494 llvm::SmallVectorImpl<const clang::DeclaratorDecl *> &Decls) override {
496 Source->ReadUnusedFileScopedDecls(Decls);
500 llvm::SmallVectorImpl<clang::CXXConstructorDecl *> &Decls) override {
502 Source->ReadDelegatingConstructors(Decls);
506 llvm::SmallVectorImpl<clang::TypedefNameDecl *> &Decls) override {
508 Source->ReadExtVectorDecls(Decls);
[all...]
H A DClangASTSource.h30 /// class provides Decls (VarDecl, FunDecl, TypeDecl) to Clang for these
69 /// Look up all Decls that match a particular name. Only handles
78 /// The DeclContext to register the found Decls in.
88 /// Enumerate all Decls in a given lexical context.
95 /// DeclKinds of desired Decls, and false otherwise.
97 /// \param[in] Decls
98 /// A vector that is filled in with matching Decls.
102 llvm::SmallVectorImpl<clang::Decl *> &Decls) override;
226 llvm::SmallVectorImpl<clang::Decl *> &Decls) override {
227 return m_original.FindExternalLexicalDecls(DC, IsKindWeWant, Decls);
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Index/
H A DIndexingAction.h58 /// Recursively indexes \p Decls.
60 ArrayRef<const Decl *> Decls,
/freebsd-11-stable/contrib/llvm-project/clang/utils/TableGen/
H A DClangASTNodesEmitter.cpp223 RecordVector Decls = Records.getAllDerivedDefinitions(DeclNodeClassName); local
226 for (RecordVector::iterator i = Decls.begin(), e = Decls.end(); i != e; ++i) {

Completed in 193 milliseconds

123