Home
last modified time | relevance | path

Searched refs:Decls (Results 1 – 25 of 54) 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.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()
/external/clang/include/clang/Sema/
DLookup.h273 return Decls; in asUnresolvedSet()
276 iterator begin() const { return iterator(Decls.begin()); } in begin()
277 iterator end() const { return iterator(Decls.end()); } in end()
280 bool empty() const { return Decls.empty(); } in empty()
374 Decls.addDecl(D, AS); in addDecl()
381 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls()
394 assert(ResultKind == NotFound && Decls.empty()); in setNotFoundInCurrentInstantiation()
416 if (Decls.empty()) { in resolveKindAfterFilter()
466 assert(!Decls.empty() && "cannot get representative of empty set"); in getRepresentativeDecl()
497 Decls.clear(); in clear()
[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.h114 SmallVectorImpl<const DeclaratorDecl *> &Decls) {} in ReadUnusedFileScopedDecls() argument
124 SmallVectorImpl<CXXConstructorDecl *> &Decls) {} in ReadDelegatingConstructors() argument
133 virtual void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) {} in ReadExtVectorDecls() argument
142 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) {} in ReadUnusedLocalTypedefNameCandidates() argument
DMultiplexExternalSemaSource.h116 SmallVectorImpl<Decl *> &Decls) override;
247 SmallVectorImpl<const DeclaratorDecl*> &Decls) override;
257 SmallVectorImpl<CXXConstructorDecl*> &Decls) override;
266 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls) override;
275 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
DTypoCorrection.h153 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls() argument
155 CorrectionDecls.insert(CorrectionDecls.begin(), Decls.begin(), Decls.end()); in setCorrectionDecls()
/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/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
26 new (Mem) DeclGroup(NumDecls, Decls); in Create()
DDeclBase.cpp1029 DeclContext::BuildDeclChain(ArrayRef<Decl*> Decls, in BuildDeclChain() argument
1034 for (unsigned I = 0, N = Decls.size(); I != N; ++I) { in BuildDeclChain()
1035 if (FieldsAlreadyLoaded && isa<FieldDecl>(Decls[I])) in BuildDeclChain()
1038 Decl *D = Decls[I]; in BuildDeclChain()
1073 SmallVector<Decl*, 64> Decls; in LoadLexicalDeclsFromExternalStorage() local
1075 Source->FindExternalLexicalDecls(this, Decls); in LoadLexicalDeclsFromExternalStorage()
1077 if (Decls.empty()) in LoadLexicalDeclsFromExternalStorage()
1090 BuildDeclChain(Decls, FieldsAlreadyLoaded); in LoadLexicalDeclsFromExternalStorage()
1116 ArrayRef<NamedDecl*> Decls) { in SetExternalVisibleDeclsForName() argument
1135 for (unsigned I = 0, N = Decls.size(); I != N; ++I) in SetExternalVisibleDeclsForName()
[all …]
DDeclPrinter.cpp36 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls);
250 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument
252 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup()
254 Decls.clear(); in ProcessDeclGroup()
278 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local
300 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext()
305 cast<TagType>(BaseType)->getDecl() == Decls[0]) { in VisitDeclContext()
306 Decls.push_back(*D); in VisitDeclContext()
312 if (!Decls.empty()) in VisitDeclContext()
313 ProcessDeclGroup(Decls); in VisitDeclContext()
[all …]
/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()
234 SmallVectorImpl<const DeclaratorDecl*> &Decls) { in ReadUnusedFileScopedDecls() argument
236 Sources[i]->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls()
240 SmallVectorImpl<CXXConstructorDecl*> &Decls) { in ReadDelegatingConstructors() argument
242 Sources[i]->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors()
246 SmallVectorImpl<TypedefNameDecl*> &Decls) { in ReadExtVectorDecls() argument
248 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls()
252 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) { in ReadUnusedLocalTypedefNameCandidates() argument
254 Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls); in ReadUnusedLocalTypedefNameCandidates()
DSemaLookup.cpp323 assert(ResultKind != NotFound || Decls.size() == 0); in sanity()
324 assert(ResultKind != Found || Decls.size() == 1); in sanity()
325 assert(ResultKind != FoundOverloaded || Decls.size() > 1 || in sanity()
326 (Decls.size() == 1 && in sanity()
329 assert(ResultKind != Ambiguous || Decls.size() > 1 || in sanity()
330 (Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects || in sanity()
460 unsigned N = Decls.size(); in resolveKind()
472 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
497 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
502 Decls[I] = Decls[--N]; in resolveKind()
[all …]
DIdentifierResolver.cpp71 for (DeclsTy::iterator I = Decls.end(); I != Decls.begin(); --I) { in RemoveDecl()
73 Decls.erase(I-1); in RemoveDecl()
DSemaStmt.cpp1278 llvm::SmallPtrSetImpl<VarDecl*> &Decls; member in __anoneb61cbcb0311::DeclExtractor
1284 DeclExtractor(Sema &S, llvm::SmallPtrSetImpl<VarDecl*> &Decls, in DeclExtractor() argument
1287 Decls(Decls), in DeclExtractor()
1348 Decls.insert(VD); in VisitDeclRefExpr()
1356 llvm::SmallPtrSetImpl<VarDecl*> &Decls; member in __anoneb61cbcb0311::DeclMatcher
1362 DeclMatcher(Sema &S, llvm::SmallPtrSetImpl<VarDecl*> &Decls, in DeclMatcher() argument
1364 Inherited(S.Context), Decls(Decls), FoundDecl(false) { in DeclMatcher()
1415 if (Decls.count(VD)) in VisitDeclRefExpr()
1433 llvm::SmallPtrSet<VarDecl*, 8> Decls; in CheckForLoopConditionalStatement() local
1435 DeclExtractor DE(S, Decls, Ranges); in CheckForLoopConditionalStatement()
[all …]
/external/boringssl/src/util/
Ddoc.go52 Decls []HeaderDecl member
388 if last := len(section.Decls) - 1; len(name) == 0 && len(comment) == 0 && last >= 0 {
389 section.Decls[last].Decl += "\n" + decl
412 section.Decls = append(section.Decls, HeaderDecl{
540 {{range .Decls}}
556 {{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()
/external/clang/include/clang/Serialization/
DASTReader.h499 ArrayRef<serialization::LocalDeclID> Decls; member
502 FileDeclsInfo(ModuleFile *Mod, ArrayRef<serialization::LocalDeclID> Decls) in FileDeclsInfo()
503 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
1739 SmallVectorImpl<Decl *> &Decls) override;
1745 SmallVectorImpl<Decl *> &Decls) override;
1813 SmallVectorImpl<const DeclaratorDecl *> &Decls) override;
1816 SmallVectorImpl<CXXConstructorDecl *> &Decls) override;
1818 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override;
1821 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override;
1845 SmallVectorImpl<Decl *> *Decls = nullptr);
/external/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDebugAbbrev.h25 std::vector<DWARFAbbreviationDeclaration> Decls; variable
/external/clang/lib/CodeGen/
DCGDeclCXX.cpp505 ArrayRef<llvm::Function *> Decls, in GenerateCXXGlobalInitFunc() argument
540 for (unsigned i = 0, e = Decls.size(); i != e; ++i) in GenerateCXXGlobalInitFunc()
541 if (Decls[i]) in GenerateCXXGlobalInitFunc()
542 EmitRuntimeCall(Decls[i]); in GenerateCXXGlobalInitFunc()

123