/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | CXXInheritance.cpp | 47 Paths.clear(); in clear() 58 Paths.swap(Other.Paths); in swap() 68 CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false, in isDerivedFrom() local 70 return isDerivedFrom(Base, Paths); in isDerivedFrom() 74 CXXBasePaths &Paths) const { in isDerivedFrom() 78 Paths.setOrigin(const_cast<CXXRecordDecl*>(this)); in isDerivedFrom() 86 Paths); in isDerivedFrom() 93 CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false, in isVirtuallyDerivedFrom() local 99 Paths.setOrigin(const_cast<CXXRecordDecl*>(this)); in isVirtuallyDerivedFrom() 106 Paths); in isVirtuallyDerivedFrom() [all …]
|
H A D | VTableBuilder.cpp | 261 CXXBasePaths Paths(/*FindAmbiguities=*/false, in ComputeBaseOffset() local 264 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeBaseOffset() 267 return ComputeBaseOffset(Context, DerivedRD, Paths.front()); in ComputeBaseOffset() 1249 CXXBasePaths Paths(/*FindAmbiguities=*/true, in ComputeThisAdjustmentBaseOffset() local 1252 if (!DerivedRD->isDerivedFrom(BaseRD, Paths)) in ComputeThisAdjustmentBaseOffset() 1257 for (const CXXBasePath &Path : Paths) { in ComputeThisAdjustmentBaseOffset() 2791 CXXBasePaths Paths; in ComputeThisOffset() local 2796 Paths); in ComputeThisOffset() 2807 for (const CXXBasePath &Path : Paths) { in ComputeThisOffset() 3368 static bool rebucketPaths(VPtrInfoVector &Paths); [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Lookup.h | 201 Paths(std::move(Other.Paths)), in LookupResult() 215 Other.Paths = nullptr; in LookupResult() 224 Paths = std::move(Other.Paths); 240 Other.Paths = nullptr; 251 if (Paths) deletePaths(Paths); in ~LookupResult() 367 return Paths; in getBasePaths() 530 if (Paths) { in resolveKindAfterFilter() 531 deletePaths(Paths); in resolveKindAfterFilter() 532 Paths = nullptr; in resolveKindAfterFilter() 550 } else if (Paths) { in resolveKindAfterFilter() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | FileCollector.cpp | 106 PathStorage Paths; in canonicalize() local 107 Paths.VirtualPath = SrcPath; in canonicalize() 108 makeAbsolute(Paths.VirtualPath); in canonicalize() 113 Paths.CopyFrom = Paths.VirtualPath; in canonicalize() 114 updateWithRealPath(Paths.CopyFrom); in canonicalize() 117 sys::path::remove_dots(Paths.VirtualPath, /*remove_dot_dot=*/true); in canonicalize() 119 return Paths; in canonicalize() 123 PathCanonicalizer::PathStorage Paths = Canonicalizer.canonicalize(SrcPath); in addFileImpl() local 126 sys::path::append(DstPath, sys::path::relative_path(Paths.CopyFrom)); in addFileImpl() 133 addFileToMapping(Paths.VirtualPath, DstPath); in addFileImpl()
|
H A D | SpecialCaseList.cpp | 82 SpecialCaseList::create(const std::vector<std::string> &Paths, in create() 85 if (SCL->createInternal(Paths, FS, Error)) 99 SpecialCaseList::createOrDie(const std::vector<std::string> &Paths, in createInternal() 102 if (auto SCL = create(Paths, FS, Error)) in createInternal() 107 bool SpecialCaseList::createInternal(const std::vector<std::string> &Paths, in createInternal() 109 for (const auto &Path : Paths) { in createInternal() 70 create(const std::vector<std::string> & Paths,llvm::vfs::FileSystem & FS,std::string & Error) create() argument 87 createOrDie(const std::vector<std::string> & Paths,llvm::vfs::FileSystem & FS) createOrDie() argument 95 createInternal(const std::vector<std::string> & Paths,vfs::FileSystem & VFS,std::string & Error) createInternal() argument
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | OHOS.cpp | 158 path_list &Paths = getFilePaths(); in OHOS() local 162 Paths); in OHOS() 166 Paths); in OHOS() 171 Paths); in OHOS() 287 path_list Paths; in getRuntimePaths() local 294 Paths.push_back(P.c_str()); in getRuntimePaths() 299 Paths.push_back(P.c_str()); in getRuntimePaths() 306 Paths.push_back(P.c_str()); in getRuntimePaths() 308 return Paths; in getRuntimePaths() 408 ToolChain::path_list Paths; in getArchSpecificLibPaths() local [all …]
|
H A D | Linux.cpp | 305 path_list &Paths = getFilePaths(); in Linux() local 313 Generic_GCC::AddMultilibPaths(D, SysRoot, "libo32", MultiarchTriple, Paths); in Linux() 314 addPathIfExists(D, concat(SysRoot, "/libo32"), Paths); in Linux() 315 addPathIfExists(D, concat(SysRoot, "/usr/libo32"), Paths); in Linux() 317 Generic_GCC::AddMultilibPaths(D, SysRoot, OSLibDir, MultiarchTriple, Paths); in Linux() 319 addPathIfExists(D, concat(SysRoot, "/lib", MultiarchTriple), Paths); in Linux() 320 addPathIfExists(D, concat(SysRoot, "/lib/..", OSLibDir), Paths); in Linux() 330 Paths); in Linux() 333 addPathIfExists(D, concat(SysRoot, "/usr/lib", MultiarchTriple), Paths); in Linux() 339 addPathIfExists(D, concat(SysRoot, "/usr", OSLibDir), Paths); in Linux() [all …]
|
H A D | RISCVToolchain.cpp | 28 ToolChain::path_list &Paths) { in addMultilibsFilePaths() argument 31 addPathIfExists(D, InstallPath + Path, Paths); in addMultilibsFilePaths() 57 path_list &Paths = getFilePaths(); in RISCVToolChain() local 60 GCCInstallation.getInstallPath(), Paths); in RISCVToolChain()
|
H A D | Solaris.cpp | 316 path_list &Paths = getFilePaths(); in Solaris() local 323 Paths); in Solaris() 324 addPathIfExists(D, GCCInstallation.getParentLibPath() + LibSuffix, Paths); in Solaris() 330 addPathIfExists(D, D.Dir + "/../lib", Paths); in Solaris() 332 addPathIfExists(D, D.SysRoot + "/usr/lib" + LibSuffix, Paths); in Solaris()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | ModuleDependencyCollector.cpp | 145 llvm::FileCollector::PathCanonicalizer::PathStorage Paths = in copyToRoot() local 153 path::append(CacheDst, path::relative_path(Paths.CopyFrom)); in copyToRoot() 160 Paths.CopyFrom = Dst; in copyToRoot() 167 if (std::error_code EC = fs::copy_file(Paths.CopyFrom, CacheDst)) in copyToRoot() 175 addFileMapping(Paths.VirtualPath, CacheDst); in copyToRoot()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Automaton.h | 80 SmallVector<NfaPath, 4> Paths; 123 Paths.clear(); 140 Paths.clear(); 148 Paths.push_back(std::move(P)); in getPaths() 150 return Paths; in getPaths() 82 SmallVector<NfaPath, 4> Paths; global() variable
|
H A D | SpecialCaseList.h | 74 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &FS, 83 createOrDie(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &FS); 109 bool createInternal(const std::vector<std::string> &Paths,
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageReport.cpp | 139 unsigned getNumRedundantPathComponents(ArrayRef<std::string> Paths) { in getNumRedundantPathComponents() argument 142 SmallVector<StringRef, 8> FirstPathComponents{sys::path::begin(Paths[0]), in getNumRedundantPathComponents() 143 sys::path::end(Paths[0])}; in getNumRedundantPathComponents() 146 for (unsigned I = 1, E = Paths.size(); NumRedundant > 0 && I < E; ++I) { in getNumRedundantPathComponents() 147 StringRef Path = Paths[I]; in getNumRedundantPathComponents() 169 unsigned getRedundantPrefixLen(ArrayRef<std::string> Paths) { in getRedundantPrefixLen() argument 171 if (Paths.size() <= 1) in getRedundantPrefixLen() 175 unsigned NumRedundant = getNumRedundantPathComponents(Paths); in getRedundantPrefixLen() 176 auto Component = sys::path::begin(Paths[0]); in getRedundantPrefixLen() 189 unsigned getRedundantPrefixLen(ArrayRef<StringRef> Paths, unsigned LCP) { in getRedundantPrefixLen() argument [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | RefCntblBaseVirtualDtorChecker.cpp | 248 CXXBasePaths Paths; in visitCXXRecordDecl() local 249 Paths.setOrigin(C); in visitCXXRecordDecl() 250 hasRef = hasRef || C->lookupInBases(hasPublicRefInBase, Paths, in visitCXXRecordDecl() 252 hasDeref = hasDeref || C->lookupInBases(hasPublicDerefInBase, Paths, in visitCXXRecordDecl() 273 Paths, /*LookupInDependent =*/true)) in visitCXXRecordDecl()
|
H A D | PtrTypesSemantics.cpp | 69 CXXBasePaths Paths; in isRefCountable() local 70 Paths.setOrigin(const_cast<CXXRecordDecl *>(R)); in isRefCountable() 83 hasRef = hasRef || R->lookupInBases(hasPublicRefInBase, Paths, in isRefCountable() 88 Paths.clear(); in isRefCountable() 98 hasDeref = hasDeref || R->lookupInBases(hasPublicDerefInBase, Paths, in isRefCountable()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | SanitizerSpecialCaseList.h | 35 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &VFS, 39 createOrDie(const std::vector<std::string> &Paths,
|
H A D | ProfileList.h | 48 ProfileList(ArrayRef<std::string> Paths, SourceManager &SM);
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemorySSA.cpp | 521 SmallVector<DefPath, 32> Paths; member in __anon72856b230511::ClobberWalker 596 auto UpwardDefsBegin = upward_defs_begin({Phi, Paths[PriorNode].Loc}, DT); in addSearches() 599 PausedSearches.push_back(Paths.size()); in addSearches() 600 Paths.emplace_back(P.second, P.first, PriorNode); in addSearches() 632 DefPath &Node = Paths[PathIndex]; in getBlockingAccess() 716 T &curNode() const { return W->Paths[*N]; } in curNode() 746 assert(!Paths.empty() && NP >= &Paths.front() && NP <= &Paths.back() && in defPathIndex() 748 return NP - &Paths.front(); in defPathIndex() 766 assert(Paths.empty() && VisitedPhis.empty() && in tryOptimizePhi() 769 Paths.emplace_back(Loc, Start, Phi, std::nullopt); in tryOptimizePhi() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCast.cpp | 1567 CXXBasePaths Paths(/*FindAmbiguities=*/true, /*RecordPaths=*/true, in TryLValueToRValueCast() local 1570 R->getPointeeType(), Paths)) in TryLValueToRValueCast() 1573 Self.BuildBasePathArray(Paths, BasePath); in TryLValueToRValueCast() 1668 CXXBasePaths Paths(/*FindAmbiguities=*/true, /*RecordPaths=*/true, in TryStaticDowncast() local 1670 if (!Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths)) { in TryStaticDowncast() 1698 if (Paths.isAmbiguous(SrcType.getUnqualifiedType())) { in TryStaticDowncast() 1703 if (!Paths.isRecordingPaths()) { in TryStaticDowncast() 1704 Paths.clear(); in TryStaticDowncast() 1705 Paths.setRecordingPaths(true); in TryStaticDowncast() 1706 Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths); in TryStaticDowncast() [all …]
|
H A D | SemaLookup.cpp | 343 assert((Paths != nullptr) == (ResultKind == Ambiguous && in checkDebugAssumptions() 350 void LookupResult::deletePaths(CXXBasePaths *Paths) { in deletePaths() argument 351 delete Paths; in deletePaths() 665 Paths = new CXXBasePaths; in setAmbiguousBaseSubobjects() 666 Paths->swap(P); in setAmbiguousBaseSubobjects() 667 addDeclsFromBasePaths(*Paths); in setAmbiguousBaseSubobjects() 673 Paths = new CXXBasePaths; in setAmbiguousBaseSubobjectTypes() 674 Paths->swap(P); in setAmbiguousBaseSubobjectTypes() 675 addDeclsFromBasePaths(*Paths); in setAmbiguousBaseSubobjectTypes() 683 if (Paths) Out << ", base paths present"; in print() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Debuginfod/ |
H A D | Debuginfod.h | 125 SmallVector<std::string, 1> Paths; variable 147 DebuginfodCollection(ArrayRef<StringRef> Paths, DebuginfodLog &Log,
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | Store.cpp | 342 CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/true, in evalBaseToDerived() local 344 if (MRClass->isDerivedFrom(TargetClass, Paths)) in evalBaseToDerived() 345 return evalDerivedToBase(loc::MemRegionVal(MR), Paths.front()); in evalBaseToDerived()
|
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/ |
H A D | Utils.cpp | 236 PathSeq llvm::MachO::getPathsForPlatform(const PathToPlatformSeq &Paths, in getPathsForPlatform() argument 239 for (const auto &[Path, CurrP] : Paths) { in getPathsForPlatform()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TextAPI/ |
H A D | Utils.h | 96 PathSeq getPathsForPlatform(const PathToPlatformSeq &Paths,
|
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/ |
H A D | Program.inc | 39 ArrayRef<StringRef> Paths) { 47 if (!Paths.empty()) { 48 PathStorage.reserve(Paths.size() * MAX_PATH); 49 for (unsigned i = 0; i < Paths.size(); ++i) { 52 StringRef P = Paths[i];
|