| /openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 30 : Key(E.getKey()), FilePath(E.getFilePath()), Error(E.getError()), in NormalizedAtomicChange() 41 std::string FilePath; member 57 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 72 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, in createReplacementsForHeaders() argument 160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText)); in createReplacementsForHeaders() 168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header)); in createReplacementsForHeaders() 183 combineReplacementsInChanges(llvm::StringRef FilePath, in combineReplacementsInChanges() argument 189 FilePath, R.getOffset(), R.getLength(), R.getReplacementText()))) in combineReplacementsInChanges() 203 FilePath = std::string(FE->getName()); in AtomicChange() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Tooling/Refactoring/ |
| H A D | AtomicChange.h | 49 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) in AtomicChange() argument 50 : Key(Key), FilePath(FilePath) {} in AtomicChange() 71 const std::string &getFilePath() const { return FilePath; } in getFilePath() 134 AtomicChange(std::string Key, std::string FilePath, std::string Error, 141 std::string FilePath; variable 185 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
| /openbsd-src/gnu/llvm/clang/include/clang/IndexSerialization/ |
| H A D | SerializablePathCollection.h | 60 struct FilePath { struct 64 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) in FilePath() argument 75 llvm::ArrayRef<FilePath> getFilePaths() const; 81 std::vector<FilePath> FilePaths; 107 ArrayRef<PathPool::FilePath> getFilePaths() const { in getFilePaths()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Tooling/ |
| H A D | ReplacementsYaml.h | 36 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR() 40 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 44 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR() 53 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | AllTUsExecution.h | 59 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 60 OverlayFiles[FilePath] = std::string(Content); in mapVirtualFile()
|
| H A D | StandaloneExecution.h | 76 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 77 Tool.mapVirtualFile(FilePath, Content); in mapVirtualFile()
|
| H A D | JSONCompilationDatabase.h | 68 loadFromFile(StringRef FilePath, std::string &ErrorMessage, 84 getCompileCommands(StringRef FilePath) const override;
|
| /openbsd-src/gnu/llvm/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 63 SmallString<128> FilePath(File.begin(), File.end()); in getRelativeIncludeName() local 64 FS.makeAbsolute(FilePath); in getRelativeIncludeName() 65 path::remove_dots(FilePath, true); in getRelativeIncludeName() 66 FilePath = path::convert_to_slash(FilePath); in getRelativeIncludeName() 67 File = FilePath; in getRelativeIncludeName() 378 StringRef FilePath = FIF.getFile(); in PrepareToExecuteAction() local 379 if (auto RelativeName = getRelativeIncludeName(CI, FilePath, &IsQuoted)) { in PrepareToExecuteAction() 395 HeaderContents += FilePath; in PrepareToExecuteAction() 397 KnownInputFiles.emplace_back(FilePath, true); in PrepareToExecuteAction()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | JMCInstrumenter.cpp | 82 SmallString<256> FilePath(SP.getDirectory()); in getFlagName() local 83 sys::path::append(FilePath, PathStyle, SP.getFilename()); in getFlagName() 84 sys::path::native(FilePath, PathStyle); in getFlagName() 85 sys::path::remove_dots(FilePath, /*remove_dot_dot=*/true, PathStyle); in getFlagName() 94 for (auto C : sys::path::filename(FilePath, PathStyle)) in getFlagName() 97 sys::path::remove_filename(FilePath, PathStyle); in getFlagName() 99 utohexstr(djbHash(FilePath), /*LowerCase=*/false, in getFlagName()
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Core/ |
| H A D | Diagnostic.cpp | 29 FilePath = std::string(Sources.getFilename(Loc)); in DiagnosticMessage() 34 if (!FilePath.empty()) in DiagnosticMessage() 41 FilePath = std::string(Sources.getFilename(Range.getBegin())); in FileByteRange() 42 if (!FilePath.empty()) { in FileByteRange()
|
| H A D | Replacement.cpp | 45 Replacement::Replacement() : FilePath(InvalidLocation) {} in Replacement() 47 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() argument 49 : FilePath(std::string(FilePath)), ReplacementRange(Offset, Length), in Replacement() 65 return FilePath != InvalidLocation; in isApplicable() 70 auto Entry = SM.getFileManager().getFile(FilePath); in apply() 90 Stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" in toString() 126 this->FilePath = std::string(Entry ? Entry->getName() : InvalidLocation); in setFromSourceLocation() 369 : MergeSecond(MergeSecond), Delta(D), FilePath(R.getFilePath()), in MergedReplacement() 419 Replacement asReplacement() const { return {FilePath, Offset, Length, Text}; } in asReplacement() 435 const StringRef FilePath; member in __anon9dc030840211::MergedReplacement
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | Process.cpp | 59 SmallString<128> FilePath(Dir); in FindInEnvPath() local 60 path::append(FilePath, FileName); in FindInEnvPath() 61 if (fs::exists(Twine(FilePath))) { in FindInEnvPath() 62 FoundPath = std::string(FilePath.str()); in FindInEnvPath()
|
| /openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/ |
| H A D | Cuda.cpp | 212 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; in CudaInstallationDetector() local 213 if (FS.exists(FilePath)) { in CudaInstallationDetector() 220 LibDeviceMap[GpuArchName] = FilePath; in CudaInstallationDetector() 228 StringRef FilePath = LI->path(); in CudaInstallationDetector() local 229 StringRef FileName = llvm::sys::path::filename(FilePath); in CudaInstallationDetector() 237 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector() 242 LibDeviceMap["sm_20"] = std::string(FilePath); in CudaInstallationDetector() 243 LibDeviceMap["sm_21"] = std::string(FilePath); in CudaInstallationDetector() 244 LibDeviceMap["sm_32"] = std::string(FilePath); in CudaInstallationDetector() 246 LibDeviceMap["sm_30"] = std::string(FilePath); in CudaInstallationDetector() [all …]
|
| H A D | NaCl.cpp | 216 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() local 226 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); in NaClToolChain() 227 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); in NaClToolChain() 232 file_paths.push_back(FilePath + "x86_64-nacl/lib"); in NaClToolChain() 233 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); in NaClToolChain() 238 file_paths.push_back(FilePath + "arm-nacl/lib"); in NaClToolChain() 239 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); in NaClToolChain() 244 file_paths.push_back(FilePath + "mipsel-nacl/lib"); in NaClToolChain() 245 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib"); in NaClToolChain()
|
| H A D | AMDGPU.cpp | 85 StringRef FilePath = LI->path(); in scanLibDevicePath() local 86 StringRef FileName = llvm::sys::path::filename(FilePath); in scanLibDevicePath() 98 OCML = FilePath; in scanLibDevicePath() 100 OCKL = FilePath; in scanLibDevicePath() 102 OpenCL = FilePath; in scanLibDevicePath() 104 HIP = FilePath; in scanLibDevicePath() 106 AsanRTL = FilePath; in scanLibDevicePath() 108 FiniteOnly.Off = FilePath; in scanLibDevicePath() 110 FiniteOnly.On = FilePath; in scanLibDevicePath() 112 DenormalsAreZero.On = FilePath; in scanLibDevicePath() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/ |
| H A D | Refactoring.cpp | 78 const std::string &FilePath = FileAndReplaces.first; in formatAndApplyAllReplacements() local 82 if (auto File = Files.getFile(FilePath)) in formatAndApplyAllReplacements() 88 auto CurStyle = format::getStyle(Style, FilePath, "LLVM"); in formatAndApplyAllReplacements()
|
| H A D | GuessTargetAndModeCompilationDatabase.cpp | 33 getCompileCommands(StringRef FilePath) const override { in getCompileCommands() 34 return addTargetAndMode(Base->getCompileCommands(FilePath)); in getCompileCommands()
|
| /openbsd-src/gnu/llvm/llvm/lib/Debuginfod/ |
| H A D | Debuginfod.cpp | 348 static bool hasELFMagic(StringRef FilePath) { in hasELFMagic() argument 350 std::error_code EC = identify_magic(FilePath, Type); in hasELFMagic() 373 std::string FilePath; in findBinaries() local 382 FilePath = I->path(); in findBinaries() 387 if (!hasELFMagic(FilePath)) in findBinaries() 391 object::createBinary(FilePath); in findBinaries() 414 (void)DebugBinaries.try_emplace(IDString, std::move(FilePath)); in findBinaries() 417 (void)Binaries.try_emplace(IDString, std::move(FilePath)); in findBinaries()
|
| H A D | HTTPServer.cpp | 31 bool llvm::streamFile(HTTPServerRequest &Request, StringRef FilePath) { in streamFile() argument 32 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead(FilePath); in streamFile() 39 MemoryBuffer::getOpenFile(*FDOrErr, FilePath, in streamFile()
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/ |
| H A D | FileManager.cpp | 574 SmallString<128> FilePath(Filename); in getBufferForFileImpl() local 575 FixupRelativePath(FilePath); in getBufferForFileImpl() 576 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator, in getBufferForFileImpl() 594 SmallString<128> FilePath(Path); in getStatValue() local 595 FixupRelativePath(FilePath); in getStatValue() 597 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, in getStatValue() 604 SmallString<128> FilePath(Path); in getNoncachedStatValue() local 605 FixupRelativePath(FilePath); in getNoncachedStatValue() 607 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Tooling/Core/ |
| H A D | Diagnostic.h | 35 std::string FilePath; member 55 std::string FilePath; member
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-ifs/ |
| H A D | llvm-ifs.cpp | 138 readInputFile(std::optional<FileFormat> &InputFormat, StringRef FilePath) { in readInputFile() argument 141 MemoryBuffer::getFileOrSTDIN(FilePath, /*IsText=*/true); in readInputFile() 144 FilePath.data()); in readInputFile() 185 FilePath.data()), in readInputFile() 261 static Error writeIFS(StringRef FilePath, IFSStub &Stub, bool WriteIfChanged) { in writeIFS() argument 272 MemoryBuffer::getFile(FilePath)) { in writeIFS() 281 raw_fd_ostream Out(FilePath, SysErr); in writeIFS() 284 FilePath.data()); in writeIFS()
|
| /openbsd-src/gnu/llvm/llvm/lib/ProfileData/ |
| H A D | InstrProfCorrelator.cpp | 173 io.mapOptional("File", P.FilePath); in mapping() 333 auto FilePath = FnDie.getDeclFile( in correlateProfileDataImpl() local 335 if (!FilePath.empty()) in correlateProfileDataImpl() 336 P.FilePath = FilePath; in correlateProfileDataImpl()
|
| /openbsd-src/gnu/llvm/clang/tools/clang-format-vs/ClangFormat/ |
| H A D | Vsix.cs | 86 return Directory.GetParent(document.FilePath).ToString(); in GetDocumentParent() 93 return GetTextDocument(view)?.FilePath; in GetDocumentPath()
|
| /openbsd-src/gnu/llvm/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 657 static Error writeELFBinaryToFile(StringRef FilePath, const IFSStub &Stub, in writeELFBinaryToFile() argument 666 MemoryBuffer::getFile(FilePath)) { in writeELFBinaryToFile() 677 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile() 681 " when trying to open `" + FilePath + in writeELFBinaryToFile() 712 Error writeBinaryStub(StringRef FilePath, const IFSStub &Stub, in writeBinaryStub() argument 719 return writeELFBinaryToFile<ELF32LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 721 return writeELFBinaryToFile<ELF32BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 725 return writeELFBinaryToFile<ELF64LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 727 return writeELFBinaryToFile<ELF64BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub()
|