| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ASTUnresolvedSet.h | 41 DeclsTy Decls; variable 45 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet() 50 iterator begin() { return iterator(Decls.begin()); } in begin() 51 iterator end() { return iterator(Decls.end()); } in end() 53 const_iterator begin() const { return const_iterator(Decls.begin()); } in begin() 54 const_iterator end() const { return const_iterator(Decls.end()); } in end() 57 Decls.push_back(DeclAccessPair::make(D, AS), C); in addDecl() 61 Decls.push_back(DeclAccessPair::makeLazy(ID.getRawValue(), AS), C); in addLazyDecl() 68 for (DeclsTy::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in replace() 78 if (I == Decls.size() - 1) in erase() [all …]
|
| H A D | DeclContextInternals.h | 34 using Decls = DeclListNode::Decls; variable 38 using DeclsAndHasExternalTy = llvm::PointerIntPair<Decls, 1, bool>; 45 template <typename Fn> DeclListNode::Decls *erase_if(Fn ShouldErase) { in erase_if() 46 Decls List = Data.getPointer(); in erase_if() 52 DeclListNode::Decls NewHead = nullptr; in erase_if() 53 DeclListNode::Decls *NewLast = nullptr; in erase_if() 54 DeclListNode::Decls *NewTail = &NewHead; in erase_if() 89 return (DeclListNode::Decls *)&Data; in erase_if() 113 Decls List = Data.getPointer(); in MaybeDeallocList() 173 void replaceExternalDecls(ArrayRef<NamedDecl*> Decls) { in replaceExternalDecls() argument [all …]
|
| H A D | DeclGroup.h | 36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls); 64 static DeclGroupRef Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument 68 return DeclGroupRef(Decls[0]); in Create() 69 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls)); in Create()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Lookup.h | 200 Ambiguity(std::move(Other.Ambiguity)), Decls(std::move(Other.Decls)), in LookupResult() 223 Decls = std::move(Other.Decls); 355 return Decls; in asUnresolvedSet() 358 iterator begin() const { return iterator(Decls.begin()); } in begin() 359 iterator end() const { return iterator(Decls.end()); } in end() 362 bool empty() const { return Decls.empty(); } in empty() 482 Decls.addDecl(D, AS); in addDecl() 489 Decls.append(Other.Decls.begin(), Other.Decls.end()); in addAllDecls() 504 Decls.empty()); in setNotFoundInCurrentInstantiation() 526 if (Decls.empty()) { in resolveKindAfterFilter() [all …]
|
| H A D | ExternalSemaSource.h | 116 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 D | MultiplexExternalSemaSource.h | 127 SmallVectorImpl<Decl *> &Decls) override; 264 SmallVectorImpl<const DeclaratorDecl*> &Decls) override; 274 SmallVectorImpl<CXXConstructorDecl*> &Decls) override; 283 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl*> &Decls) override; 292 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override; 348 llvm::SmallSetVector<Decl *, 4> &Decls) override;
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | FileIndexRecord.cpp | 20 llvm::stable_sort(Decls, in getDeclOccurrencesSortedByOffset() 26 return Decls; in getDeclOccurrencesSortedByOffset() 35 Decls.emplace_back(Roles, Offset, D, Relations); in addDeclOccurence() 42 Decls.emplace_back(Roles, Offset, Name, MI); in addMacroOccurence() 46 llvm::erase_if(Decls, [](const DeclOccurrence &D) { in removeHeaderGuardMacros() 55 for (auto &DclInfo : Decls) { in print()
|
| H A D | FileIndexRecord.h | 31 mutable std::vector<DeclOccurrence> Decls; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFDebugAbbrev.cpp | 24 Decls.clear(); in clear() 50 Decls.push_back(std::move(AbbrDecl)); in extract() 56 for (const auto &Decl : Decls) in dump() 64 for (const auto &Decl : Decls) { in getAbbreviationDeclaration() 70 if (AbbrCode < FirstAbbrCode || AbbrCode >= FirstAbbrCode + Decls.size()) in getAbbreviationDeclaration() 72 return &Decls[AbbrCode - FirstAbbrCode]; in getAbbreviationDeclaration() 78 Codes.reserve(Decls.size()); in getCodeRange() 79 for (const auto &Decl : Decls) in getCodeRange()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | MultiplexExternalSemaSource.cpp | 160 SmallVectorImpl<Decl *> &Decls){ in FindFileRegionDecls() argument 162 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls() 286 SmallVectorImpl<const DeclaratorDecl*> &Decls) { in ReadUnusedFileScopedDecls() argument 288 Sources[i]->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls() 292 SmallVectorImpl<CXXConstructorDecl*> &Decls) { in ReadDelegatingConstructors() argument 294 Sources[i]->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors() 298 SmallVectorImpl<TypedefNameDecl*> &Decls) { in ReadExtVectorDecls() argument 300 Sources[i]->ReadExtVectorDecls(Decls); in ReadExtVectorDecls() 304 llvm::SmallSetVector<Decl *, 4> &Decls) { in ReadDeclsToCheckForDeferredDiags() argument 306 Sources[i]->ReadDeclsToCheckForDeferredDiags(Decls); in ReadDeclsToCheckForDeferredDiags() [all …]
|
| H A D | HeuristicResolver.cpp | 100 QualType resolveDeclsToType(const std::vector<const NamedDecl *> &Decls, in resolveDeclsToType() argument 102 if (Decls.size() != 1) // Names an overload set -- just bail. in resolveDeclsToType() 104 if (const auto *TD = dyn_cast<TypeDecl>(Decls[0])) { in resolveDeclsToType() 107 if (const auto *VD = dyn_cast<ValueDecl>(Decls[0])) { in resolveDeclsToType() 298 auto Decls = in resolveMemberExpr() local 300 if (!Decls.empty()) in resolveMemberExpr() 301 return Decls; in resolveMemberExpr() 394 std::vector<const NamedDecl *> Decls = resolveExprToDecls(E); in resolveExprToType() local 395 if (!Decls.empty()) in resolveExprToType() 396 return resolveDeclsToType(Decls, Ctx); in resolveExprToType() [all …]
|
| H A D | SemaLookup.cpp | 333 assert(ResultKind != LookupResultKind::NotFound || Decls.size() == 0); in checkDebugAssumptions() 334 assert(ResultKind != LookupResultKind::Found || Decls.size() == 1); in checkDebugAssumptions() 335 assert(ResultKind != LookupResultKind::FoundOverloaded || Decls.size() > 1 || in checkDebugAssumptions() 336 (Decls.size() == 1 && in checkDebugAssumptions() 340 assert(ResultKind != LookupResultKind::Ambiguous || Decls.size() > 1 || in checkDebugAssumptions() 341 (Decls.size() == 1 && in checkDebugAssumptions() 488 unsigned N = Decls.size(); in resolveKind() 500 const NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind() 525 const NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind() 545 for (auto *OtherDecl : Decls) { in resolveKind() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ODRHash.cpp | 445 llvm::SmallVector<const Decl *, 16> Decls; in VisitObjCMethodDecl() local 448 Decls.push_back(SubDecl); in VisitObjCMethodDecl() 450 ID.AddInteger(Decls.size()); in VisitObjCMethodDecl() 451 for (auto SubDecl : Decls) in VisitObjCMethodDecl() 604 llvm::SmallVector<const Decl *, 16> Decls; in AddCXXRecordDecl() local 607 Decls.push_back(SubDecl); in AddCXXRecordDecl() 615 ID.AddInteger(Decls.size()); in AddCXXRecordDecl() 616 for (auto SubDecl : Decls) { in AddCXXRecordDecl() 642 llvm::SmallVector<const Decl *, 16> Decls; in AddRecordDecl() local 645 Decls.push_back(SubDecl); in AddRecordDecl() [all …]
|
| H A D | DeclGroup.cpp | 20 DeclGroup* DeclGroup::Create(ASTContext &C, Decl **Decls, unsigned NumDecls) { in Create() argument 24 new (Mem) DeclGroup(NumDecls, Decls); in Create()
|
| H A D | ASTImporterLookupTable.cpp | 105 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() local 107 Decls.insert(ND); in add() 112 DeclList &Decls = LookupTable[DC][Name]; in remove() local 113 bool EraseResult = Decls.remove(ND); in remove()
|
| H A D | ExternalASTMerger.cpp | 242 bool HasDeclOfSameType(ArrayRef<Candidate> Decls, const Candidate &C) { in HasDeclOfSameType() argument 245 return llvm::any_of(Decls, [&](const Candidate &D) { in HasDeclOfSameType() 476 llvm::SmallVector<NamedDecl *, 1> Decls; in FindExternalVisibleDeclsByName() local 503 Decls.reserve(Candidates.size()); in FindExternalVisibleDeclsByName() 517 Decls.push_back(ND); in FindExternalVisibleDeclsByName() 519 SetExternalVisibleDeclsForName(DC, Name, Decls); in FindExternalVisibleDeclsByName()
|
| H A D | DeclPrinter.cpp | 38 void ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls); 352 void DeclPrinter::ProcessDeclGroup(SmallVectorImpl<Decl*>& Decls) { in ProcessDeclGroup() argument 354 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation); in ProcessDeclGroup() 356 Decls.clear(); in ProcessDeclGroup() 455 SmallVector<Decl*, 2> Decls; in VisitDeclContext() local 488 if (!Decls.empty() && !CurDeclType.isNull()) { in VisitDeclContext() 491 cast<ElaboratedType>(BaseType)->getOwnedTagDecl() == Decls[0]) { in VisitDeclContext() 492 Decls.push_back(*D); in VisitDeclContext() 498 if (!Decls.empty()) in VisitDeclContext() 499 ProcessDeclGroup(Decls); in VisitDeclContext() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFDebugAbbrev.h | 28 std::vector<DWARFAbbreviationDeclaration> Decls; variable 44 return Decls.begin(); in begin() 48 return Decls.end(); in end()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTUtils.h | 116 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument 117 m_Source->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls() 419 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindFileRegionDecls() argument 421 Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); in FindFileRegionDecls() 548 llvm::SmallVectorImpl<const clang::DeclaratorDecl *> &Decls) override { in ReadUnusedFileScopedDecls() argument 550 Source->ReadUnusedFileScopedDecls(Decls); in ReadUnusedFileScopedDecls() 554 llvm::SmallVectorImpl<clang::CXXConstructorDecl *> &Decls) override { in ReadDelegatingConstructors() argument 556 Source->ReadDelegatingConstructors(Decls); in ReadDelegatingConstructors() 560 llvm::SmallVectorImpl<clang::TypedefNameDecl *> &Decls) override { in ReadExtVectorDecls() argument 562 Source->ReadExtVectorDecls(Decls); in ReadExtVectorDecls() [all …]
|
| H A D | ClangASTSource.h | 105 llvm::SmallVectorImpl<clang::Decl *> &Decls) override; 225 llvm::SmallVectorImpl<clang::Decl *> &Decls) override { in FindExternalLexicalDecls() argument 226 return m_original.FindExternalLexicalDecls(DC, IsKindWeWant, Decls); in FindExternalLexicalDecls()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | ModuleMapFile.h | 74 std::vector<Decl> Decls; member 147 std::vector<TopLevelDecl> Decls; member
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | RefCntblBaseVirtualDtorChecker.cpp | 189 Decls.insert(RD); in checkASTDecl() 231 llvm::SetVector<const CXXRecordDecl *> Decls; in checkASTDecl() member 238 for (auto *RD : visitor.Decls) { in checkASTDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseHLSL.cpp | 28 DeclGroupRef Decls = DG.get(); in validateDeclsInsideHLSLBuffer() local 31 for (DeclGroupRef::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) { in validateDeclsInsideHLSLBuffer()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTReader.h | 643 ArrayRef<serialization::unaligned_decl_id_t> Decls; member 647 ArrayRef<serialization::unaligned_decl_id_t> Decls) in FileDeclsInfo() 648 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo() 2212 SmallVectorImpl<Decl *> &Decls) override; 2218 SmallVectorImpl<Decl *> &Decls) override; 2290 SmallVectorImpl<const DeclaratorDecl *> &Decls) override; 2293 SmallVectorImpl<CXXConstructorDecl *> &Decls) override; 2295 void ReadExtVectorDecls(SmallVectorImpl<TypedefNameDecl *> &Decls) override; 2298 llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) override; 2301 llvm::SmallSetVector<Decl *, 4> &Decls) override; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | ModuleMapFile.cpp | 187 MMF.Decls.push_back(std::move(*EMD)); in parseTopLevelDecls() 195 MMF.Decls.push_back(std::move(*MD)); in parseTopLevelDecls() 417 MDecl.Decls.push_back(std::move(*SubDecl)); in parseModuleDecl() 1159 static void dumpDecls(ArrayRef<Decl> Decls, llvm::raw_ostream &out, int depth) { in dumpDecls() argument 1160 for (const auto &Decl : Decls) { in dumpDecls() 1229 dumpDecls(MD.Decls, out, depth + 1); in dumpModule() 1233 for (const auto &Decl : Decls) { in dump()
|