| /llvm-project-15.0.7/clang/include/clang/Edit/ |
| H A D | FileOffset.h | 18 class FileOffset { 23 FileOffset() = default; 24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) {} in FileOffset() function 31 FileOffset getWithOffset(unsigned offset) const { in getWithOffset() 32 FileOffset NewOffs = *this; in getWithOffset() 37 friend bool operator==(FileOffset LHS, FileOffset RHS) { 41 friend bool operator!=(FileOffset LHS, FileOffset RHS) { 45 friend bool operator<(FileOffset LHS, FileOffset RHS) { 49 friend bool operator>(FileOffset LHS, FileOffset RHS) { 53 friend bool operator>=(FileOffset LHS, FileOffset RHS) { [all …]
|
| H A D | Commit.h | 41 FileOffset Offset; 42 FileOffset InsertFromRangeOffs; 127 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 128 FileOffset RangeOffs, unsigned RangeLen, 130 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len); 132 bool canInsert(SourceLocation loc, FileOffset &Offset); 133 bool canInsertAfterToken(SourceLocation loc, FileOffset &Offset, 135 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); 138 FileOffset &Offs, unsigned &Len); 140 void commitInsert(FileOffset offset, StringRef text, [all …]
|
| H A D | EditedSource.h | 47 using FileEditsTy = std::map<FileOffset, FileEdit>; 84 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); 95 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, 97 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 98 FileOffset InsertFromRangeOffs, unsigned Len, 100 void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len); 102 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs, 104 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | file.h | 28 using FileOffset = std::int64_t; 40 std::optional<FileOffset> knownSize() const { return knownSize_; } in knownSize() 52 std::size_t Read(FileOffset, char *, std::size_t minBytes, 60 void Truncate(FileOffset, IoErrorHandler &); 63 int ReadAsynchronously(FileOffset, char *, std::size_t, IoErrorHandler &); 65 FileOffset, const char *, std::size_t, IoErrorHandler &); 80 bool Seek(FileOffset, IoErrorHandler &); 81 bool RawSeek(FileOffset); 84 void SetPosition(FileOffset pos) { in SetPosition() 98 FileOffset position_{0}; [all …]
|
| H A D | buffer.h | 49 using FileOffset = std::int64_t; 58 FileOffset FrameAt() const { return fileOffset_ + frame_; } in FrameAt() 67 FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in ReadFrame() 95 void WriteFrame(FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in WriteFrame() 158 void Reset(FileOffset at) { in Reset() 204 FileOffset fileOffset_{0}; // file offset corresponding to buffer valid data
|
| H A D | file.cpp | 190 std::size_t OpenFile::Read(FileOffset at, char *buffer, std::size_t minBytes, in Read() 219 std::size_t OpenFile::Write(FileOffset at, const char *buffer, in Write() 248 inline static int openfile_ftruncate(int fd, OpenFile::FileOffset at) { in openfile_ftruncate() 256 void OpenFile::Truncate(FileOffset at, IoErrorHandler &handler) { in Truncate() 270 FileOffset at, char *buffer, std::size_t bytes, IoErrorHandler &handler) { in ReadAsynchronously() 298 int OpenFile::WriteAsynchronously(FileOffset at, const char *buffer, in WriteAsynchronously() 373 bool OpenFile::Seek(FileOffset at, IoErrorHandler &handler) { in Seek() 385 bool OpenFile::RawSeek(FileOffset at) { in RawSeek()
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | Commit.cpp | 53 FileOffset Offs; in insert() 67 FileOffset RangeOffs; in insertFromRange() 74 FileOffset Offs; in insertFromRange() 92 FileOffset Offs; in remove() 120 FileOffset Offs; in replace() 134 FileOffset OuterBegin; in replaceWithInner() 141 FileOffset InnerBegin; in replaceWithInner() 170 FileOffset Offs; in replaceText() 213 FileOffset Offs, unsigned Len) { in addRemove() 245 offs = FileOffset(locInfo.first, locInfo.second); in canInsert() [all …]
|
| H A D | EditedSource.cpp | 149 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange() 157 FileOffset B = I->first; in commitInsertFromRange() 174 FileOffset B = I->first; in commitInsertFromRange() 211 FileOffset B = I->first; in commitRemove() 218 FileOffset TopBegin, TopEnd; in commitRemove() 229 FileOffset B = I->first; in commitRemove() 254 FileOffset B = I->first; in commitRemove() 412 FileOffset CurOffs, CurEnd; in applyRewrites() 426 FileOffset offs = I->first; in applyRewrites() 454 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs, in getSourceText() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | DiagnosticsYamlTest.cpp | 24 makeMessage(const std::string &Message, int FileOffset, in makeMessage() argument 29 DiagMessage.FileOffset = FileOffset; in makeMessage() 36 static FileByteRange makeByteRange(int FileOffset, in makeByteRange() argument 40 Range.FileOffset = FileOffset; in makeByteRange() 47 const std::string &Message, int FileOffset, in makeDiagnostic() argument 179 EXPECT_EQ(55u, D1.Message.FileOffset); in TEST() 192 EXPECT_EQ(60u, D2.Message.FileOffset); in TEST() 202 EXPECT_EQ(10u, D2.Message.Ranges[0].FileOffset); in TEST() 208 EXPECT_EQ(72u, D3.Message.FileOffset); in TEST() 212 EXPECT_EQ(88u, D3.Notes[0].FileOffset); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Core/ |
| H A D | Diagnostic.cpp | 22 : Message(Message), FileOffset(0) {} in DiagnosticMessage() 27 : Message(Message), FileOffset(0) { in DiagnosticMessage() 35 FileOffset = Sources.getFileOffset(Loc); in DiagnosticMessage() 40 : FileOffset(0), Length(0) { in FileByteRange() 43 FileOffset = Sources.getFileOffset(Range.getBegin()); in FileByteRange() 44 Length = Sources.getFileOffset(Range.getEnd()) - FileOffset; in FileByteRange()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SourceManagerInternals.h | 34 unsigned FileOffset; member 56 E.FileOffset = Offs; in get() 68 return lhs.FileOffset < rhs.FileOffset; 72 return E.FileOffset < Offset; 76 return Offset < E.FileOffset;
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | ExplainOutputStyle.cpp | 35 : File(File), FileOffset(FileOffset), P(2, false, outs(), opts::Filters) {} in ExplainOutputStyle() 77 explainStreamOffset(Dbi, FileOffset); in explainBinaryFile() 84 explainStreamOffset(Info, FileOffset); in explainBinaryFile() 94 return FileOffset / File.pdb().getBlockSize(); in pdbBlockIndex() 99 assert(FileOffset >= BlockStart); in pdbBlockOffset() 100 return FileOffset - BlockStart; in pdbBlockOffset() 138 if (FileOffset >= File.pdb().getFileSize()) { in explainPdbBlockStatus() 140 FileOffset, File.pdb().getFileSize()); in explainPdbBlockStatus() 229 uint32_t OffsetInBlock = FileOffset - BlockMapOffset; in explainPdbBlockMapOffset() 236 uint32_t BlockIndex = FileOffset / BlockSize; in getOffsetInStream() [all …]
|
| H A D | ExplainOutputStyle.h | 29 ExplainOutputStyle(InputFile &File, uint64_t FileOffset); 62 const uint64_t FileOffset; variable
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | BufferTest.cpp | 18 using FileOffset = std::int64_t; typedef 30 void set_expect(FileOffset to) { expect_ = to; } in set_expect() 32 std::size_t Read(FileOffset at, char *to, std::size_t minBytes, in Read() 48 std::size_t Write(FileOffset at, const char *from, std::size_t bytes, in Write() 67 FileOffset expect_{0}; 87 const auto bytes{static_cast<FileOffset>(store.bytes())}; in TEST()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXSourceLocation.cpp | 325 unsigned FileOffset = LocInfo.second; in clang_getSpellingLocation() local 333 *line = SM.getLineNumber(FID, FileOffset); in clang_getSpellingLocation() 335 *column = SM.getColumnNumber(FID, FileOffset); in clang_getSpellingLocation() 337 *offset = FileOffset; in clang_getSpellingLocation() 361 unsigned FileOffset = LocInfo.second; in clang_getFileLocation() local 369 *line = SM.getLineNumber(FID, FileOffset); in clang_getFileLocation() 371 *column = SM.getColumnNumber(FID, FileOffset); in clang_getFileLocation() 373 *offset = FileOffset; in clang_getFileLocation()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/ignore-conflict/ |
| H A D | file1.yaml | 8 FileOffset: 0 18 FileOffset: 0
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeInlineSiteSymbol.cpp | 103 uint32_t &FileOffset) const { in getLineOffset() 105 FileOffset = 0; in getLineOffset() 127 FileOffset = Offset; in getLineOffset() 140 FileOffset = *NextFileOffset; in getLineOffset()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Core/ |
| H A D | Diagnostic.h | 36 unsigned FileOffset; member 56 unsigned FileOffset; member
|
| /llvm-project-15.0.7/clang-tools-extra/test/ |
| H A D | .gitattributes | 2 # rely on or check fixed character -offset, Offset: or FileOffset: locations 6 # fixed -offset, FileOffset:, or Offset: numbers in their tests.
|
| /llvm-project-15.0.7/llvm/tools/dsymutil/ |
| H A D | MachOUtils.cpp | 307 static bool createDwarfSegment(uint64_t VMAddr, uint64_t FileOffset, in createDwarfSegment() argument 311 alignTo(FileSize, 0x1000), FileOffset, in createDwarfSegment() 323 FileOffset = alignTo(FileOffset, Align); in createDwarfSegment() 324 if (FileOffset > UINT32_MAX) in createDwarfSegment() 328 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0); in createDwarfSegment() 330 FileOffset += Layout.getSectionAddressSize(Sec); in createDwarfSegment()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | MagicNumbersCheck.cpp | 207 const std::pair<FileID, unsigned> FileOffset = in isSyntheticValue() local 209 if (FileOffset.first.isInvalid()) in isSyntheticValue() 213 SourceManager->getBufferOrFake(FileOffset.first).getBufferIdentifier(); in isSyntheticValue()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 137 auto FileOffset = SM.getDecomposedLoc(ExpansionRange.getEnd()); in getEntityEndLoc() local 138 llvm::StringRef File = SM.getBufferData(FileOffset.first, &Invalid); in getEntityEndLoc() 141 SM.getLocForStartOfFile(FileOffset.first), LangOpts, File.begin(), in getEntityEndLoc() 142 File.data() + FileOffset.second, File.end()); in getEntityEndLoc()
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumerTest.cpp | 87 EXPECT_EQ(4ul, Errors[0].Message.FileOffset); in TEST() 92 EXPECT_EQ(0ul, Errors[0].Message.Ranges[0].FileOffset); in TEST()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/ |
| H A D | DiagnosticsYaml.h | 33 Io.mapRequired("FileOffset", R.FileOffset); in LLVM_YAML_IS_SEQUENCE_VECTOR() 42 Io.mapOptional("FileOffset", M.FileOffset); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/ |
| H A D | file1.yaml | 8 FileOffset: 79
|