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

1234567891011

/freebsd-current/contrib/llvm-project/clang/lib/Lex/
H A DPPCallbacks.cpp17 void PPCallbacks::HasInclude(SourceLocation Loc, StringRef FileName, argument
24 void PPChainedCallbacks::HasInclude(SourceLocation Loc, StringRef FileName, argument
27 First->HasInclude(Loc, FileName, IsAngled, File, FileType);
28 Second->HasInclude(Loc, FileName, IsAngled, File, FileType);
/freebsd-current/contrib/llvm-project/clang/lib/Format/
H A DSortJavaScriptImports.h30 StringRef FileName);
H A DFormatInternal.h74 unsigned NextStartColumn, unsigned LastStartColumn, StringRef FileName,
/freebsd-current/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSourceFile.cpp28 auto FileName = ST->getStringTable().getString(Checksum.FileNameOffset); local
29 if (!FileName) {
30 consumeError(FileName.takeError());
34 return std::string(FileName.get());
/freebsd-current/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DDWARFFile.h27 using UnloadCallbackTy = std::function<void(StringRef FileName)>;
32 : FileName(Name), Dwarf(std::move(Dwarf)),
36 StringRef FileName; member in class:llvm::dwarf_linker::DWARFFile
53 UnloadFunc(FileName);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOWindows.cpp137 std::string FileName = DirPlusFile(Dir, FindInfo.cFileName); local
146 ListFilesInDirRecursive(FileName, Epoch, V, false);
148 else if (IsFile(FileName, FindInfo.dwFileAttributes))
149 V->push_back(FileName);
247 static size_t ParseDrive(const std::string &FileName, const size_t Offset, argument
249 if (Offset + 1 >= FileName.size() || FileName[Offset + 1] != ':')
251 if (Offset + 2 >= FileName.size() || !IsSeparator(FileName[Offset + 2])) {
262 static size_t ParseFileName(const std::string &FileName, cons argument
272 ParseDir(const std::string &FileName, const size_t Offset) argument
287 ParseServerAndShare(const std::string &FileName, const size_t Offset) argument
312 ParseLocation(const std::string &FileName) argument
345 DirName(const std::string &FileName) argument
390 IsInterestingCoverageFile(const std::string &FileName) argument
[all...]
H A DFuzzerIOPosix.cpp134 std::string DirName(const std::string &FileName) { argument
135 char *Tmp = new char[FileName.size() + 1];
136 memcpy(Tmp, FileName.c_str(), FileName.size() + 1);
148 bool IsInterestingCoverageFile(const std::string &FileName) { argument
149 if (FileName.find("compiler-rt/lib/") != std::string::npos)
151 if (FileName.find("/usr/lib/") != std::string::npos)
153 if (FileName.find("/usr/include/") != std::string::npos)
155 if (FileName == "<null>")
/freebsd-current/contrib/llvm-project/clang/include/clang/Frontend/
H A DCommandLineSourceLoc.h26 std::string FileName; member in struct:clang::ParsedSourceLocation
42 PSL.FileName = std::string(LineSplit.first);
46 if (PSL.FileName == "-")
47 PSL.FileName = "<stdin>";
55 return (llvm::Twine(FileName == "<stdin>" ? "-" : FileName) + ":" +
63 std::string FileName; member in struct:clang::ParsedSourceRange
96 if (Begin.FileName.empty())
102 return ParsedSourceRange{std::move(Begin.FileName),
129 if (Val.FileName
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DPrintPasses.cpp159 std::error_code cleanUpTempFilesImpl(ArrayRef<std::string> FileName, argument
163 std::error_code EC = sys::fs::remove(FileName[I]);
172 SmallVector<std::string> &FileName) {
173 assert(FD.size() >= SR.size() && FileName.size() == FD.size() &&
183 FileName[I] = Twine(SV).str();
186 EC = sys::fs::openFileForWrite(FileName[I], FD[I]);
199 cleanUpTempFilesImpl(FileName, I);
203 std::error_code llvm::cleanUpTempFiles(ArrayRef<std::string> FileName) { argument
204 return cleanUpTempFilesImpl(FileName, FileName
170 prepareTempFiles(SmallVector<int> &FD, ArrayRef<StringRef> SR, SmallVector<std::string> &FileName) argument
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Basic/
H A DNoSanitizeList.cpp45 bool NoSanitizeList::containsFile(SanitizerMask Mask, StringRef FileName, argument
47 return SSCL->inSection(Mask, "src", FileName, Category);
50 bool NoSanitizeList::containsMainFile(SanitizerMask Mask, StringRef FileName, argument
52 return SSCL->inSection(Mask, "mainfile", FileName, Category);
/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A DProcess.cpp35 Process::FindInEnvPath(StringRef EnvName, StringRef FileName, char Separator) { argument
36 return FindInEnvPath(EnvName, FileName, {}, Separator);
40 Process::FindInEnvPath(StringRef EnvName, StringRef FileName, argument
42 assert(!path::is_absolute(FileName));
60 path::append(FilePath, FileName);
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp41 StringRef FileName, StringRef Code, const IncludeStyle &Style,
44 SourceManagerForFile VirtualSM(FileName, Code);
82 unsigned getOffsetAfterHeaderGuardsAndComments(StringRef FileName, argument
92 FileName, Code, Style,
159 unsigned getMaxHeaderInsertionOffset(StringRef FileName, StringRef Code, argument
162 FileName, Code, Style,
192 StringRef FileName)
193 : Style(Style), FileName(FileName) {
199 IsMainFile = FileName
40 getOffsetAfterTokenSequence( StringRef FileName, StringRef Code, const IncludeStyle &Style, llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)> GetOffsetAfterSequence) argument
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/
H A DFileMatchTrie.cpp84 /// matches 'FileName'.
86 /// If multiple paths fit 'FileName' equally well, \c IsAmbiguous is set to
87 /// \c true and an empty string is returned. If no path fits 'FileName', an
105 StringRef FileName,
113 llvm::sys::path::filename(FileName) &&
114 Comparator.equivalent(StringRef(Path), FileName))
118 StringRef Element(llvm::sys::path::filename(FileName.drop_back(
124 Comparator, FileName, IsAmbiguous,
140 if (Comparator.equivalent(Child, FileName)) {
196 StringRef FileMatchTrie::findEquivalent(StringRef FileName, argument
104 findEquivalent(const PathComparator& Comparator, StringRef FileName, bool &IsAmbiguous, unsigned ConsumedLength = 0) const argument
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DNoSanitizeList.h42 bool containsFile(SanitizerMask Mask, StringRef FileName,
44 bool containsMainFile(SanitizerMask Mask, StringRef FileName,
/freebsd-current/contrib/llvm-project/llvm/include/llvm/IR/
H A DPrintPasses.h63 // \p SR contains the corresponding initial content. \p FileName will have
67 SmallVector<std::string> &FileName);
69 // Remove the temporary files in \p FileName. Typically used in conjunction
71 std::error_code cleanUpTempFiles(ArrayRef<std::string> FileName);
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DHeaderIncludes.h30 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName);
44 std::string FileName; member in class:clang::tooling::IncludeCategoryManager
54 HeaderIncludes(llvm::StringRef FileName, llvm::StringRef Code,
105 std::string FileName; member in class:clang::tooling::HeaderIncludes
/freebsd-current/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolizableObjectFile.cpp236 std::string &FileName) const {
258 FileName = It[-1].second.str();
285 std::string FunctionName, FileName; local
288 FileName)) {
291 if (LineInfo.FileName == DILineInfo::BadString && !FileName.empty())
292 LineInfo.FileName = FileName;
313 std::string FunctionName, FileName; local
316 FileName)) {
332 std::string FileName; local
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DModelUnderTrainingRunner.cpp33 StringRef FileName = SpecFileOverride; local
34 if (FileName.empty()) {
36 FileName = {OutputSpecsPath.data(), OutputSpecsPath.size()};
39 auto BufferOrError = MemoryBuffer::getFileOrSTDIN(FileName);
41 Ctx.emitError("Error opening output specs file: " + FileName + " : " +
47 Ctx.emitError("Could not parse specs file: " + FileName);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DCodeViewYAMLDebugSections.h75 StringRef FileName; member in struct:llvm::CodeViewYAML::SourceLineBlock
85 StringRef FileName; member in struct:llvm::CodeViewYAML::SourceFileChecksumEntry
100 StringRef FileName; member in struct:llvm::CodeViewYAML::InlineeSite
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/
H A DFileMatchTrie.h72 /// Returns file name stored in this trie that is equivalent to 'FileName'
77 StringRef findEquivalent(StringRef FileName,
/freebsd-current/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugInlineeLinesSubsection.cpp108 void DebugInlineeLinesSubsection::addExtraFile(StringRef FileName) { argument
109 uint32_t Offset = Checksums.mapChecksumOffset(FileName);
117 StringRef FileName,
119 uint32_t Offset = Checksums.mapChecksumOffset(FileName);
116 addInlineSite(TypeIndex FuncId, StringRef FileName, uint32_t SourceLine) argument
H A DDebugChecksumsSubsection.cpp67 void DebugChecksumsSubsection::addChecksum(StringRef FileName, argument
77 Entry.FileNameOffset = Strings.insert(FileName);
110 uint32_t DebugChecksumsSubsection::mapChecksumOffset(StringRef FileName) const {
111 uint32_t Offset = Strings.getIdForString(FileName);
/freebsd-current/contrib/llvm-project/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h65 IndexError(index_error_code C, std::string FileName, int LineNo = 0) argument
66 : Code(C), FileName(std::move(FileName)), LineNo(LineNo) {}
67 IndexError(index_error_code C, std::string FileName, std::string TripleToName, argument
69 : Code(C), FileName(std::move(FileName)),
76 std::string getFileName() const { return FileName; }
82 std::string FileName; member in class:clang::cross_tu::IndexError
325 llvm::Expected<ASTUnit *> getASTUnitForFile(StringRef FileName,
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DSourcePrinter.cpp347 auto BufferOrError = MemoryBuffer::getFile(LineInfo.FileName);
349 if (MissingSources.insert(LineInfo.FileName).second)
350 reportWarning("failed to find source " + LineInfo.FileName,
359 std::vector<StringRef> &Lines = LineCache[LineInfo.FileName];
368 SourceCache[LineInfo.FileName] = std::move(Buffer);
395 sys::path::is_absolute_gnu(LineInfo.FileName)) {
396 // FileName has at least one character since is_absolute_gnu is false for
398 assert(!LineInfo.FileName.empty());
401 auto StrippedNameStart = LineInfo.FileName.begin();
405 for (auto Pos = StrippedNameStart + 1, End = LineInfo.FileName
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Serialization/
H A DModuleManager.cpp99 ModuleManager::addModule(StringRef FileName, ModuleKind Type, argument
121 if (lookupModuleFile(FileName, ExpectedSize, ExpectedModTime, Entry)) {
149 return Entry.getName() == MF->FileName;
168 NewModule->FileName = FileName.str();
182 if (std::unique_ptr<llvm::MemoryBuffer> Buffer = lookupBuffer(FileName)) {
184 NewModule->Buffer = &ModuleCache->addBuiltPCM(FileName, std::move(Buffer));
190 getModuleCache().lookupPCM(FileName)) {
194 } else if (getModuleCache().shouldBuildPCM(FileName)) {
215 NewModule->Buffer = &getModuleCache().addPCM(FileName, st
280 addInMemoryBuffer(StringRef FileName, std::unique_ptr<llvm::MemoryBuffer> Buffer) argument
434 lookupModuleFile(StringRef FileName, off_t ExpectedSize, time_t ExpectedModTime, OptionalFileEntryRef &File) argument
[all...]

Completed in 325 milliseconds

1234567891011