Home
last modified time | relevance | path

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

12345678

/minix3/external/bsd/llvm/dist/clang/lib/Tooling/
H A DFileMatchTrie.cpp57 if (Path.empty()) { in insert()
59 Path = NewPath; in insert()
64 if (NewPath == Path) in insert()
68 StringRef(Path).drop_back(ConsumedLength))); in insert()
69 Children[Element].Path = Path; in insert()
102 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
103 return StringRef(Path); in findEquivalent()
137 if (Path.empty()) in getAll()
140 Results.push_back(StringRef(Path)); in getAll()
154 std::string Path; member in clang::tooling::FileMatchTrieNode
/minix3/usr.bin/make/
H A Ddir.c233 static Path *dot; /* contents of current directory */
234 static Path *cur; /* contents of current directory, if not dot */
235 static Path *dotLast; /* a fake path entry indicating we need to
249 static int DirMatchFiles(const char *, Path *, Lst);
254 static char *DirLookup(Path *, const char *, const char *, Boolean);
255 static char *DirLookupSubdir(Path *, const char *);
257 static char *DirLookupAbs(Path *, const char *, const char *);
280 dotLast = bmake_malloc(sizeof(Path)); in Dir_Init()
293 Path *p; in Dir_InitCur()
393 Path *p; in Dir_SetPATH()
[all …]
H A Ddir.h81 typedef struct Path { struct
87 } Path; argument
99 Path *Dir_AddDir(Lst, const char *);
/minix3/external/bsd/llvm/dist/llvm/lib/Support/
H A DPath.cpp242 i.Path = path; in begin()
250 i.Path = path; in end()
256 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
262 if (Position == Path.size()) { in operator ++()
275 if (is_separator(Path[Position])) { in operator ++()
283 Component = Path.substr(Position, 1); in operator ++()
288 while (Position != Path.size() && in operator ++()
289 is_separator(Path[Position])) { in operator ++()
294 if (Position == Path.size()) { in operator ++()
302 size_t end_pos = Path.find_first_of(separators, Position); in operator ++()
[all …]
H A DSpecialCaseList.cpp51 std::unique_ptr<SpecialCaseList> SpecialCaseList::create(StringRef Path, in create() argument
53 if (Path.empty()) in create()
56 MemoryBuffer::getFile(Path); in create()
58 Error = (Twine("Can't open file '") + Path + "': " + EC.message()).str(); in create()
72 std::unique_ptr<SpecialCaseList> SpecialCaseList::createOrDie(StringRef Path) { in createOrDie() argument
74 if (auto SCL = create(Path, Error)) in createOrDie()
H A DIntervalMap.cpp19 void Path::replaceRoot(void *Root, unsigned Size, IdxPair Offsets) { in replaceRoot()
25 NodeRef Path::getLeftSibling(unsigned Level) const { in getLeftSibling()
48 void Path::moveLeft(unsigned Level) { in moveLeft()
75 NodeRef Path::getRightSibling(unsigned Level) const { in getRightSibling()
98 void Path::moveRight(unsigned Level) { in moveRight()
/minix3/external/bsd/llvm/dist/clang/lib/Basic/
H A DFileSystemStatCache.cpp54 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()
H A DVirtualFileSystem.cpp155 ErrorOr<Status> status(const Twine &Path) override;
156 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override;
161 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() argument
163 if (std::error_code EC = sys::fs::status(Path, RealStatus)) in status()
166 Result.setName(Path.str()); in status()
187 std::string Path; member in __anonfd6d57aa0311::RealFSDirIter
191 : Path(_Path.str()), Iter(Path, EC) { in RealFSDirIter()
236 ErrorOr<Status> OverlayFileSystem::status(const Twine &Path) { in status() argument
239 ErrorOr<Status> Status = (*I)->status(Path); in status()
247 OverlayFileSystem::openFileForRead(const llvm::Twine &Path) { in openFileForRead() argument
[all …]
H A DVersion.cpp93 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()
/minix3/external/bsd/llvm/dist/clang/unittests/Tooling/
H A DRewriterTestContext.h63 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()
/minix3/minix/drivers/power/acpi/namespace/
H A Dnsaccess.c301 char *Path = Pathname; in AcpiNsLookup() local
380 Path = ""; in AcpiNsLookup()
400 if (*Path == (UINT8) AML_ROOT_PREFIX) in AcpiNsLookup()
409 Path++; in AcpiNsLookup()
428 while (*Path == (UINT8) AML_PARENT_PREFIX) in AcpiNsLookup()
438 Path++; in AcpiNsLookup()
476 switch (*Path) in AcpiNsLookup()
500 Path++; in AcpiNsLookup()
514 Path++; in AcpiNsLookup()
515 NumSegments = (UINT32) (UINT8) *Path; in AcpiNsLookup()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DCXXInheritance.cpp30 for (paths_iterator Path = begin(), PathEnd = end(); Path != PathEnd; ++Path) in ComputeDeclsFound() local
31 Decls.insert(Path->Decls.front()); in ComputeDeclsFound()
367 CXXBasePath &Path, in FindBaseClass() argument
376 CXXBasePath &Path, in FindVirtualBaseClass() argument
386 CXXBasePath &Path, in FindTagMember() argument
392 for (Path.Decls = BaseRecord->lookup(N); in FindTagMember()
393 !Path.Decls.empty(); in FindTagMember()
394 Path.Decls = Path.Decls.slice(1)) { in FindTagMember()
395 if (Path.Decls.front()->isInIdentifierNamespace(IDNS_Tag)) in FindTagMember()
403 CXXBasePath &Path, in FindOrdinaryMember() argument
[all …]
H A 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 …]
/minix3/external/bsd/llvm/dist/clang/include/clang/Basic/
H A 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,
/minix3/minix/drivers/power/acpi/utilities/
H A Duteval.c75 char *Path, in AcpiUtEvaluateObject() argument
96 Info->RelativePathname = Path; in AcpiUtEvaluateObject()
106 AcpiUtGetNodeName (PrefixNode), Path)); in AcpiUtEvaluateObject()
111 PrefixNode, Path, Status); in AcpiUtEvaluateObject()
124 PrefixNode, Path, AE_NOT_EXIST); in AcpiUtEvaluateObject()
179 PrefixNode, Path, AE_TYPE); in AcpiUtEvaluateObject()
183 Path, AcpiUtGetObjectTypeName (Info->ReturnObject), in AcpiUtEvaluateObject()
/minix3/external/bsd/llvm/dist/clang/unittests/Basic/
H A DFileManagerTest.cpp30 void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) { in InjectFileOrDirectory() argument
32 Data.Name = Path; in InjectFileOrDirectory()
39 StatCalls[Path] = Data; in InjectFileOrDirectory()
44 void InjectFile(const char *Path, ino_t INode) { in InjectFile() argument
45 InjectFileOrDirectory(Path, INode, /*IsFile=*/true); in InjectFile()
49 void InjectDirectory(const char *Path, ino_t INode) { in InjectDirectory() argument
50 InjectFileOrDirectory(Path, INode, /*IsFile=*/false); in InjectDirectory()
54 LookupResult getStat(const char *Path, FileData &Data, bool isFile, in getStat() argument
57 if (StatCalls.count(Path) != 0) { in getStat()
58 Data = StatCalls[Path]; in getStat()
H A DVirtualFileSystemTest.cpp35 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 …]
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Support/
H A DFileSystem.h363 std::error_code access(const Twine &Path, AccessMode Mode);
369 inline bool exists(const Twine &Path) { in exists() argument
370 return !access(Path, AccessMode::Exist); in exists()
377 inline bool can_execute(const Twine &Path) { in can_execute() argument
378 return !access(Path, AccessMode::Execute); in can_execute()
385 inline bool can_write(const Twine &Path) { in can_write() argument
386 return !access(Path, AccessMode::Write); in can_write()
436 inline bool is_directory(const Twine &Path) { in is_directory() argument
438 return !is_directory(Path, Result) && Result; in is_directory()
458 inline bool is_regular_file(const Twine &Path) { in is_regular_file() argument
[all …]
/minix3/minix/drivers/power/acpi/dispatcher/
H A Ddswload.c155 char *Path; in AcpiDsLoad1BeginOp() local
184 Path = AcpiPsGetNextNamestring (&WalkState->ParserState); in AcpiDsLoad1BeginOp()
201 Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, in AcpiDsLoad1BeginOp()
211 AcpiDmAddOpToExternalList (Op, Path, ACPI_TYPE_DEVICE, 0, 0); in AcpiDsLoad1BeginOp()
212 Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, in AcpiDsLoad1BeginOp()
219 ACPI_ERROR_NAMESPACE (Path, Status); in AcpiDsLoad1BeginOp()
345 Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, in AcpiDsLoad1BeginOp()
379 ACPI_ERROR_NAMESPACE (Path, Status); in AcpiDsLoad1BeginOp()
402 Op->Named.Path = ACPI_CAST_PTR (UINT8, Path); in AcpiDsLoad1BeginOp()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DAnalysis.cpp399 SmallVectorImpl<unsigned> &Path) { in advanceToNextLeafType() argument
402 while (!Path.empty() && !indexReallyValid(SubTypes.back(), Path.back() + 1)) { in advanceToNextLeafType()
403 Path.pop_back(); in advanceToNextLeafType()
408 if (Path.empty()) in advanceToNextLeafType()
413 ++Path.back(); in advanceToNextLeafType()
414 Type *DeeperType = SubTypes.back()->getTypeAtIndex(Path.back()); in advanceToNextLeafType()
421 Path.push_back(0); in advanceToNextLeafType()
441 SmallVectorImpl<unsigned> &Path) { in firstRealType() argument
448 Path.push_back(0); in firstRealType()
454 if (Path.empty()) in firstRealType()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/Frontend/Rewrite/
H A DFrontendActions.cpp68 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()
/minix3/external/bsd/libc++/dist/libcxx/test/support/
H A Dplatform_support.h76 char Path[MAX_PATH+1]; in get_temp_file_name() local
78 do { } while (0 == GetTempPath(MAX_PATH+1, Path)); in get_temp_file_name()
79 do { } while (0 == GetTempFileName(Path, "libcxx", 0, FN)); in get_temp_file_name()
/minix3/external/bsd/llvm/dist/clang/include/clang/Lex/
H A DHeaderSearchOptions.h48 std::string Path; member
59 : Path(path), Group(group), IsFramework(isFramework), in Entry()
181 void AddPath(StringRef Path, frontend::IncludeDirGroup Group, in AddPath() argument
183 UserEntries.push_back(Entry(Path, Group, IsFramework, IgnoreSysRoot)); in AddPath()
/minix3/external/bsd/llvm/dist/clang/lib/Frontend/
H A DCompilerInstance.cpp397 StringRef Path, bool DisablePCHValidation, bool AllowPCHWithCompilerErrors, in createPCHExternalASTSource() argument
402 Path, getHeaderSearchOpts().Sysroot, DisablePCHValidation, in createPCHExternalASTSource()
411 StringRef Path, const std::string &Sysroot, bool DisablePCHValidation, in createPCHExternalASTSource() argument
429 switch (Reader->ReadAST(Path, in createPCHExternalASTSource()
613 SmallString<128> Path(InFile); in createOutputFile() local
614 llvm::sys::path::replace_extension(Path, Extension); in createOutputFile()
615 OutFile = Path.str(); in createOutputFile()
1331 ModuleIdPath Path, in loadModule() argument
1335 StringRef ModuleName = Path[0].first->getName(); in loadModule()
1336 SourceLocation ModuleNameLoc = Path[0].second; in loadModule()
[all …]
/minix3/external/bsd/llvm/dist/llvm/tools/llvm-symbolizer/
H A DLLVMSymbolize.cpp251 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 …]

12345678