| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/DIA/ |
| H A D | DIAInjectedSource.cpp | 19 : SourceFile(DiaSourceFile) {} in DIAInjectedSource() 23 return (S_OK == SourceFile->get_crc(&Crc)) ? Crc : 0; in getCrc32() 28 return (S_OK == SourceFile->get_length(&Size)) ? Size : 0; in getCodeByteSize() 32 return invokeBstrMethod(*SourceFile, &IDiaInjectedSource::get_filename); in getFileName() 36 return invokeBstrMethod(*SourceFile, &IDiaInjectedSource::get_objectFilename); in getObjectFileName() 40 return invokeBstrMethod(*SourceFile, in getVirtualFileName() 46 if (S_OK != SourceFile->get_sourceCompression(&Compression)) in getCompression() 53 if (S_OK != SourceFile->get_source(0, &DataSize, nullptr)) in getCode() 57 if (S_OK != SourceFile->get_source(DataSize, &DataSize, Buffer.data())) in getCode()
|
| H A D | DIASourceFile.cpp | 21 : Session(PDBSession), SourceFile(DiaSourceFile) {} in DIASourceFile() 24 return invokeBstrMethod(*SourceFile, &IDiaSourceFile::get_fileName); in getFileName() 29 return (S_OK == SourceFile->get_uniqueId(&Id)) ? Id : 0; in getUniqueId() 34 HRESULT Result = SourceFile->get_checksum(0, &ByteSize, nullptr); in getChecksum() 38 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]); in getChecksum() 46 HRESULT Result = SourceFile->get_checksumType(&Type); in getChecksumType() 55 HRESULT Result = SourceFile->get_compilands(&DiaEnumerator); in getCompilands()
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | source.cpp | 22 SourceFile::~SourceFile() { Close(); } in ~SourceFile() 38 void SourceFile::RecordLineStarts() { in RecordLineStarts() 44 void SourceFile::IdentifyPayload() { in IdentifyPayload() 108 bool SourceFile::Open(std::string path, llvm::raw_ostream &error) { in Open() 123 bool SourceFile::ReadStandardInput(llvm::raw_ostream &error) { in ReadStandardInput() 140 void SourceFile::ReadFile() { in ReadFile() 157 void SourceFile::Close() { in Close() 162 SourcePosition SourceFile::FindOffsetLineAndColumn(std::size_t at) const { in FindOffsetLineAndColumn()
|
| H A D | provenance.cpp | 169 const SourceFile *AllSources::Open(std::string path, llvm::raw_ostream &error, in Open() 171 std::unique_ptr<SourceFile> source{std::make_unique<SourceFile>(encoding_)}; in Open() 192 const SourceFile *AllSources::ReadStandardInput(llvm::raw_ostream &error) { in ReadStandardInput() 193 std::unique_ptr<SourceFile> source{std::make_unique<SourceFile>(encoding_)}; in ReadStandardInput() 201 const SourceFile &source, ProvenanceRange from, bool isModule) { in AddIncludedFile() 294 const SourceFile *AllSources::GetSourceFile( in GetSourceFile() 312 return static_cast<const SourceFile *>(nullptr); in GetSourceFile() 355 const SourceFile *source{GetSourceFile(at)}; in GetPath() 361 const SourceFile *source{GetSourceFile(at, &offset)}; in GetLineNumber() 392 AllSources::Origin::Origin(ProvenanceRange r, const SourceFile &source) in Origin() [all …]
|
| H A D | parsing.cpp | 23 const SourceFile *Parsing::Prescan(const std::string &path, Options options) { in Prescan() 35 const SourceFile *sourceFile; in Prescan() 104 const SourceFile *sourceFile{nullptr}; in EmitPreprocessedSource()
|
| /llvm-project-15.0.7/flang/include/flang/Parser/ |
| H A D | source.h | 36 class SourceFile; variable 39 const SourceFile &file; 43 class SourceFile { 45 explicit SourceFile(Encoding e) : encoding_{e} {} in SourceFile() function 46 ~SourceFile();
|
| H A D | provenance.h | 154 const SourceFile *Open(std::string path, llvm::raw_ostream &error, 156 const SourceFile *ReadStandardInput(llvm::raw_ostream &error); 159 const SourceFile &, ProvenanceRange, bool isModule = false); 170 const SourceFile *GetSourceFile( 183 const SourceFile &source; 195 Origin(ProvenanceRange, const SourceFile &); 196 Origin(ProvenanceRange, const SourceFile &, ProvenanceRange, 214 std::vector<std::unique_ptr<SourceFile>> ownedSourceFiles_;
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | CodeCoverage.cpp | 272 CodeCoverageTool::getSourceFile(StringRef SourceFile) { in getSourceFile() argument 276 auto Loc = RemappedFilenames.find(SourceFile); in getSourceFile() 278 SourceFile = Loc->second; in getSourceFile() 281 if (isEquivalentFile(SourceFile, Files.first)) in getSourceFile() 283 auto Buffer = MemoryBuffer::getFile(SourceFile); in getSourceFile() 285 error(EC.message(), SourceFile); in getSourceFile() 288 LoadedSourceFiles.emplace_back(std::string(SourceFile), in getSourceFile() 370 auto SourceBuffer = getSourceFile(SourceFile); in createSourceFileView() 1091 for (const auto &SourceFile : SourceFiles) in doShow() local 1139 for (const std::string &SourceFile : SourceFiles) in doShow() local [all …]
|
| H A D | gcov.cpp | 22 static void reportCoverage(StringRef SourceFile, StringRef ObjectDir, in reportCoverage() argument 29 CoverageFileStem = sys::path::parent_path(SourceFile); in reportCoverage() 30 sys::path::append(CoverageFileStem, sys::path::stem(SourceFile)); in reportCoverage() 33 sys::path::append(CoverageFileStem, sys::path::stem(SourceFile)); in reportCoverage() 82 gcovOneInput(Options, SourceFile, GCNO, GCDA, GF); in reportCoverage() 176 for (const auto &SourceFile : SourceFiles) in gcovMain() local 177 reportCoverage(SourceFile, ObjectDir, InputGCNO, InputGCDA, DumpGCOV, in gcovMain()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBContext.cpp | 57 auto SourceFile = Session->getSourceFileById(LineInfo->getSourceFileId()); in getLineInfoForAddress() local 59 if (SourceFile && in getLineInfoForAddress() 61 Result.FileName = SourceFile->getFileName(); in getLineInfoForAddress() 125 auto SourceFile = Session->getSourceFileById(Line->getSourceFileId()); in getInliningInfoForAddress() local 126 if (SourceFile && in getInliningInfoForAddress() 128 LineInfo.FileName = SourceFile->getFileName(); in getInliningInfoForAddress()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | TestWorkspace.h | 44 struct SourceFile { struct 48 llvm::StringMap<SourceFile> Inputs; argument 51 void addInput(llvm::StringRef Filename, const SourceFile &Input);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyProfiling.cpp | 23 llvm::StringRef SourceFile) in StorageParams() argument 24 : Timestamp(std::chrono::system_clock::now()), SourceFilename(SourceFile) { in StorageParams() 35 llvm::sys::path::filename(SourceFile) + ".json") in StorageParams()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SourceManager.h | 851 bool isMainFile(const FileEntry &SourceFile); 900 FileID getOrCreateFileID(const FileEntry *SourceFile, 952 void overrideFileContents(const FileEntry *SourceFile, in overrideFileContents() argument 964 void overrideFileContents(const FileEntry *SourceFile, 966 void overrideFileContents(FileEntryRef SourceFile, in overrideFileContents() argument 977 void overrideFileContents(const FileEntry *SourceFile, 1000 void setFileIsTransient(const FileEntry *SourceFile); 1604 SourceLocation translateFileLineCol(const FileEntry *SourceFile, 1611 FileID translateFile(const FileEntry *SourceFile) const; 1612 FileID translateFile(FileEntryRef SourceFile) const { in translateFile() argument [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/DIA/ |
| H A D | DIASourceFile.h | 31 CComPtr<IDiaSourceFile> getDiaFile() const { return SourceFile; } in getDiaFile() 35 CComPtr<IDiaSourceFile> SourceFile; variable
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 354 bool SourceManager::isMainFile(const FileEntry &SourceFile) { in isMainFile() argument 357 return FE->getUID() == SourceFile.getUID(); in isMainFile() 532 FileID SourceManager::createFileID(const FileEntry *SourceFile, in createFileID() argument 541 FileID SourceManager::createFileID(FileEntryRef SourceFile, in createFileID() argument 588 SourceManager::getOrCreateFileID(const FileEntry *SourceFile, in getOrCreateFileID() argument 590 FileID ID = translateFile(SourceFile); in getOrCreateFileID() 699 assert(SourceFile->getSize() == NewFile->getSize() && in overrideFileContents() 702 assert(FileInfos.count(SourceFile) == 0 && in overrideFileContents() 1641 assert(SourceFile && "Null source file!"); in translateFileLineCol() 1644 FileID FirstFID = translateFile(SourceFile); in translateFileLineCol() [all …]
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | pdb-heapsite.yaml | 281 SourceFile: 4099 374 SourceFile: 4111 554 SourceFile: 4111 594 SourceFile: 4111 687 SourceFile: 4111 727 SourceFile: 4111 797 SourceFile: 4111 847 SourceFile: 4111 917 SourceFile: 4111 1092 SourceFile: 4111 [all …]
|
| H A D | pdb-thunk.yaml | 543 SourceFile: 4118 713 SourceFile: 4118 888 SourceFile: 4118 1049 SourceFile: 4183 1229 SourceFile: 4183 1269 SourceFile: 4183 1362 SourceFile: 4183 1402 SourceFile: 4183 1472 SourceFile: 4183 1522 SourceFile: 4183 [all …]
|
| /llvm-project-15.0.7/lld/test/COFF/Inputs/ |
| H A D | pdb-file-statics-b.yaml | 201 SourceFile: 4103 384 SourceFile: 4103 424 SourceFile: 4103 517 SourceFile: 4103 557 SourceFile: 4103 627 SourceFile: 4103 677 SourceFile: 4103 747 SourceFile: 4103 922 SourceFile: 4103 972 SourceFile: 4103 [all …]
|
| H A D | pdb-file-statics-a.yaml | 226 SourceFile: 4107 409 SourceFile: 4107 449 SourceFile: 4107 542 SourceFile: 4107 582 SourceFile: 4107 652 SourceFile: 4107 702 SourceFile: 4107 772 SourceFile: 4107 947 SourceFile: 4107 997 SourceFile: 4107 [all …]
|
| H A D | pdb-type-server-simple-ts.yaml | 89 SourceFile: 4096 138 SourceFile: 4108
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SourceManagerTest.cpp | 237 const FileEntry *SourceFile = in TEST_F() local 239 SourceMgr.overrideFileContents(SourceFile, std::move(Buf)); in TEST_F() 245 FileID MainFileID = SourceMgr.getOrCreateFileID(SourceFile, SrcMgr::C_User); in TEST_F() 566 const FileEntry *SourceFile = in TEST_F() local 568 SourceMgr.overrideFileContents(SourceFile, std::move(Buf)); in TEST_F() 576 FileID MainFileID = SourceMgr.getOrCreateFileID(SourceFile, SrcMgr::C_User); in TEST_F() 579 EXPECT_TRUE(SourceMgr.isMainFile(*SourceFile)); in TEST_F() 580 EXPECT_TRUE(SourceMgr.isMainFile(*SourceFile)); in TEST_F()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | TypeRecord.h | 632 UdtSourceLineRecord(TypeIndex UDT, TypeIndex SourceFile, uint32_t LineNumber) in UdtSourceLineRecord() argument 634 SourceFile(SourceFile), LineNumber(LineNumber) {} in UdtSourceLineRecord() 637 TypeIndex getSourceFile() const { return SourceFile; } in getSourceFile() 641 TypeIndex SourceFile; variable 650 UdtModSourceLineRecord(TypeIndex UDT, TypeIndex SourceFile, in UdtModSourceLineRecord() argument 653 SourceFile(SourceFile), LineNumber(LineNumber), Module(Module) {} in UdtModSourceLineRecord() 656 TypeIndex getSourceFile() const { return SourceFile; } in getSourceFile() 661 TypeIndex SourceFile; variable 681 SourceFile, ///< Path to main source file, relative or absolute enumerator
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | BackgroundIndexLoader.cpp | 98 PathRef SourceFile = ToVisit.front(); in load() local 101 auto ShardAndEdges = loadShard(SourceFile, MainFile); in load()
|
| /llvm-project-15.0.7/clang/unittests/CrossTU/ |
| H A D | CrossTranslationUnitTest.cpp | 74 llvm::ToolOutputFile SourceFile(SourceFileName, SourceFD); in HandleTranslationUnit() local 75 SourceFile.os() << SourceText; in HandleTranslationUnit() 76 SourceFile.os().flush(); in HandleTranslationUnit()
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/NativePDB/Inputs/ |
| H A D | s_constant.s | 474 # SourceFile: D:\src\llvm-mono\lldb\lit\SymbolFile\NativePDB\s_constant.cpp (0x1006) 558 # SourceFile: D:\src\llvm-mono\lldb\lit\SymbolFile\NativePDB\s_constant.cpp (0x1006) 637 # SourceFile: D:\src\llvm-mono\lldb\lit\SymbolFile\NativePDB\s_constant.cpp (0x1006) 717 # SourceFile: D:\src\llvm-mono\lldb\lit\SymbolFile\NativePDB\s_constant.cpp (0x1006) 798 # SourceFile: D:\src\llvm-mono\lldb\lit\SymbolFile\NativePDB\s_constant.cpp (0x1006) 880 # SourceFile: D:\src\llvm-mono\lldb\lit\SymbolFile\NativePDB\s_constant.cpp (0x1006)
|