/external/llvm/lib/Fuzzer/ |
D | FuzzerIO.cpp | 30 Unit FileToVector(const std::string &Path) { in FileToVector() argument 31 std::ifstream T(Path); in FileToVector() 36 std::string FileToString(const std::string &Path) { in FileToString() argument 37 std::ifstream T(Path); in FileToString() 42 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument 43 std::ifstream T(Path); in CopyFileToErr() 48 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument 49 std::ofstream OF(Path); in WriteToFile() 53 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V) { in ReadDirToVectorOfUnits() argument 54 for (auto &X : ListFilesInDir(Path)) in ReadDirToVectorOfUnits() [all …]
|
D | FuzzerInternal.h | 26 std::string FileToString(const std::string &Path); 27 Unit FileToVector(const std::string &Path); 28 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V); 29 void WriteToFile(const Unit &U, const std::string &Path); 30 void CopyFileToErr(const std::string &Path); 67 void ReadDir(const std::string &Path) { in ReadDir() argument 68 ReadDirToVectorOfUnits(Path.c_str(), &Corpus); in ReadDir()
|
/external/llvm/lib/Support/ |
D | Path.cpp | 234 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/Tooling/ |
D | FileMatchTrie.cpp | 59 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/clang/lib/AST/ |
D | CXXInheritance.cpp | 30 for (paths_iterator Path = begin(), PathEnd = end(); Path != PathEnd; ++Path) in ComputeDeclsFound() local 31 Decls.insert(Path->Decls.front()); in ComputeDeclsFound() 321 Paths.Paths.remove_if([&Paths](const CXXBasePath &Path) { in lookupInBases() argument 322 for (const CXXBasePathElement &PE : Path) { in lookupInBases() 355 CXXBasePath &Path, in FindBaseClass() argument 364 CXXBasePath &Path, in FindVirtualBaseClass() argument 374 CXXBasePath &Path, in FindTagMember() argument 380 for (Path.Decls = BaseRecord->lookup(N); in FindTagMember() 381 !Path.Decls.empty(); in FindTagMember() 382 Path.Decls = Path.Decls.slice(1)) { in FindTagMember() [all …]
|
D | APValue.cpp | 43 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/Basic/ |
D | VirtualFileSystem.cpp | 153 ErrorOr<Status> status(const Twine &Path) override; 154 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override; 159 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() argument 161 if (std::error_code EC = sys::fs::status(Path, RealStatus)) in status() 164 Result.setName(Path.str()); in status() 185 std::string Path; member in __anon393354d90311::RealFSDirIter 189 : Path(_Path.str()), Iter(Path, EC) { in RealFSDirIter() 234 ErrorOr<Status> OverlayFileSystem::status(const Twine &Path) { in status() argument 237 ErrorOr<Status> Status = (*I)->status(Path); in status() 245 OverlayFileSystem::openFileForRead(const llvm::Twine &Path) { in openFileForRead() argument [all …]
|
D | FileSystemStatCache.cpp | 54 bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile, in get() argument 62 R = Cache->getStat(Path, Data, isFile, F, FS); in get() 66 llvm::ErrorOr<vfs::Status> Status = FS.status(Path); in get() 81 auto OwnedFile = FS.openFileForRead(Path); in get() 121 MemorizeStatCalls::getStat(const char *Path, FileData &Data, bool isFile, in getStat() argument 123 LookupResult Result = statChained(Path, Data, isFile, F, FS); in getStat() 133 if (!Data.IsDirectory || llvm::sys::path::is_absolute(Path)) in getStat() 134 StatCalls[Path] = Data; in getStat()
|
D | Version.cpp | 93 std::string Path = getClangRepositoryPath(); in getClangFullRepositoryVersion() local 95 if (!Path.empty() || !Revision.empty()) { in getClangFullRepositoryVersion() 97 if (!Path.empty()) in getClangFullRepositoryVersion() 98 OS << Path; in getClangFullRepositoryVersion() 100 if (!Path.empty()) in getClangFullRepositoryVersion()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | PathTest.java | 3 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()
|
D | CanvasTest.java | 76 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/unittests/Tooling/ |
D | RewriterTestContext.h | 63 SmallString<1024> Path; in createOnDiskFile() local 65 std::error_code EC = llvm::sys::fs::createTemporaryFile(Name, "", FD, Path); in createOnDiskFile() 72 const FileEntry *File = Files.getFile(Path); in createOnDiskFile() 76 TemporaryFiles.insert(std::make_pair(Name, Path.str())).first->second; in createOnDiskFile() 77 assert(Found == Path); in createOnDiskFile() 98 std::string Path = TemporaryFiles.lookup(Name); in getFileContentFromDisk() local 99 assert(!Path.empty()); in getFileContentFromDisk() 105 auto FileBuffer = Files.getBufferForFile(Path); in getFileContentFromDisk()
|
/external/llvm/include/llvm/Support/ |
D | FileSystem.h | 364 std::error_code access(const Twine &Path, AccessMode Mode); 370 inline bool exists(const Twine &Path) { in exists() argument 371 return !access(Path, AccessMode::Exist); in exists() 378 inline bool can_execute(const Twine &Path) { in can_execute() argument 379 return !access(Path, AccessMode::Execute); in can_execute() 386 inline bool can_write(const Twine &Path) { in can_write() argument 387 return !access(Path, AccessMode::Write); in can_write() 437 inline bool is_directory(const Twine &Path) { in is_directory() argument 439 return !is_directory(Path, Result) && Result; in is_directory() 459 inline bool is_regular_file(const Twine &Path) { in is_regular_file() argument [all …]
|
/external/emma/ant/ant14/com/vladium/emma/ |
D | emmajavaTask.java | 30 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/ |
D | FileManagerTest.cpp | 31 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()
|
D | VirtualFileSystemTest.cpp | 35 ErrorOr<vfs::Status> status(const Twine &Path) override { in status() argument 37 FilesAndDirs.find(Path.str()); in status() 43 openFileForRead(const Twine &Path) override { in openFileForRead() argument 50 std::string Path; member 52 if (Path.size() < S.size() && S.find(Path) == 0) { in isInPath() 54 if (LastSep == Path.size() || LastSep == Path.size()-1) in isInPath() 62 Path(_Path.str()) { in DirIterImpl() 90 void addEntry(StringRef Path, const vfs::Status &Status) { in addEntry() argument 91 FilesAndDirs[Path] = Status; in addEntry() 94 void addRegularFile(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addRegularFile() argument [all …]
|
/external/fonttools/Windows/ |
D | fonttools-win-setup.iss | 63 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/clang/include/clang/Basic/ |
D | FileSystemStatCache.h | 71 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/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/Misc/ |
D | Stats.cs | 41 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/lib/CodeGen/ |
D | Analysis.cpp | 398 SmallVectorImpl<unsigned> &Path) { in advanceToNextLeafType() argument 401 while (!Path.empty() && !indexReallyValid(SubTypes.back(), Path.back() + 1)) { in advanceToNextLeafType() 402 Path.pop_back(); in advanceToNextLeafType() 407 if (Path.empty()) in advanceToNextLeafType() 412 ++Path.back(); in advanceToNextLeafType() 413 Type *DeeperType = SubTypes.back()->getTypeAtIndex(Path.back()); in advanceToNextLeafType() 420 Path.push_back(0); in advanceToNextLeafType() 440 SmallVectorImpl<unsigned> &Path) { in firstRealType() argument 447 Path.push_back(0); in firstRealType() 453 if (Path.empty()) in firstRealType() [all …]
|
/external/llvm/unittests/Support/ |
D | Path.cpp | 52 TEST(Support, Path) { in TEST() argument 152 SmallString<64> Path(StringRef("c/d/e/foo.txt")); in TEST() local 157 StringRef(Path).split(ExpectedPathComponents, "/"); in TEST() 159 for (path::const_iterator I = path::begin(Path), E = path::end(Path); I != E; in TEST() 172 SmallString<64> Path(StringRef(".c/.d/../.")); in TEST() local 177 StringRef(Path).split(ExpectedPathComponents, "/"); in TEST() 179 for (path::const_iterator I = path::begin(Path), E = path::end(Path); I != E; in TEST() 192 SmallString<64> Path(StringRef("/c/d/e/foo.txt")); in TEST() local 197 StringRef(Path).split(ExpectedPathComponents, "/"); in TEST() 202 for (path::const_iterator I = path::begin(Path), E = path::end(Path); I != E; in TEST() [all …]
|
/external/clang/lib/Frontend/ |
D | CompilerInstance.cpp | 394 StringRef Path, bool DisablePCHValidation, bool AllowPCHWithCompilerErrors, in createPCHExternalASTSource() argument 398 Path, getHeaderSearchOpts().Sysroot, DisablePCHValidation, in createPCHExternalASTSource() 405 StringRef Path, const std::string &Sysroot, bool DisablePCHValidation, in createPCHExternalASTSource() argument 424 switch (Reader->ReadAST(Path, in createPCHExternalASTSource() 610 SmallString<128> Path(InFile); in createOutputFile() local 611 llvm::sys::path::replace_extension(Path, Extension); in createOutputFile() 612 OutFile = Path.str(); in createOutputFile() 1373 ModuleIdPath Path, in loadModule() argument 1377 StringRef ModuleName = Path[0].first->getName(); in loadModule() 1378 SourceLocation ModuleNameLoc = Path[0].second; in loadModule() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 68 SmallString<128> Path(Filename); in RewriteFilename() local 69 llvm::sys::path::replace_extension(Path, in RewriteFilename() 70 NewSuffix + llvm::sys::path::extension(Path)); in RewriteFilename() 71 return Path.str(); in RewriteFilename() 78 SmallString<128> Path; in RewriteFilename() local 81 Path); in RewriteFilename() 82 return Path.str(); in RewriteFilename()
|
/external/llvm/tools/llvm-symbolizer/ |
D | LLVMSymbolize.cpp | 251 const std::string &Path, const std::string &Basename) { in getDarwinDWARFResourceForPath() argument 252 SmallString<16> ResourceName = StringRef(Path); in getDarwinDWARFResourceForPath() 253 if (sys::path::extension(Path) != ".dSYM") { in getDarwinDWARFResourceForPath() 261 static bool checkFileCRC(StringRef Path, uint32_t CRCHash) { in checkFileCRC() argument 263 MemoryBuffer::getFileOrSTDIN(Path); in checkFileCRC() 351 for (const auto &Path : Opts.DsymHints) { in lookUpDsymFile() local 352 DsymPaths.push_back(getDarwinDWARFResourceForPath(Path, Filename)); in lookUpDsymFile() 374 LLVMSymbolizer::getOrCreateObjects(const std::string &Path, in getOrCreateObjects() argument 376 const auto &I = ObjectPairForPathArch.find(std::make_pair(Path, ArchName)); in getOrCreateObjects() 381 ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(Path); in getOrCreateObjects() [all …]
|
/external/emma/ant/ant14/com/vladium/emma/instr/ |
D | instrTask.java | 15 import org.apache.tools.ant.types.Path; 84 public void setInstrpath (final Path path) in setInstrpath() 97 public Path createInstrpath () in createInstrpath() 100 m_instrpath = new Path (project); in createInstrpath() 174 private Path m_instrpath;
|