Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DRecordTest.cpp
/llvm-project/clang/unittests/Basic/
H A DFileManagerTest.cpp184 // getFile() returns different FileEntries for different paths when in TEST_F()
202 // getFile() returns an error if neither a real file nor a virtual file in TEST_F()
235 // getFile() returns the same FileEntry for real files that are aliases. in TEST_F()
336 // getFile() returns the same FileEntry for virtual files that have in TEST_F()
415 // getFile() Should return the same entry as getVirtualFile if the file actually in TEST_F()
429 EXPECT_EQ(43U, file1.getUniqueID().getFile()); in TEST_F()
437 EXPECT_EQ(43U, file2->getUniqueID().getFile()); in TEST_F()
/llvm-project/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() << "not a regular file"; in beginSourceFile()
60 ci.getDiagnostics().Report(diagID) << input.getFile(); in beginSourceFile()
/llvm-project/offload/tools/kernelreplay/
H A Dllvm-omp-kernel-replay.cpp60 MemoryBuffer::getFile(InputFilename, /*isText=*/true, in main()
104 MemoryBuffer::getFile(KernelEntryName + ".image", /*isText=*/false, in main()
144 MemoryBuffer::getFile(KernelEntryName + ".memory", /*isText=*/false, in main()
177 MemoryBuffer::getFile(KernelEntryName + ".original.output", in main()
184 MemoryBuffer::getFile(KernelEntryName + ".replay.output", in main()
/llvm-project/lld/MachO/
H A DSymbols.h94 InputFile *getFile() const { return file; }
135 // from `getFile()` if the symbol originated from a bitcode file.
271 (file && getFile()->umbrella->forceWeakImport); in isWeakRef()
278 DylibFile *getFile() const {
290 getFile()->numReferencedSymbols++; in reference()
297 assert(getFile()->numReferencedSymbols > 0); in unreference()
298 getFile()->numReferencedSymbols--; in unreference()
315 ArchiveFile *getFile() const { return cast<ArchiveFile>(file); } in getFile() function
96 InputFile *getFile() const { return file; } getFile() function
279 DylibFile *getFile() const { getFile() function
H A DSymbolTable.cpp147 std::string srcFile1 = toString(defined->getFile()); in addDefined()
175 ") in the bitcode file(" + toString(undef->getFile()) + in addDefined()
189 toString(undef->getFile()) + in addDefined()
197 file = undef->getFile(); in addDefined()
238 extract(*s->getFile(), s->getName()); in addUndefined()
339 assert(!isec || !isec->getFile()); // See makeSyntheticInputSection(). in addSynthetic()
506 if (sym.getFile() && sym.getFile()->kind() == InputFile::ObjKind) { in getAlternativeSpelling()
508 for (const Symbol *s : sym.getFile()->symbols) in getAlternativeSpelling()
654 if (corrected->getFile()) in reportUndefinedSymbol()
[all...]
H A DMapFile.cpp80 if (d->isec() && d->getFile() == file && in gatherMapInfo()
142 readerToFileOrdinal.lookup(sym->getFile()), in printStubsEntries()
212 readerToFileOrdinal.lookup(sym->getFile()), in writeMapFile()
285 readerToFileOrdinal[sym->getFile()],
H A DSymbols.cpp109 return originalIsec ? dyn_cast_or_null<ObjFile>(originalIsec->getFile()) in getObjectFile()
133 void LazyArchive::fetchArchiveMember() { getFile()->fetch(sym); } in fetchArchiveMember()
/llvm-project/llvm/unittests/ProfileData/
H A DPGOCtxProfReaderWriterTest.cpp107 MemoryBuffer::getFile(ProfileFile.path()); in TEST_F()
156 auto MB = MemoryBuffer::getFile(ProfileFile.path()); in TEST_F()
192 auto MB = MemoryBuffer::getFile(ProfileFile.path()); in TEST_F()
214 auto MB = MemoryBuffer::getFile(ProfileFile.path()); in TEST_F()
238 auto MB = MemoryBuffer::getFile(ProfileFile.path()); in TEST_F()
264 auto MB = MemoryBuffer::getFile(ProfileFile.path());
/llvm-project/mlir/lib/Target/LLVMIR/
H A DDebugTranslation.cpp126 attr.getSourceLanguage(), translate(attr.getFile()), in getDistinctOrUnique()
184 translate(attr.getFile()), attr.getLine(), translate(attr.getScope()),
226 translate(attr.getFile()), attr.getLine());
231 translate(attr.getFile()), in translateImpl()
238 llvmCtx, translate(attr.getScope()), translate(attr.getFile()), in translateImpl()
254 translate(attr.getFile()), attr.getLine(), translate(attr.getType()), in translateRecursive()
264 getMDStringOrNull(attr.getLinkageName()), translate(attr.getFile()), in translateRecursive()
320 llvm::DIFile *file = translate(attr.getFile()); in translateImpl()
350 llvmCtx, translate(attr.getFile()), translate(attr.getScope()), in translateImpl()
367 translate(attr.getEntity()), translate(attr.getFile()), att in translateImpl()
[all...]
H A DDebugImporter.cpp67 translate(node->getFile()), getStringAttrOrNull(node->getRawProducer()), in translateImpl()
93 translate(node->getFile()), node->getLine(), translate(node->getScope()), in translateImpl()
135 translate(node->getFile()), node->getLine()); in translateImpl()
143 return DILexicalBlockAttr::get(context, scope, translate(node->getFile()), in translateImpl()
153 return DILexicalBlockFileAttr::get(context, scope, translate(node->getFile()), in translateImpl()
169 convertToStringAttr(node->getLinkageName()), translate(node->getFile()), in translateImpl()
181 translate(node->getFile()), node->getLine(), node->getArg(), in translateImpl()
196 context, translate(node->getFile()), translate(node->getScope()), in translateImpl()
220 translate(node->getEntity()), translate(node->getFile()), node->getLine(), in translateImpl()
271 translate(node->getFile()), nod in translateImpl()
[all...]
/llvm-project/lld/wasm/
H A DSymbolTable.cpp149 toString(existing->getFile()) + "\n>>> defined as " + toString(type) + in reportTypeError()
179 toString(*oldType) + " in " + toString(existing->getFile()) + in checkGlobalType()
196 toString(existing->getFile()) + "\n>>> defined as " + in checkTagType()
210 toString(*oldType) + " in " + toString(existing->getFile()) + in checkTableType()
324 toString(existing->getFile()) + "\n>>> defined in " + in addDefinedFunction()
336 toString(*sym->signature) + " in " + toString(sym->getFile()) + in addDefinedFunction()
349 reportFunctionSignatureMismatch(symName, a, b->signature, b->getFile(), in addDefinedFunction()
596 toString(existing->getFile()) + "\n>>> defined as " + *importName + in addUndefinedData()
606 toString(existing->getFile()) + "\n>>> defined as " + in addUndefinedGlobal()
649 ctx.whyExtractRecords.emplace_back(toString(file), s->getFile(), * in addUndefinedTable()
[all...]
H A DLTO.cpp112 std::nullopt, 0, f->getFile(), in add()
115 replaceSymbol<UndefinedData>(s, s->getName(), 0, s->getFile()); in add()
141 r.Prevailing = !objSym.isUndefined() && sym->getFile() == &f; in compile()
/llvm-project/llvm/unittests/Bitstream/
H A DBitstreamWriterTest.cpp87 MemoryBuffer::getFile(TestFile.path()); in TEST_P()
105 MemoryBuffer::getFile(TestFile.path()); in TEST_P()
130 MemoryBuffer::getFile(TestFile.path()); in TEST_P()
/llvm-project/llvm/unittests/IR/
H A DMetadataTest.cpp93 DIFile *getFile() { in getFile() function in __anon4a99ddaa0111::MetadataTest
98 Context, 1, getFile(), "clang", false, "-g", 2, "", in getUnit()
429 DIFile *File = getFile(); in TEST_F()
922 DIScope *S = DILexicalBlock::get(Context, N, getFile(), 3, 4); in TEST_F()
979 auto *F = getFile(); in TEST_F()
999 auto *F = getFile(); in TEST_F()
1033 auto *FA = getFile(); in TEST_F()
1034 auto *FB = getFile(); in TEST_F()
1035 auto *FI = getFile(); in TEST_F()
1063 auto *FA = getFile(); in TEST_F()
[all...]
/llvm-project/flang/include/flang/Frontend/
H A DFrontendAction.h76 return currentInput.getFile(); in getCurrentFile()
82 ? currentInput.getFile() in getCurrentFileOrBufferName()
/llvm-project/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/clang/lib/Basic/
H A DSourceManager.cpp280 SrcMgr::FileInfo &FileInfo = Entry.getFile(); in AddLineNote()
762 if (Entry->getFile().getContentCache().OrigEntry) in getBufferDataIfLoaded()
763 return Entry->getFile().getName(); in getBufferDataIfLoaded()
777 return Entry->getFile().getContentCache().getBufferDataIfLoaded();
783 if (auto B = Entry->getFile().getContentCache().getBufferOrNone( in getFileIDSlow()
1140 Entry.getFile().getContentCache().getBufferOrNone(Diag, getFileManager(), in getColumnNumber()
1335 Content = &Entry.getFile().getContentCache(); in getLineNumber()
1447 const SrcMgr::FileInfo &FI = SEntry->getFile(); in getFileCharacteristic()
1498 const SrcMgr::FileInfo &FI = Entry.getFile(); in getPresumedLoc()
1572 const SrcMgr::FileInfo &FI = Entry->getFile(); in getFileIDSize()
[all...]
/llvm-project/llvm/include/llvm/Support/
H A DMemoryBuffer.h98 getFile(const Twine &Filename, bool IsText = false,
203 getFile(const Twine &Filename, bool IsVolatile = false,
267 getFile(const Twine &Filename, int64_t FileSize = -1);
/llvm-project/lld/COFF/
H A DMinGW.cpp159 if (!sym->getFile()) in shouldExport()
162 StringRef libName = sys::path::filename(sym->getFile()->parentName); in shouldExport()
169 StringRef fileName = sys::path::filename(sym->getFile()->getName()); in shouldExport()
/llvm-project/clang-tools-extra/clang-doc/
H A DMapper.cpp61 getFile(D, D->getASTContext(), CDCtx.SourceRoot, IsFileInRootDir); in VisitEnumDecl()
124 llvm::SmallString<128> MapASTVisitor::getFile(const NamedDecl *D,
98 llvm::SmallString<128> MapASTVisitor::getFile(const NamedDecl *D, getFile() function in clang::doc::MapASTVisitor
/llvm-project/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h527 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); } in getFile() function
686 if (auto *F = getFile()) in getFilename()
692 if (auto *F = getFile()) in getDirectory()
698 if (auto *F = getFile()) in getSource()
1070 return getTemporary(getContext(), getTag(), getName(), getFile(), getLine(),
1234 getContext(), getTag(), getName(), getFile(), getLine(), getScope(),
1547 getContext(), getSourceLanguage(), getFile(), getProducer(),
1789 getFile(), getLine(), getType(), getScopeLine(),
2062 DIFile *getFile() const { return getScope()->getFile(); }
2025 DIFile *getFile() const { return getScope()->getFile(); } getFile() function
2673 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); } getFile() function
[all...]
/llvm-project/clang/tools/clang-refactor/
H A DTestSupport.cpp95 llvm::MemoryBuffer::getFile(File); in printRewrittenSources()
165 MemoryBuffer::getFile(Filename); in getLineColumn()
298 MemoryBuffer::getFile(Filename); in findTestSelectionRanges()
/llvm-project/llvm/unittests/Testing/Support/
H A DTempPathTest.cpp52 MemoryBuffer::getFile(File1->path()); in TEST()
81 MemoryBuffer::getFile(Link1->path()); in TEST()
/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h499 const FileInfo &getFile() const { in getFile() function
500 return const_cast<SLocEntry *>(this)->getFile(); in getFile()
503 FileInfo &getFile() { in getFile() function
1053 return Entry->getFile().getContentCache().getBufferOrNone(
1079 return Entry->getFile().getContentCache().OrigEntry; in getFileEntryRefForID()
1092 if (auto FE = SLocEntry.getFile().getContentCache().OrigEntry) in getFileEntryForSLocEntry()
1120 return Entry->getFile().NumCreatedFIDs; in getNumCreatedFIDsForFileID()
1131 assert((Force || Entry->getFile().NumCreatedFIDs == 0) && "Already set!");
1132 Entry->getFile().NumCreatedFIDs = NumFIDs;
1173 return Entry->getFile() in getIncludeLoc()
[all...]

12345678910>>...12