Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DASTUnresolvedSet.h26 DeclsTy Decls; variable
33 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet()
38 iterator begin() { return iterator(Decls.begin()); } in begin()
39 iterator end() { return iterator(Decls.end()); } in end()
41 const_iterator begin() const { return const_iterator(Decls.begin()); } in begin()
42 const_iterator end() const { return const_iterator(Decls.end()); } in end()
49 Decls.push_back(DeclAccessPair::make(D, AS), C); in addDecl()
56 for (DeclsTy::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) in replace()
63 Decls[I] = Decls.back(); in erase()
64 Decls.pop_back(); in erase()
[all …]
DDeclGroup.h40 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
72 static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument
76 return DeclGroupRef(Decls[0]); in Create()
77 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls)); in Create()
DASTImporter.h238 NamedDecl **Decls,
/external/clang/include/clang/Sema/
DLookup.h269 return Decls; in asUnresolvedSet()
272 iterator begin() const { return iterator(Decls.begin()); } in begin()
273 iterator end() const { return iterator(Decls.end()); } in end()
276 bool empty() const { return Decls.empty(); } in empty()
370 Decls.addDecl(D, AS); in addDecl()
377 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls()
390 assert(ResultKind == NotFound && Decls.empty()); in setNotFoundInCurrentInstantiation()
404 if (Decls.empty()) { in resolveKindAfterFilter()
447 assert(!Decls.empty() && "cannot get representative of empty set"); in getRepresentativeDecl()
478 Decls.clear(); in clear()
[all …]
DExternalSemaSource.h103 SmallVectorImpl<const DeclaratorDecl *> &Decls) {} in ReadUnusedFileScopedDecls() argument
113 SmallVectorImpl<CXXConstructorDecl *> &Decls) {} in ReadDelegatingConstructors() argument
122 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {} in ReadExtVectorDecls() argument
130 virtual void ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl *> &Decls) {} in ReadDynamicClasses() argument
140 SmallVectorImpl<NamedDecl *> &Decls) {} in ReadLocallyScopedExternCDecls() argument
DMultiplexExternalSemaSource.h125 SmallVectorImpl<Decl *> &Decls);
250 SmallVectorImpl<const DeclaratorDecl*> &Decls);
260 SmallVectorImpl<CXXConstructorDecl*> &Decls);
269 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls);
277 virtual void ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl*> &Decls);
286 virtual void ReadLocallyScopedExternCDecls(SmallVectorImpl<NamedDecl*>&Decls);
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()
61 Decls.insert(Pos, D); in InsertDecl()
65 DeclsTy Decls;
/external/llvm/test/TableGen/
Dforeach.td10 def Decls : decls;
16 class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
18 class C<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Jr."))>;
20 class D<list<string> names> : A<!foreach(Decls.name, names, !subst("NAME", "John Smith", Decls.name…
DTargetInstrSpec.td72 def Decls : decls;
82 !foreach(Decls.pattern, patterns,
83 !foreach(Decls.operand, Decls.pattern,
85 !subst(REGCLASS, VR128, Decls.operand))))>;
89 !foreach(Decls.pattern, patterns,
90 !foreach(Decls.operand, Decls.pattern,
92 !subst(REGCLASS, VR128, Decls.operand))))>;
DMultiPat.td81 def Decls : decls;
94 !foreach(Decls.pattern, patterns[0],
95 !foreach(Decls.operand, Decls.pattern,
98 !subst(MNEMONIC, set, Decls.operand)))))>,
99 MakePat<!foreach(Decls.pattern, patterns[1],
100 !foreach(Decls.operand, Decls.pattern,
103 !subst(MNEMONIC, set, Decls.operand)))))>;
/external/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/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); in ComputeDeclsFound()
400 for (Path.Decls = BaseRecord->lookup(N); in FindTagMember()
401 !Path.Decls.empty(); in FindTagMember()
402 Path.Decls = Path.Decls.slice(1)) { in FindTagMember()
403 if (Path.Decls.front()->isInIdentifierNamespace(IDNS_Tag)) in FindTagMember()
418 for (Path.Decls = BaseRecord->lookup(N); in FindOrdinaryMember()
419 !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()
DDeclPrinter.cpp36 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls);
199 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument
201 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup()
203 Decls.clear(); in ProcessDeclGroup()
227 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local
260 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext()
263 cast<TagType>(BaseType)->getDecl() == Decls[0]) { in VisitDeclContext()
264 Decls.push_back(*D); in VisitDeclContext()
270 if (!Decls.empty()) in VisitDeclContext()
271 ProcessDeclGroup(Decls); in VisitDeclContext()
[all …]
DDeclBase.cpp914 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain() argument
919 for (unsigned I = 0, N = Decls.size(); I != N; ++I) { in BuildDeclChain()
920 if (FieldsAlreadyLoaded && isa<FieldDecl>(Decls[I])) in BuildDeclChain()
923 Decl *D = Decls[I]; in BuildDeclChain()
961 SmallVector<Decl*, 64> Decls; in LoadLexicalDeclsFromExternalStorage() local
963 switch (Source->FindExternalLexicalDecls(this, Decls)) { in LoadLexicalDeclsFromExternalStorage()
972 if (Decls.empty()) in LoadLexicalDeclsFromExternalStorage()
984 llvm::tie(ExternalFirst, ExternalLast) = BuildDeclChain(Decls, in LoadLexicalDeclsFromExternalStorage()
1009 ArrayRef<NamedDecl*> Decls) { in SetExternalVisibleDeclsForName() argument
1017 I = Decls.begin(), E = Decls.end(); I != E; ++I) { in SetExternalVisibleDeclsForName()
/external/clang/lib/Sema/
DMultiplexExternalSemaSource.cpp111 SmallVectorImpl<Decl *> &Decls){ in FindFileRegionDecls() argument
113 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls()
217 SmallVectorImpl<const DeclaratorDecl*> &Decls) { in ReadUnusedFileScopedDecls() argument
219 Sources[i]->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
223 SmallVectorImpl<CXXConstructorDecl*> &Decls) { in ReadDelegatingConstructors() argument
225 Sources[i]->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
229 SmallVectorImpl<TypedefNameDecl*> &Decls) { in ReadExtVectorDecls() argument
231 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls()
235 SmallVectorImpl<CXXRecordDecl*> &Decls) { in ReadDynamicClasses() argument
237 Sources[i]->ReadDynamicClasses(Decls); in ReadDynamicClasses()
[all …]
DIdentifierResolver.cpp71 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) { in RemoveDecl()
73 Decls.erase(I-1); in RemoveDecl()
83 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) { in ReplaceDecl()
DSemaLookup.cpp311 assert(ResultKind != NotFound || Decls.size() == 0); in sanityImpl()
312 assert(ResultKind != Found || Decls.size() == 1); in sanityImpl()
313 assert(ResultKind != FoundOverloaded || Decls.size() > 1 || in sanityImpl()
314 (Decls.size() == 1 && in sanityImpl()
317 assert(ResultKind != Ambiguous || Decls.size() > 1 || in sanityImpl()
318 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects || in sanityImpl()
338 unsigned N = Decls.size(); in resolveKind()
349 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
371 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
376 Decls[I] = Decls[--N]; in resolveKind()
[all …]
DSemaStmt.cpp1205 llvm::SmallPtrSet<VarDecl*, 8> &Decls; member in __anon58f793e50211::DeclExtractor
1211 DeclExtractor(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls, in DeclExtractor() argument
1214 Decls(Decls), in DeclExtractor()
1275 Decls.insert(VD); in VisitDeclRefExpr()
1283 llvm::SmallPtrSet<VarDecl*, 8> &Decls; member in __anon58f793e50211::DeclMatcher
1289 DeclMatcher(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls, Stmt *Statement) : in DeclMatcher() argument
1290 Inherited(S.Context), Decls(Decls), FoundDecl(false) { in DeclMatcher()
1341 if (Decls.count(VD)) in VisitDeclRefExpr()
1360 llvm::SmallPtrSet<VarDecl*, 8> Decls; in CheckForLoopConditionalStatement() local
1362 DeclExtractor DE(S, Decls, Ranges); in CheckForLoopConditionalStatement()
[all …]
/external/clang/include/clang/Serialization/
DASTReader.h366 ArrayRef<serialization::LocalDeclID> Decls; member
369 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo()
370 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
1477 SmallVectorImpl<Decl*> &Decls);
1483 SmallVectorImpl<Decl *> &Decls);
1550 SmallVectorImpl<const DeclaratorDecl *> &Decls);
1553 SmallVectorImpl<CXXConstructorDecl *> &Decls);
1555 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls);
1557 virtual void ReadDynamicClasses(SmallVectorImpl<CXXRecordDecl *> &Decls);
1560 SmallVectorImpl<NamedDecl *> &Decls);
[all …]
/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()
/external/clang/lib/Serialization/
DASTReader.cpp2595 SmallVectorImpl<GlobalDeclID> &Decls = StoredMergedDecls[CanonID]; in ReadASTBlock() local
2597 Decls.push_back(getGlobalDeclID(F, Record[Idx++])); in ReadASTBlock()
5248 SmallVectorImpl<Decl*> &Decls; member in __anon8512aa6a0611::FindExternalLexicalDeclsVisitor
5254 SmallVectorImpl<Decl*> &Decls) in FindExternalLexicalDeclsVisitor() argument
5255 : Reader(Reader), DC(DC), isKindWeWant(isKindWeWant), Decls(Decls) in FindExternalLexicalDeclsVisitor()
5291 This->Decls.push_back(D); in visit()
5302 SmallVectorImpl<Decl*> &Decls) { in FindExternalLexicalDecls() argument
5305 FindExternalLexicalDeclsVisitor Visitor(*this, DC, isKindWeWant, Decls); in FindExternalLexicalDecls()
5346 SmallVectorImpl<Decl *> &Decls) { in FindFileRegionDecls() argument
5354 if (DInfo.Decls.empty()) in FindFileRegionDecls()
[all …]
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp383 llvm::Constant **Decls, in GenerateCXXGlobalInitFunc() argument
402 if (Decls[i]) in GenerateCXXGlobalInitFunc()
403 EmitRuntimeCall(Decls[i]); in GenerateCXXGlobalInitFunc()
/external/clang/lib/Frontend/
DASTUnit.cpp2647 LocDeclsTy *&Decls = FileDecls[FID]; in addFileLevelDecl() local
2648 if (!Decls) in addFileLevelDecl()
2649 Decls = new LocDeclsTy(); in addFileLevelDecl()
2653 if (Decls->empty() || Decls->back().first <= Offset) { in addFileLevelDecl()
2654 Decls->push_back(LocDecl); in addFileLevelDecl()
2659 I = std::upper_bound(Decls->begin(), Decls->end(), LocDecl, compLocDecl); in addFileLevelDecl()
2661 Decls->insert(I, LocDecl); in addFileLevelDecl()
2665 SmallVectorImpl<Decl *> &Decls) { in findFileRegionDecls() argument
2672 Decls); in findFileRegionDecls()
2704 Decls.push_back(DIt->second); in findFileRegionDecls()

123