Home
last modified time | relevance | path

Searched refs:getFile (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/libc/test/utils/tools/WrapperGen/
H A Dwrappergen_test.cpp89 auto STDErrOrError = llvm::MemoryBuffer::getFile(STDErrFile.get().TmpName); in TEST_F()
111 auto STDErrOrError = llvm::MemoryBuffer::getFile(STDErrFile.get().TmpName); in TEST_F()
116 auto STDOutOrError = llvm::MemoryBuffer::getFile(STDOutFile.get().TmpName); in TEST_F()
148 auto STDErrOrError = llvm::MemoryBuffer::getFile(STDErrFile.get().TmpName); in TEST_F()
153 auto STDOutOrError = llvm::MemoryBuffer::getFile(STDOutFile.get().TmpName); in TEST_F()
196 auto STDErrOrError = llvm::MemoryBuffer::getFile(STDErrFile.get().TmpName); in TEST_F()
201 auto STDOutOrError = llvm::MemoryBuffer::getFile(STDOutFile.get().TmpName); in TEST_F()
239 auto STDErrOrError = llvm::MemoryBuffer::getFile(STDErrFile.get().TmpName); in TEST_F()
246 auto STDOutOrError = llvm::MemoryBuffer::getFile(STDOutFile.get().TmpName); in TEST_F()
271 auto STDErrOrError = llvm::MemoryBuffer::getFile(STDErrFile.get().TmpName); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/unittests/Basic/
H A DFileManagerTest.cpp193 auto fileFoo = manager.getFile("foo.cpp"); in TEST_F()
194 auto fileBar = manager.getFile("bar.cpp"); in TEST_F()
213 auto file = manager.getFile("xyz.txt"); in TEST_F()
217 auto readingDirAsFile = manager.getFile("MyDirectory"); in TEST_F()
239 auto f1 = manager.getFile("abc/foo.cpp"); in TEST_F()
240 auto f2 = manager.getFile("abc/bar.cpp"); in TEST_F()
323 auto f1 = manager.getFile("abc/foo.cpp"); in TEST_F()
324 auto f2 = manager.getFile("abc/bar.cpp"); in TEST_F()
397 EXPECT_EQ(43U, file1->getUniqueID().getFile()); in TEST_F()
401 auto file2 = manager.getFile("c:/tmp/test", 100, 1); in TEST_F()
[all …]
/llvm-project-15.0.7/flang/lib/Frontend/
H A DFrontendAction.cpp45 if (input.getFile() != "-") { in beginSourceFile()
46 if (!llvm::sys::fs::is_regular_file(input.getFile())) { in beginSourceFile()
49 if (llvm::vfs::getRealFileSystem()->exists(input.getFile())) { in beginSourceFile()
51 << input.getFile(); in beginSourceFile()
60 ci.getDiagnostics().Report(diagID) << input.getFile(); in beginSourceFile()
/llvm-project-15.0.7/lld/MachO/
H A DSymbols.h95 InputFile *getFile() const { return file; } in getFile() function
261 (file && getFile()->umbrella->forceWeakImport); in isWeakRef()
268 DylibFile *getFile() const { in getFile() function
280 getFile()->numReferencedSymbols++; in reference()
287 assert(getFile()->numReferencedSymbols > 0); in unreference()
288 getFile()->numReferencedSymbols--; in unreference()
303 ArchiveFile *getFile() const { return cast<ArchiveFile>(file); } in getFile() function
H A DMapFile.cpp53 if (d->isec && d->getFile() == file) { in getSymbols()
165 readerToFileOrdinal[sym->getFile()], in writeMapFile()
176 os << format("<<dead>>\t[%3u] %s\n", readerToFileOrdinal[sym->getFile()], in writeMapFile()
H A DSymbolTable.cpp60 (isa<ObjFile>(file) && file == isec->getFile())); in addDefined()
93 message += toString(defined->getFile()) + "\n>>> defined in "; in addDefined()
121 return addDefined(target, src->getFile(), src->isec, src->value, src->size, in aliasDefined()
140 extract(*s->getFile(), s->getName()); in addUndefined()
249 assert(!isec || !isec->getFile()); // See makeSyntheticInputSection(). in addSynthetic()
H A DInputSection.cpp70 return (toString(getFile()) + ":(symbol " + toString(*sym) + "+0x" + in getLocation()
82 return (toString(getFile()) + ":(" + getName() + "+0x" + in getLocation()
88 auto *obj = dyn_cast_or_null<ObjFile>(getFile()); in getSourceLocation()
354 return (toString(isec->getFile()) + ":(" + isec->getName() + ")").str(); in toString()
/llvm-project-15.0.7/flang/include/flang/Frontend/
H A DFrontendAction.h76 return currentInput.getFile(); in getCurrentFile()
82 ? currentInput.getFile() in getCurrentFileOrBufferName()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DMetadataTest.cpp92 DIFile *getFile() { in getFile() function in __anond9aefcc70111::MetadataTest
429 DIFile *File = getFile(); in TEST_F()
991 auto *F = getFile(); in TEST_F()
1230 DIFile *File = getFile(); in TEST_F()
1250 DIFile *File = getFile(); in TEST_F()
1301 DIFile *File = getFile(); in TEST_F()
1345 DIFile *File = getFile(); in TEST_F()
1385 DIFile *File = getFile(); in TEST_F()
1433 DIFile *File = getFile(); in TEST_F()
2476 DIFile *F = getFile(); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DFileRemapper.cpp66 llvm::MemoryBuffer::getFile(infoFile, /*IsText=*/true); in initFromFile()
81 llvm::ErrorOr<const FileEntry *> origFE = FileMgr->getFile(fromFilename); in initFromFile()
87 llvm::ErrorOr<const FileEntry *> newFE = FileMgr->getFile(toFilename); in initFromFile()
156 auto newE = FileMgr->getFile(tempPath); in flushToFile()
246 if (auto fileOrErr = FileMgr->getFile(filePath)) in getOriginalFile()
/llvm-project-15.0.7/lld/wasm/
H A DLTO.cpp80 f->getFile(), f->signature); in undefine()
82 replaceSymbol<UndefinedData>(s, s->getName(), 0, s->getFile()); in undefine()
104 r.Prevailing = !objSym.isUndefined() && sym->getFile() == &f; in add()
H A DSymbolTable.cpp135 toString(existing->getFile()) + "\n>>> defined as " + toString(type) + in reportTypeError()
165 toString(*oldType) + " in " + toString(existing->getFile()) + in checkGlobalType()
182 toString(existing->getFile()) + "\n>>> defined as " + in checkTagType()
196 toString(*oldType) + " in " + toString(existing->getFile()) + in checkTableType()
299 toString(existing->getFile()) + "\n>>> defined in " + in shouldReplace()
473 toString(existing->getFile()) + "\n>>> defined as " + *importName + in setImportAttributes()
483 toString(existing->getFile()) + "\n>>> defined as " + in setImportAttributes()
893 toString(a->getFile()) + "\n>>> defined as " + in reportFunctionSignatureMismatch()
894 toString(*b->signature) + " in " + toString(b->getFile())) in reportFunctionSignatureMismatch()
H A DRelocations.cpp50 error(toString(sym->getFile()) + ": undefined symbol: " + toString(*sym)); in reportUndefined()
53 warn(toString(sym->getFile()) + ": undefined symbol: " + toString(*sym)); in reportUndefined()
/llvm-project-15.0.7/llvm/include/llvm/Support/FileSystem/
H A DUniqueID.h48 uint64_t getFile() const { return File; } in getFile() function
68 return hash_value(std::make_pair(Tag.getDevice(), Tag.getFile()));
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp283 const SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
728 if (Entry->getFile().getContentCache().OrigEntry) in getNonBuiltinFilenameForID()
729 return Entry->getFile().getName(); in getNonBuiltinFilenameForID()
1362 Content = &Entry.getFile().getContentCache(); in getLineNumber()
1474 const SrcMgr::FileInfo &FI = SEntry->getFile(); in getFileCharacteristic()
1525 const SrcMgr::FileInfo &FI = Entry.getFile(); in getPresumedLoc()
1599 const SrcMgr::FileInfo &FI = Entry->getFile(); in isInMainFile()
1777 auto& File = Entry.getFile(); in computeMacroArgsCache()
1792 if (Entry.getFile().NumCreatedFIDs) in computeMacroArgsCache()
1962 UpperLoc = Entry.getFile().getIncludeLoc(); in getDecomposedIncludedLoc()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMemoryBuffer.h94 getFile(const Twine &Filename, bool IsText = false,
191 getFile(const Twine &Filename, bool IsVolatile = false);
249 getFile(const Twine &Filename, int64_t FileSize = -1);
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/tool/
H A DClangChangeNamespace.cpp88 llvm::MemoryBuffer::getFile(AllowedFile); in GetAllowedSymbolPatterns()
155 const auto Entry = FileMgr.getFile(*I); in main()
173 const auto Entry = FileMgr.getFile(File); in main()
/llvm-project-15.0.7/lld/COFF/
H A DMinGW.cpp156 if (!sym->getFile()) in shouldExport()
159 StringRef libName = sys::path::filename(sym->getFile()->parentName); in shouldExport()
166 StringRef fileName = sys::path::filename(sym->getFile()->getName()); in shouldExport()
/llvm-project-15.0.7/lld/ELF/
H A DICF.cpp250 Symbol &sa = secA->template getFile<ELFT>()->getRelocTargetSym(ra[i]); in constantEq()
251 Symbol &sb = secB->template getFile<ELFT>()->getRelocTargetSym(rb[i]); in constantEq()
340 Symbol &sa = secA->template getFile<ELFT>()->getRelocTargetSym(ra[i]); in variableEq()
341 Symbol &sb = secB->template getFile<ELFT>()->getRelocTargetSym(rb[i]); in variableEq()
443 Symbol &s = isec->template getFile<ELFT>()->getRelocTargetSym(rel); in combineRelocHashes()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DMapper.cpp39 getFile(D, D->getASTContext(), CDCtx.SourceRoot, IsFileInRootDir); in mapDecl()
90 llvm::SmallString<128> MapASTVisitor::getFile(const NamedDecl *D, in getFile() function in clang::doc::MapASTVisitor
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h636 if (auto *F = getFile()) in getFilename()
642 if (auto *F = getFile()) in getDirectory()
648 if (auto *F = getFile()) in getSource()
1619 DIFile *getFile() const { return getScope()->getFile(); } in getFile() function
2167 return getTemporary(getContext(), getScope(), getFile(), in cloneImpl()
2521 if (auto *F = getFile()) in getFilename()
2527 if (auto *F = getFile()) in getDirectory()
2533 if (auto *F = getFile()) in getSource()
3022 getFile(), getLineNo());
3270 if (auto *F = getFile())
[all …]
/llvm-project-15.0.7/llvm/unittests/Testing/Support/
H A DTempPathTest.cpp52 MemoryBuffer::getFile(File1->path()); in TEST()
81 MemoryBuffer::getFile(Link1->path()); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-apply-replacements/lib/Tooling/
H A DApplyReplacements.cpp62 MemoryBuffer::getFile(I->path()); in collectReplacementsFromDirectory()
106 MemoryBuffer::getFile(I->path()); in collectReplacementsFromDirectory()
163 if (auto Entry = SM.getFileManager().getFile(R.getFilePath())) { in groupReplacements()
/llvm-project-15.0.7/clang/tools/clang-refactor/
H A DTestSupport.cpp45 auto FE = SM.getFileManager().getFile(Filename); in foreachRange()
94 llvm::MemoryBuffer::getFile(File); in printRewrittenSources()
164 MemoryBuffer::getFile(Filename); in getLineColumn()
297 MemoryBuffer::getFile(Filename); in findTestSelectionRanges()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DMemoryBufferTest.cpp144 ErrorOr<OwningBuffer> MB = MemoryBuffer::getFile(TestPath.c_str()); in TEST_F()
346 auto MBOrError = MemoryBuffer::getFile(TestPath); in TEST_F()
365 auto MBOrError = WriteThroughMemoryBuffer::getFile(TestPath); in TEST_F()
376 auto MBOrError = MemoryBuffer::getFile(TestPath); in TEST_F()

12345678910>>...12