Home
last modified time | relevance | path

Searched refs:FileName (Results 1 – 25 of 257) sorted by relevance

1234567891011

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOWindows.cpp137 std::string FileName = DirPlusFile(Dir, FindInfo.cFileName); in ListFilesInDirRecursive() local
146 ListFilesInDirRecursive(FileName, Epoch, V, false); in ListFilesInDirRecursive()
148 else if (IsFile(FileName, FindInfo.dwFileAttributes)) in ListFilesInDirRecursive()
149 V->push_back(FileName); in ListFilesInDirRecursive()
247 static size_t ParseDrive(const std::string &FileName, const size_t Offset, in ParseDrive() argument
249 if (Offset + 1 >= FileName.size() || FileName[Offset + 1] != ':') in ParseDrive()
251 if (Offset + 2 >= FileName.size() || !IsSeparator(FileName[Offset + 2])) { in ParseDrive()
262 static size_t ParseFileName(const std::string &FileName, const size_t Offset) { in ParseFileName() argument
264 const size_t End = FileName.size(); in ParseFileName()
265 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName()
[all …]
H A DFuzzerIOPosix.cpp134 std::string DirName(const std::string &FileName) { in DirName() argument
135 char *Tmp = new char[FileName.size() + 1]; in DirName()
136 memcpy(Tmp, FileName.c_str(), FileName.size() + 1); in DirName()
148 bool IsInterestingCoverageFile(const std::string &FileName) { in IsInterestingCoverageFile() argument
149 if (FileName.find("compiler-rt/lib/") != std::string::npos) in IsInterestingCoverageFile()
151 if (FileName.find("/usr/lib/") != std::string::npos) in IsInterestingCoverageFile()
153 if (FileName.find("/usr/include/") != std::string::npos) in IsInterestingCoverageFile()
155 if (FileName == "<null>") in IsInterestingCoverageFile()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp41 StringRef FileName, StringRef Code, const IncludeStyle &Style, in getOffsetAfterTokenSequence() argument
44 SourceManagerForFile VirtualSM(FileName, Code); in getOffsetAfterTokenSequence()
82 unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, in getOffsetAfterHeaderGuardsAndComments() argument
92 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments()
159 unsigned getMaxHeaderInsertionOffset(StringRef FileName, StringRef Code, in getMaxHeaderInsertionOffset() argument
162 FileName, Code, Style, in getMaxHeaderInsertionOffset()
192 StringRef FileName) in IncludeCategoryManager() argument
193 : Style(Style), FileName(FileName) { in IncludeCategoryManager()
199 IsMainFile = FileName.ends_with(".c") || FileName.ends_with(".cc") || in IncludeCategoryManager()
200 FileName.ends_with(".cpp") || FileName.ends_with(".c++") || in IncludeCategoryManager()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPrintPasses.cpp159 std::error_code cleanUpTempFilesImpl(ArrayRef<std::string> FileName, in cleanUpTempFilesImpl() argument
163 std::error_code EC = sys::fs::remove(FileName[I]); in cleanUpTempFilesImpl()
172 SmallVector<std::string> &FileName) { in prepareTempFiles() argument
173 assert(FD.size() >= SR.size() && FileName.size() == FD.size() && in prepareTempFiles()
183 FileName[I] = Twine(SV).str(); in prepareTempFiles()
186 EC = sys::fs::openFileForWrite(FileName[I], FD[I]); in prepareTempFiles()
199 cleanUpTempFilesImpl(FileName, I); in prepareTempFiles()
203 std::error_code llvm::cleanUpTempFiles(ArrayRef<std::string> FileName) { in cleanUpTempFiles() argument
204 return cleanUpTempFilesImpl(FileName, FileName in cleanUpTempFiles()
214 static SmallVector<std::string> FileName{"", "", ""}; doSystemDiff() local
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCommandLineSourceLoc.h26 std::string FileName; member
42 PSL.FileName = std::string(LineSplit.first); in FromString()
46 if (PSL.FileName == "-") in FromString()
47 PSL.FileName = "<stdin>"; in FromString()
55 return (llvm::Twine(FileName == "<stdin>" ? "-" : FileName) + ":" + in ToString()
63 std::string FileName; member
96 if (Begin.FileName.empty()) in fromString()
102 return ParsedSourceRange{std::move(Begin.FileName), in fromString()
129 if (Val.FileName.empty()) { in parse()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DSourcePrinter.cpp347 auto BufferOrError = MemoryBuffer::getFile(LineInfo.FileName); in cacheSource()
349 if (MissingSources.insert(LineInfo.FileName).second) in cacheSource()
350 reportWarning("failed to find source " + LineInfo.FileName, in cacheSource()
359 std::vector<StringRef> &Lines = LineCache[LineInfo.FileName]; in cacheSource()
368 SourceCache[LineInfo.FileName] = std::move(Buffer); in cacheSource()
395 sys::path::is_absolute_gnu(LineInfo.FileName)) { in printSourceLine()
396 // FileName has at least one character since is_absolute_gnu is false for in printSourceLine()
398 assert(!LineInfo.FileName.empty()); in printSourceLine()
401 auto StrippedNameStart = LineInfo.FileName.begin(); in printSourceLine()
405 for (auto Pos = StrippedNameStart + 1, End = LineInfo.FileName in printSourceLine()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolizableObjectFile.cpp236 std::string &FileName) const { in getNameFromSymbolTable()
258 FileName = It[-1].second.str(); in getNameFromSymbolTable()
285 std::string FunctionName, FileName; in symbolizeCode() local
288 FileName)) { in symbolizeCode()
291 if (LineInfo.FileName == DILineInfo::BadString && !FileName.empty()) in symbolizeCode()
292 LineInfo.FileName = FileName; in symbolizeCode()
313 std::string FunctionName, FileName; in symbolizeInlinedCode() local
316 FileName)) { in symbolizeInlinedCode()
321 if (LI->FileName == DILineInfo::BadString && !FileName.empty()) in symbolizeInlinedCode()
322 LI->FileName = FileName; in symbolizeInlinedCode()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DFileMatchTrie.cpp105 StringRef FileName, in findEquivalent() argument
113 llvm::sys::path::filename(FileName) && in findEquivalent()
114 Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
118 StringRef Element(llvm::sys::path::filename(FileName.drop_back( in findEquivalent()
124 Comparator, FileName, IsAmbiguous, in findEquivalent()
140 if (Comparator.equivalent(Child, FileName)) { in findEquivalent()
196 StringRef FileMatchTrie::findEquivalent(StringRef FileName, in findEquivalent() argument
198 if (llvm::sys::path::is_relative(FileName)) { in findEquivalent()
203 StringRef Result = Root->findEquivalent(*Comparator, FileName, IsAmbiguous); in findEquivalent()
H A DTooling.cpp184 const Twine &Code, const Twine &FileName, in runToolOnCode() argument
187 std::vector<std::string>(), FileName, in runToolOnCode()
197 StringRef FileName) { in getSyntaxOnlyToolArgs() argument
202 Args.push_back(FileName.str()); in getSyntaxOnlyToolArgs()
212 const std::vector<std::string> &Args, const Twine &FileName, in runToolOnCodeWithArgs() argument
216 StringRef FileNameRef = FileName.toNullTerminatedStringRef(FileNameStorage); in runToolOnCodeWithArgs()
229 const std::vector<std::string> &Args, const Twine &FileName, in runToolOnCodeWithArgs() argument
240 InMemoryFileSystem->addFile(FileName, 0, in runToolOnCodeWithArgs()
251 Args, FileName, ToolName); in runToolOnCodeWithArgs()
682 buildASTFromCode(StringRef Code, StringRef FileName, in buildASTFromCode() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPPCallbacks.h95 virtual bool EmbedFileNotFound(StringRef FileName) { return false; } in EmbedFileNotFound() argument
111 virtual void EmbedDirective(SourceLocation HashLoc, StringRef FileName, in EmbedDirective() argument
123 virtual bool FileNotFound(StringRef FileName) { return false; } in FileNotFound() argument
169 const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
366 virtual void HasEmbed(SourceLocation Loc, StringRef FileName, bool IsAngled, in HasEmbed() argument
371 virtual void HasInclude(SourceLocation Loc, StringRef FileName, bool IsAngled,
500 bool EmbedFileNotFound(StringRef FileName) override { in EmbedFileNotFound() argument
501 bool Skip = First->FileNotFound(FileName); in EmbedFileNotFound()
504 Skip |= Second->FileNotFound(FileName); in EmbedFileNotFound()
508 void EmbedDirective(SourceLocation HashLoc, StringRef FileName, bool IsAngled, in EmbedDirective() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPCallbacks.cpp17 void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName, in HasInclude() argument
24 void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName, in HasInclude() argument
27 First->HasInclude(Loc, FileName, IsAngled, File, FileType); in HasInclude()
28 Second->HasInclude(Loc, FileName, IsAngled, File, FileType); in HasInclude()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSourceFile.cpp28 auto FileName = ST->getStringTable().getString(Checksum.FileNameOffset); in getFileName() local
29 if (!FileName) { in getFileName()
30 consumeError(FileName.takeError()); in getFileName()
34 return std::string(FileName.get()); in getFileName()
/freebsd/contrib/llvm-project/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h65 IndexError(index_error_code C, std::string FileName, int LineNo = 0)
66 : Code(C), FileName(std::move(FileName)), LineNo(LineNo) {} in Code()
67 IndexError(index_error_code C, std::string FileName, std::string TripleToName, in IndexError() argument
69 : Code(C), FileName(std::move(FileName)), in IndexError()
76 std::string getFileName() const { return FileName; } in getFileName()
82 std::string FileName; variable
325 llvm::Expected<ASTUnit *> getASTUnitForFile(StringRef FileName,
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DProcess.cpp35 Process::FindInEnvPath(StringRef EnvName, StringRef FileName, char Separator) { in FindInEnvPath() argument
36 return FindInEnvPath(EnvName, FileName, {}, Separator); in FindInEnvPath()
40 Process::FindInEnvPath(StringRef EnvName, StringRef FileName, in FindInEnvPath() argument
42 assert(!path::is_absolute(FileName)); in FindInEnvPath()
60 path::append(FilePath, FileName); in FindInEnvPath()
H A DLockFileManager.cpp160 LockFileManager::LockFileManager(StringRef FileName) in LockFileManager() argument
162 this->FileName = FileName; in LockFileManager()
163 if (std::error_code EC = sys::fs::make_absolute(this->FileName)) { in LockFileManager()
165 S.append(std::string(this->FileName)); in LockFileManager()
169 LockFileName = this->FileName; in LockFileManager()
312 if (!sys::fs::exists(FileName)) in waitForUnlock()
H A DDynamicLibrary.cpp165 DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *FileName, in getPermanentLibrary() argument
168 void *Handle = HandleSet::DLOpen(FileName, Err); in getPermanentLibrary()
171 G.OpenedHandles.AddLibrary(Handle, /*IsProcess*/ FileName == nullptr); in getPermanentLibrary()
189 DynamicLibrary DynamicLibrary::getLibrary(const char *FileName, in getLibrary() argument
191 assert(FileName && "Use getPermanentLibrary() for opening process handle"); in getLibrary()
192 void *Handle = HandleSet::DLOpen(FileName, Err); in getLibrary()
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinkerParallel/
H A DDWARFFile.h
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDependencyGraph.cpp49 StringRef FileName, bool IsAngled,
56 void EmbedDirective(SourceLocation HashLoc, StringRef FileName, bool IsAngled,
74 SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, in InclusionDirective() argument
135 StringRef FileName = AllFiles[I].getName(); in OutputGraphFile() local
136 FileName.consume_front(SysRoot); in OutputGraphFile()
138 OS << DOT::EscapeString(std::string(FileName)) << "\"];\n"; in OutputGraphFile()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DNoSanitizeList.cpp45 bool NoSanitizeList::containsFile(SanitizerMask Mask, StringRef FileName, in containsFile() argument
47 return SSCL->inSection(Mask, "src", FileName, Category); in containsFile()
50 bool NoSanitizeList::containsMainFile(SanitizerMask Mask, StringRef FileName, in containsMainFile() argument
52 return SSCL->inSection(Mask, "mainfile", FileName, Category); in containsMainFile()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModelUnderTrainingRunner.cpp33 StringRef FileName = SpecFileOverride; in loadOutputSpecs() local
34 if (FileName.empty()) { in loadOutputSpecs()
36 FileName = {OutputSpecsPath.data(), OutputSpecsPath.size()}; in loadOutputSpecs()
39 auto BufferOrError = MemoryBuffer::getFileOrSTDIN(FileName); in loadOutputSpecs()
41 Ctx.emitError("Error opening output specs file: " + FileName + " : " + in loadOutputSpecs()
47 Ctx.emitError("Could not parse specs file: " + FileName); in loadOutputSpecs()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/
H A DDIContext.h37 std::string FileName; member
54 : FileName(BadString), FunctionName(BadString), StartFileName(BadString) { in DILineInfo()
59 FileName == RHS.FileName && FunctionName == RHS.FunctionName &&
67 return std::tie(FileName, FunctionName, StartFileName, Line, Column,
69 std::tie(RHS.FileName, RHS.FunctionName, RHS.StartFileName, RHS.Line,
77 if (FileName != BadString) in dump()
78 OS << "file '" << FileName << "', "; in dump()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DHeaderIncludes.h30 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName);
44 std::string FileName; variable
54 HeaderIncludes(llvm::StringRef FileName, llvm::StringRef Code,
105 std::string FileName; variable
/freebsd/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp260 const std::string &FileName)>
266 const char *argv0, const std::string &FileName)> in ModuleLazyLoaderCache()
271 Module &operator()(const char *argv0, const std::string &FileName);
273 std::unique_ptr<Module> takeModule(const std::string &FileName) { in takeModule() argument
274 auto I = ModuleMap.find(FileName); in takeModule()
351 std::string FileName = Import.substr(Idx + 1, std::string::npos); in importFunctions() local
354 auto &SrcModule = ModuleLoaderCache(argv0, FileName); in importFunctions()
357 errs() << argv0 << ": " << FileName; in importFunctions()
365 << FunctionName << " from " << FileName << "\n"; in importFunctions()
373 << " from " << FileName << "\n"; in importFunctions()
[all …]
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp220 static FileID createInMemoryFile(StringRef FileName, MemoryBufferRef Source, in createInMemoryFile() argument
223 MemFS->addFileNoOwn(FileName, 0, Source); in createInMemoryFile()
224 auto File = Files.getOptionalFileRef(FileName); in createInMemoryFile()
412 static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) { in format() argument
413 const bool IsSTDIN = FileName == "-"; in format()
422 ? MemoryBuffer::getFileAsStream(FileName) in format()
423 : MemoryBuffer::getFileOrSTDIN(FileName, /*IsText=*/true); in format()
440 errs() << " in file '" << FileName << "'"; in format()
448 StringRef AssumedFileName = IsSTDIN ? AssumeFileName : FileName; in format()
721 for (const auto &FileName : FileNames) { in main() local
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DARMEHABIPrinter.h331 StringRef FileName; variable
357 StringRef FileName, const Elf_Shdr *Symtab) in PrinterContext() argument
358 : SW(SW), ELF(ELF), FileName(FileName), Symtab(Symtab) {} in PrinterContext()
373 reportError(StrTableOrErr.takeError(), FileName); in FunctionAtAddress()
376 for (const Elf_Sym &Sym : unwrapOrError(FileName, ELF.symbols(Symtab))) { in FunctionAtAddress()
406 for (const Elf_Shdr &Sec : unwrapOrError(FileName, ELF.sections())) { in FindExceptionTable()
412 reportError(SymTabOrErr.takeError(), FileName); in FindExceptionTable()
415 for (const Elf_Rel &R : unwrapOrError(FileName, ELF.rels(Sec))) { in FindExceptionTable()
425 unwrapOrError(FileName, ELF.getRelocationSymbol(RelA, SymTab)); in FindExceptionTable()
438 findSectionContainingAddress(const object::ELFFile<ET> &Obj, StringRef FileName, in findSectionContainingAddress() argument
[all …]

1234567891011