Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/external/llvm/lib/Fuzzer/
DFuzzerIO.cpp23 static long GetEpoch(const std::string &Path) { in GetEpoch() argument
25 if (stat(Path.c_str(), &St)) in GetEpoch()
51 Unit FileToVector(const std::string &Path) { in FileToVector() argument
52 std::ifstream T(Path); in FileToVector()
54 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
61 std::string FileToString(const std::string &Path) { in FileToString() argument
62 std::ifstream T(Path); in FileToString()
67 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
68 Printf("%s", FileToString(Path).c_str()); in CopyFileToErr()
71 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
[all …]
DFuzzerInternal.h29 std::string FileToString(const std::string &Path);
30 Unit FileToVector(const std::string &Path);
31 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V,
33 void WriteToFile(const Unit &U, const std::string &Path);
34 void CopyFileToErr(const std::string &Path);
110 void ReadDir(const std::string &Path, long *Epoch) { in ReadDir() argument
111 Printf("Loading corpus: %s\n", Path.c_str()); in ReadDir()
112 ReadDirToVectorOfUnits(Path.c_str(), &Corpus, Epoch); in ReadDir()
/external/llvm/lib/Support/
DPath.cpp234 i.Path = path; in begin()
242 i.Path = path; in end()
248 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
254 if (Position == Path.size()) { in operator ++()
267 if (is_separator(Path[Position])) { in operator ++()
275 Component = Path.substr(Position, 1); in operator ++()
280 while (Position != Path.size() && in operator ++()
281 is_separator(Path[Position])) { in operator ++()
286 if (Position == Path.size()) { in operator ++()
294 size_t end_pos = Path.find_first_of(separators, Position); in operator ++()
[all …]
/external/clang/lib/Basic/
DVirtualFileSystem.cpp101 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const { in makeAbsolute()
106 return llvm::sys::fs::make_absolute(WorkingDir.get(), Path); in makeAbsolute()
109 bool FileSystem::exists(const Twine &Path) { in exists() argument
110 auto Status = status(Path); in exists()
182 ErrorOr<Status> status(const Twine &Path) override;
183 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override;
187 std::error_code setCurrentWorkingDirectory(const Twine &Path) override;
191 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() argument
193 if (std::error_code EC = sys::fs::status(Path, RealStatus)) in status()
195 return Status::copyWithNewName(RealStatus, Path.str()); in status()
[all …]
DFileSystemStatCache.cpp43 bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile, in get() argument
51 R = Cache->getStat(Path, Data, isFile, F, FS); in get()
55 llvm::ErrorOr<vfs::Status> Status = FS.status(Path); in get()
70 auto OwnedFile = FS.openFileForRead(Path); in get()
110 MemorizeStatCalls::getStat(const char *Path, FileData &Data, bool isFile, in getStat() argument
112 LookupResult Result = statChained(Path, Data, isFile, F, FS); in getStat()
122 if (!Data.IsDirectory || llvm::sys::path::is_absolute(Path)) in getStat()
123 StatCalls[Path] = Data; in getStat()
/external/clang/lib/AST/
DCXXInheritance.cpp30 for (paths_iterator Path = begin(), PathEnd = end(); Path != PathEnd; ++Path) in ComputeDeclsFound() local
31 Decls.insert(Path->Decls.front()); in ComputeDeclsFound()
92 [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) { in isDerivedFrom() argument
93 return FindBaseClass(Specifier, Path, BaseDecl); in isDerivedFrom()
113 [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) { in isVirtuallyDerivedFrom() argument
114 return FindVirtualBaseClass(Specifier, Path, BaseDecl); in isVirtuallyDerivedFrom()
323 Paths.Paths.remove_if([&Paths](const CXXBasePath &Path) { in lookupInBases() argument
324 for (const CXXBasePathElement &PE : Path) { in lookupInBases()
357 CXXBasePath &Path, in FindBaseClass() argument
366 CXXBasePath &Path, in FindVirtualBaseClass() argument
[all …]
DAPValue.cpp43 LValuePathEntry Path[InlinePathSpace]; member
63 LValuePathEntry *getPath() { return hasPathPtr() ? PathPtr : Path; } in getPath()
65 return hasPathPtr() ? PathPtr : Path; in getPath()
81 PathElem Path[InlinePathSpace]; member
100 PathElem *getPath() { return hasPathPtr() ? PathPtr : Path; } in getPath()
102 return hasPathPtr() ? PathPtr : Path; in getPath()
438 ArrayRef<LValuePathEntry> Path = getLValuePath(); in printPretty() local
440 for (unsigned I = 0, N = Path.size(); I != N; ++I) { in printPretty()
445 BaseOrMemberType::getFromOpaqueValue(Path[I].BaseOrMember).getPointer(); in printPretty()
459 Out << '[' << Path[I].ArrayIndex << ']'; in printPretty()
[all …]
/external/clang/lib/Tooling/
DFileMatchTrie.cpp59 if (Path.empty()) { in insert()
61 Path = NewPath; in insert()
66 if (NewPath == Path) in insert()
70 StringRef(Path).drop_back(ConsumedLength))); in insert()
71 Children[Element].Path = Path; in insert()
104 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
105 return StringRef(Path); in findEquivalent()
139 if (Path.empty()) in getAll()
142 Results.push_back(StringRef(Path)); in getAll()
156 std::string Path; member in clang::tooling::FileMatchTrieNode
/external/llvm/lib/DebugInfo/Symbolize/
DSymbolize.cpp125 const std::string &Path, const std::string &Basename) { in getDarwinDWARFResourceForPath() argument
126 SmallString<16> ResourceName = StringRef(Path); in getDarwinDWARFResourceForPath()
127 if (sys::path::extension(Path) != ".dSYM") { in getDarwinDWARFResourceForPath()
135 static bool checkFileCRC(StringRef Path, uint32_t CRCHash) { in checkFileCRC() argument
137 MemoryBuffer::getFileOrSTDIN(Path); in checkFileCRC()
225 for (const auto &Path : Opts.DsymHints) { in lookUpDsymFile() local
226 DsymPaths.push_back(getDarwinDWARFResourceForPath(Path, Filename)); in lookUpDsymFile()
228 for (const auto &Path : DsymPaths) { in lookUpDsymFile() local
229 auto DbgObjOrErr = getOrCreateObject(Path, ArchName); in lookUpDsymFile()
242 ObjectFile *LLVMSymbolizer::lookUpDebuglinkObject(const std::string &Path, in lookUpDebuglinkObject() argument
[all …]
/external/vulkan-validation-layers/windowsRuntimeInstaller/
DConfigLayersAndVulkanDLL.ps197 Push-Location -Path $dir in UpdateVulkanSysFolder()
240 Get-ChildItem -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstal…
245 …$tmp=Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion…
274 …$rval=Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$regEntry -…
307 Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ExplicitLayers | Select-Object …
312 …Remove-ItemProperty -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLaye…
318 …Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers | S…
323 …Remove-ItemProperty -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\WOW6432Node\Khronos\Vulkan\…
336 …New-Item -Force -ErrorAction SilentlyContinue -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers |…
339 …New-ItemProperty -Path HKLM:\SOFTWARE\Khronos\Vulkan\ExplicitLayers -Name $mrVulkanDllInstallDir\B…
[all …]
/external/llvm/lib/LibDriver/
DLibDriver.cpp84 StringRef Path; in getSearchPaths() local
85 std::tie(Path, Env) = Env.split(';'); in getSearchPaths()
86 Ret.push_back(Path); in getSearchPaths()
94 SmallString<128> Path = Dir; in findInputFile() local
95 sys::path::append(Path, File); in findInputFile()
96 if (sys::fs::exists(Path)) in findInputFile()
97 return Path.str().str(); in findInputFile()
133 Optional<std::string> Path = findInputFile(Arg->getValue(), SearchPaths); in libDriverMain() local
134 if (!Path.hasValue()) { in libDriverMain()
138 Members.emplace_back(Saver.save(*Path)); in libDriverMain()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DPathTest.java3 import android.graphics.Path;
22 Path path = Robolectric.newInstanceOf(Path.class); in testGradTo()
30 Path path = Robolectric.newInstanceOf(Path.class); in testMoveTo()
42 Path path = Robolectric.newInstanceOf(Path.class); in testLineTo()
DCanvasTest.java76 Path path = new Path(); in drawPath_shouldRecordThePathAndThePaint()
92 Path path1 = new Path(); in drawPath_shouldAppendDescriptionToBitmap()
95 Path path2 = new Path(); in drawPath_shouldAppendDescriptionToBitmap()
/external/clang/include/clang/Basic/
DVirtualFileSystem.h162 recursive_directory_iterator(FileSystem &FS, const Twine &Path,
187 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
190 openFileForRead(const Twine &Path) = 0;
205 virtual std::error_code setCurrentWorkingDirectory(const Twine &Path) = 0;
210 bool exists(const Twine &Path);
223 std::error_code makeAbsolute(SmallVectorImpl<char> &Path) const;
251 llvm::ErrorOr<Status> status(const Twine &Path) override;
253 openFileForRead(const Twine &Path) override;
256 std::error_code setCurrentWorkingDirectory(const Twine &Path) override;
284 bool addFile(const Twine &Path, time_t ModificationTime,
[all …]
DFileSystemStatCache.h71 static bool get(const char *Path, FileData &Data, bool isFile,
95 virtual LookupResult getStat(const char *Path, FileData &Data, bool isFile,
99 LookupResult statChained(const char *Path, FileData &Data, bool isFile, in statChained() argument
102 return Next->getStat(Path, Data, isFile, F, FS); in statChained()
106 return get(Path, Data, isFile, F, nullptr, FS) ? CacheMissing : CacheExists; in statChained()
124 LookupResult getStat(const char *Path, FileData &Data, bool isFile,
/external/clang/unittests/Tooling/
DRewriterTestContext.h68 SmallString<1024> Path; in createOnDiskFile() local
70 std::error_code EC = llvm::sys::fs::createTemporaryFile(Name, "", FD, Path); in createOnDiskFile()
77 const FileEntry *File = Files.getFile(Path); in createOnDiskFile()
81 TemporaryFiles.insert(std::make_pair(Name, Path.str())).first->second; in createOnDiskFile()
82 assert(Found == Path); in createOnDiskFile()
103 std::string Path = TemporaryFiles.lookup(Name); in getFileContentFromDisk() local
104 assert(!Path.empty()); in getFileContentFromDisk()
110 auto FileBuffer = Files.getBufferForFile(Path); in getFileContentFromDisk()
/external/emma/ant/ant14/com/vladium/emma/
DemmajavaTask.java30 import org.apache.tools.ant.types.Path;
73 final Path libClasspath = m_libClasspath; in execute()
141 final Path srcpath = m_reportCfg.getSourcepath (); in execute()
264 public void setClasspath (final Path path) in setClasspath()
277 public Path createClasspath () in createClasspath()
280 m_classpath = new Path (project); in createClasspath()
357 public final void setLibclasspath (final Path classpath) in setLibclasspath()
368 m_libClasspath = new Path (project); in setLibclasspathRef()
452 public final void setSourcepath (final Path path) in setSourcepath()
462 public final Path createSourcepath () in createSourcepath()
[all …]
/external/clang/unittests/Basic/
DFileManagerTest.cpp31 void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) { in InjectFileOrDirectory() argument
33 Data.Name = Path; in InjectFileOrDirectory()
40 StatCalls[Path] = Data; in InjectFileOrDirectory()
45 void InjectFile(const char *Path, ino_t INode) { in InjectFile() argument
46 InjectFileOrDirectory(Path, INode, /*IsFile=*/true); in InjectFile()
50 void InjectDirectory(const char *Path, ino_t INode) { in InjectDirectory() argument
51 InjectFileOrDirectory(Path, INode, /*IsFile=*/false); in InjectDirectory()
55 LookupResult getStat(const char *Path, FileData &Data, bool isFile, in getStat() argument
58 if (StatCalls.count(Path) != 0) { in getStat()
59 Data = StatCalls[Path]; in getStat()
/external/fonttools/Windows/
Dfonttools-win-setup.iss63 pmAddToBeginning = $1; // Add dir to beginning of Path
64 pmAddToEnd = $2; // Add dir to end of Path
82 procedure SplitPath(Path: string; var Dirs: TStringList);
90 while (pos<=Length(Path)) do
92 if (Path[pos]<>';') then
93 s := s + Path[pos];
94 if ((Path[pos]=';') or (pos=Length(Path))) then
109 procedure ConcatPath(Dirs: TStringList; Quotes: boolean; var Path: string);
115 Path := '';
121 Path := Path + s;
[all …]
/external/llvm/include/llvm/Support/
DFileSystem.h381 std::error_code access(const Twine &Path, AccessMode Mode);
387 inline bool exists(const Twine &Path) { in exists() argument
388 return !access(Path, AccessMode::Exist); in exists()
395 bool can_execute(const Twine &Path);
401 inline bool can_write(const Twine &Path) { in can_write() argument
402 return !access(Path, AccessMode::Write); in can_write()
452 inline bool is_directory(const Twine &Path) { in is_directory() argument
454 return !is_directory(Path, Result) && Result; in is_directory()
474 inline bool is_regular_file(const Twine &Path) { in is_regular_file() argument
476 if (is_regular_file(Path, Result)) in is_regular_file()
[all …]
/external/llvm/lib/DebugInfo/PDB/
DPDB.cpp23 PDB_ErrorCode llvm::loadDataForPDB(PDB_ReaderType Type, StringRef Path, in loadDataForPDB() argument
27 return DIASession::createFromPdb(Path, Session); in loadDataForPDB()
32 PDB_ErrorCode llvm::loadDataForEXE(PDB_ReaderType Type, StringRef Path, in loadDataForEXE() argument
36 return DIASession::createFromExe(Path, Session); in loadDataForEXE()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/Misc/
DStats.cs41 using Path = System.IO.Path; typedef
119 Directory.CreateDirectory( Path.GetDirectoryName( absoluteFilename ) ); in WriteReport()
126 return personalFolder + Path.DirectorySeparatorChar + in GetAbsoluteFileName()
127 ANTLRWORKS_DIR + Path.DirectorySeparatorChar + in GetAbsoluteFileName()
/external/llvm/tools/dsymutil/
DMachOUtils.h24 std::string Arch, Path; member
25 ArchAndFilename(StringRef Arch, StringRef Path) : Arch(Arch), Path(Path) {} in ArchAndFilename()
/external/llvm/unittests/Support/
DPath.cpp57 TEST(Support, Path) { in TEST() argument
162 SmallString<64> Path(StringRef("c/d/e/foo.txt")); in TEST() local
167 StringRef(Path).split(ExpectedPathComponents, '/'); in TEST()
169 for (path::const_iterator I = path::begin(Path), E = path::end(Path); I != E; in TEST()
182 SmallString<64> Path(StringRef(".c/.d/../.")); in TEST() local
187 StringRef(Path).split(ExpectedPathComponents, '/'); in TEST()
189 for (path::const_iterator I = path::begin(Path), E = path::end(Path); I != E; in TEST()
202 SmallString<64> Path(StringRef("/c/d/e/foo.txt")); in TEST() local
207 StringRef(Path).split(ExpectedPathComponents, '/'); in TEST()
212 for (path::const_iterator I = path::begin(Path), E = path::end(Path); I != E; in TEST()
[all …]
/external/clang/lib/Frontend/
DCompilerInstance.cpp404 StringRef Path, bool DisablePCHValidation, bool AllowPCHWithCompilerErrors, in createPCHExternalASTSource() argument
408 Path, getHeaderSearchOpts().Sysroot, DisablePCHValidation, in createPCHExternalASTSource()
418 StringRef Path, StringRef Sysroot, bool DisablePCHValidation, in createPCHExternalASTSource() argument
439 switch (Reader->ReadAST(Path, in createPCHExternalASTSource()
627 SmallString<128> Path(InFile); in createOutputFile() local
628 llvm::sys::path::replace_extension(Path, Extension); in createOutputFile()
629 OutFile = Path.str(); in createOutputFile()
1377 ModuleIdPath Path, in loadModule() argument
1381 StringRef ModuleName = Path[0].first->getName(); in loadModule()
1382 SourceLocation ModuleNameLoc = Path[0].second; in loadModule()
[all …]

12345678910>>...22