Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DASTUnresolvedSet.h33 DeclsTy Decls; variable
39 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet()
44 iterator begin() { return iterator(Decls.begin()); } in begin()
45 iterator end() { return iterator(Decls.end()); } in end()
47 const_iterator begin() const { return const_iterator(Decls.begin()); } in begin()
48 const_iterator end() const { return const_iterator(Decls.end()); } in end()
51 Decls.push_back(DeclAccessPair::make(D, AS), C); in addDecl()
58 for (DeclsTy::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in replace()
67 void erase(unsigned I) { Decls[I] = Decls.pop_back_val(); } in erase()
69 void clear() { Decls.clear(); } in clear()
[all …]
DDeclGroup.h37 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
71 static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument
75 return DeclGroupRef(Decls[0]); in Create()
76 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls)); in Create()
/external/clang/include/clang/Sema/
DLookup.h195 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult()
212 Decls = std::move(Other.Decls);
316 return Decls; in asUnresolvedSet()
319 iterator begin() const { return iterator(Decls.begin()); } in begin()
320 iterator end() const { return iterator(Decls.end()); } in end()
323 bool empty() const { return Decls.empty(); } in empty()
417 Decls.addDecl(D, AS); in addDecl()
424 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls()
437 assert(ResultKind == NotFound && Decls.empty()); in setNotFoundInCurrentInstantiation()
459 if (Decls.empty()) { in resolveKindAfterFilter()
[all …]
DIdentifierResolver.h45 inline DeclsTy::iterator decls_begin() { return Decls.begin(); } in decls_begin()
46 inline DeclsTy::iterator decls_end() { return Decls.end(); } in decls_end()
48 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl()
56 Decls.insert(Pos, D); in InsertDecl()
60 DeclsTy Decls;
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
DMultiplexExternalSemaSource.h116 SmallVectorImpl<Decl *> &Decls) override;
251 SmallVectorImpl<const DeclaratorDecl*> &Decls) override;
261 SmallVectorImpl<CXXConstructorDecl*> &Decls) override;
270 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls) override;
279 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
DTypoCorrection.h160 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls() argument
162 CorrectionDecls.insert(CorrectionDecls.begin(), Decls.begin(), Decls.end()); in setCorrectionDecls()
/external/clang/lib/AST/
DCXXInheritance.cpp29 llvm::SetVector<NamedDecl *, SmallVector<NamedDecl *, 8> > Decls; in ComputeDeclsFound() local
31 Decls.insert(Path->Decls.front()); in ComputeDeclsFound()
33 NumDeclsFound = Decls.size(); in ComputeDeclsFound()
35 std::copy(Decls.begin(), Decls.end(), DeclsFound.get()); in ComputeDeclsFound()
381 for (Path.Decls = BaseRecord->lookup(Name); in FindTagMember()
382 !Path.Decls.empty(); in FindTagMember()
383 Path.Decls = Path.Decls.slice(1)) { in FindTagMember()
384 if (Path.Decls.front()->isInIdentifierNamespace(IDNS_Tag)) in FindTagMember()
398 for (Path.Decls = BaseRecord->lookup(Name); in FindOrdinaryMember()
399 !Path.Decls.empty(); in FindOrdinaryMember()
[all …]
DDeclGroup.cpp20 DeclGroup* DeclGroup::Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument
24 new (Mem) DeclGroup(NumDecls, Decls); in Create()
DDeclBase.cpp1073 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain() argument
1078 for (unsigned I = 0, N = Decls.size(); I != N; ++I) { in BuildDeclChain()
1079 if (FieldsAlreadyLoaded && isa<FieldDecl>(Decls[I])) in BuildDeclChain()
1082 Decl *D = Decls[I]; in BuildDeclChain()
1117 SmallVector<Decl*, 64> Decls; in LoadLexicalDeclsFromExternalStorage() local
1119 Source->FindExternalLexicalDecls(this, Decls); in LoadLexicalDeclsFromExternalStorage()
1121 if (Decls.empty()) in LoadLexicalDeclsFromExternalStorage()
1134 BuildDeclChain(Decls, FieldsAlreadyLoaded); in LoadLexicalDeclsFromExternalStorage()
1160 ArrayRef<NamedDecl*> Decls) { in SetExternalVisibleDeclsForName() argument
1179 for (unsigned I = 0, N = Decls.size(); I != N; ++I) in SetExternalVisibleDeclsForName()
[all …]
DDeclPrinter.cpp36 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls);
252 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument
254 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup()
256 Decls.clear(); in ProcessDeclGroup()
280 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local
302 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext()
307 cast<TagType>(BaseType)->getDecl() == Decls[0]) { in VisitDeclContext()
308 Decls.push_back(*D); in VisitDeclContext()
314 if (!Decls.empty()) in VisitDeclContext()
315 ProcessDeclGroup(Decls); in VisitDeclContext()
[all …]
/external/llvm/test/TableGen/
Dforeach.td18 def Decls : decls;
24 class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
26 class C<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Jr."))>;
28 class D<list<string> names> : A<!foreach(Decls.name, names, !subst("NAME", "John Smith", Decls.name…
DTargetInstrSpec.td78 def Decls : decls;
88 !foreach(Decls.pattern, patterns,
89 !foreach(Decls.operand, Decls.pattern,
91 !subst(REGCLASS, VR128, Decls.operand))))>;
95 !foreach(Decls.pattern, patterns,
96 !foreach(Decls.operand, Decls.pattern,
98 !subst(REGCLASS, VR128, Decls.operand))))>;
DMultiPat.td82 def Decls : decls;
95 !foreach(Decls.pattern, patterns[0],
96 !foreach(Decls.operand, Decls.pattern,
99 !subst(MNEMONIC, set, Decls.operand)))))>,
100 MakePat<!foreach(Decls.pattern, patterns[1],
101 !foreach(Decls.operand, Decls.pattern,
104 !subst(MNEMONIC, set, Decls.operand)))))>;
/external/swiftshader/third_party/LLVM/test/TableGen/
Dforeach.td11 def Decls : decls;
17 class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
19 class C<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Jr."))>;
21 class D<list<string> names> : A<!foreach(Decls.name, names, !subst("NAME", "John Smith", Decls.name…
DTargetInstrSpec.td73 def Decls : decls;
83 !foreach(Decls.pattern, patterns,
84 !foreach(Decls.operand, Decls.pattern,
86 !subst(REGCLASS, VR128, Decls.operand))))>;
90 !foreach(Decls.pattern, patterns,
91 !foreach(Decls.operand, Decls.pattern,
93 !subst(REGCLASS, VR128, Decls.operand))))>;
DMultiPat.td82 def Decls : decls;
95 !foreach(Decls.pattern, patterns[0],
96 !foreach(Decls.operand, Decls.pattern,
99 !subst(MNEMONIC, set, Decls.operand)))))>,
100 MakePat<!foreach(Decls.pattern, patterns[1],
101 !foreach(Decls.operand, Decls.pattern,
104 !subst(MNEMONIC, set, Decls.operand)))))>;
/external/swiftshader/third_party/LLVM/lib/DebugInfo/
DDWARFDebugAbbrev.cpp23 Decls.push_back(abbrevDeclaration); in extract()
36 for (unsigned i = 0, e = Decls.size(); i != e; ++i) in dump()
37 Decls[i].dump(OS); in dump()
45 DWARFAbbreviationDeclarationCollConstIter end = Decls.end(); in getAbbreviationDeclaration()
46 for (pos = Decls.begin(); pos != end; ++pos) { in getAbbreviationDeclaration()
52 if (idx < Decls.size()) in getAbbreviationDeclaration()
53 return &Decls[idx]; in getAbbreviationDeclaration()
DDWARFDebugAbbrev.h30 std::vector<DWARFAbbreviationDeclaration> Decls; variable
40 Decls.clear(); in clear()
/external/llvm/lib/DebugInfo/DWARF/
DDWARFDebugAbbrev.cpp22 Decls.clear(); in clear()
42 Decls.push_back(std::move(AbbrDecl)); in extract()
48 for (const auto &Decl : Decls) in dump()
56 for (const auto &Decl : Decls) { in getAbbreviationDeclaration()
62 if (AbbrCode < FirstAbbrCode || AbbrCode >= FirstAbbrCode + Decls.size()) in getAbbreviationDeclaration()
64 return &Decls[AbbrCode - FirstAbbrCode]; in getAbbreviationDeclaration()
/external/clang/lib/Sema/
DMultiplexExternalSemaSource.cpp120 SmallVectorImpl<Decl *> &Decls){ in FindFileRegionDecls() argument
122 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
239 SmallVectorImpl<const DeclaratorDecl*> &Decls) { in ReadUnusedFileScopedDecls() argument
241 Sources[i]->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
245 SmallVectorImpl<CXXConstructorDecl*> &Decls) { in ReadDelegatingConstructors() argument
247 Sources[i]->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
251 SmallVectorImpl<TypedefNameDecl*> &Decls) { in ReadExtVectorDecls() argument
253 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls()
257 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) { in ReadUnusedLocalTypedefNameCandidates() argument
259 Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls); in ReadUnusedLocalTypedefNameCandidates()
DSemaLookup.cpp326 assert(ResultKind != NotFound || Decls.size() == 0); in sanity()
327 assert(ResultKind != Found || Decls.size() == 1); in sanity()
328 assert(ResultKind != FoundOverloaded || Decls.size() > 1 || in sanity()
329 (Decls.size() == 1 && in sanity()
332 assert(ResultKind != Ambiguous || Decls.size() > 1 || in sanity()
333 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects || in sanity()
471 unsigned N = Decls.size(); in resolveKind()
483 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
508 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
513 Decls[I] = Decls[--N]; in resolveKind()
[all …]
/external/boringssl/src/util/
Ddoc.go52 Decls []HeaderDecl member
401 if last := len(section.Decls) - 1; len(name) == 0 && len(comment) == 0 && last >= 0 {
402 section.Decls[last].Decl += "\n" + decl
427 section.Decls = append(section.Decls, HeaderDecl{
558 {{range .Decls}}
574 {{range .Decls}}
/external/clang/test/SemaCXX/
Dpass-object-size.cpp22 void Decls() { in Decls() function
67 void Decls() { in Decls() function
/external/clang/utils/TableGen/
DClangASTNodesEmitter.cpp203 RecordVector Decls = Records.getAllDerivedDefinitions("Decl"); in EmitClangDeclContext() local
206 for (RecordVector::iterator i = Decls.begin(), e = Decls.end(); i != e; ++i) { in EmitClangDeclContext()

123