/llvm-project/clang-tools-extra/include-cleaner/unittests/ |
H A D | RecordTest.cpp |
|
/llvm-project/clang/unittests/Basic/ |
H A D | FileManagerTest.cpp | 184 // 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 D | FrontendAction.cpp | 45 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 D | llvm-omp-kernel-replay.cpp | 60 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 D | Symbols.h | 94 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 D | SymbolTable.cpp | 147 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 D | MapFile.cpp | 80 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 D | Symbols.cpp | 109 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 D | PGOCtxProfReaderWriterTest.cpp | 107 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 D | DebugTranslation.cpp | 126 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 D | DebugImporter.cpp | 67 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 D | SymbolTable.cpp | 149 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 D | LTO.cpp | 112 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 D | BitstreamWriterTest.cpp | 87 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 D | MetadataTest.cpp | 93 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 D | FrontendAction.h | 76 return currentInput.getFile(); in getCurrentFile() 82 ? currentInput.getFile() in getCurrentFileOrBufferName()
|
/llvm-project/llvm/include/llvm/Support/FileSystem/ |
H A D | UniqueID.h | 48 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 D | SourceManager.cpp | 280 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 D | MemoryBuffer.h | 98 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 D | MinGW.cpp | 159 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 D | Mapper.cpp | 61 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 D | DebugInfoMetadata.h | 527 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 D | TestSupport.cpp | 95 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 D | TempPathTest.cpp | 52 MemoryBuffer::getFile(File1->path()); in TEST() 81 MemoryBuffer::getFile(Link1->path()); in TEST()
|
/llvm-project/clang/include/clang/Basic/ |
H A D | SourceManager.h | 499 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...] |