/external/clang/include/clang/Edit/ |
D | FileOffset.h | 1 //===----- FileOffset.h - Offset in a file ----------------------*- C++ -*-===// 19 class FileOffset { 23 FileOffset() : Offs(0) { } in FileOffset() function 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) { 40 friend bool operator!=(FileOffset LHS, FileOffset RHS) { 43 friend bool operator<(FileOffset LHS, FileOffset RHS) { 46 friend bool operator>(FileOffset LHS, FileOffset RHS) { [all …]
|
D | Commit.h | 13 #include "clang/Edit/FileOffset.h" 37 FileOffset Offset; 38 FileOffset InsertFromRangeOffs; 115 FileOffset Offs, StringRef text, bool beforePreviousInsertions); 116 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 117 FileOffset RangeOffs, unsigned RangeLen, 119 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len); 121 bool canInsert(SourceLocation loc, FileOffset &Offset); 122 bool canInsertAfterToken(SourceLocation loc, FileOffset &Offset, 124 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); [all …]
|
D | EditedSource.h | 14 #include "clang/Edit/FileOffset.h" 41 typedef std::map<FileOffset, FileEdit> FileEditsTy; 64 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); 75 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, 77 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 78 FileOffset InsertFromRangeOffs, unsigned Len, 80 void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len); 82 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs, 84 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
|
/external/llvm-project/clang/include/clang/Edit/ |
D | FileOffset.h | 1 //===- FileOffset.h - Offset in a file --------------------------*- C++ -*-===// 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) { [all …]
|
D | Commit.h | 14 #include "clang/Edit/FileOffset.h" 41 FileOffset Offset; 42 FileOffset InsertFromRangeOffs; 126 FileOffset Offs, StringRef text, bool beforePreviousInsertions); 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); [all …]
|
D | EditedSource.h | 15 #include "clang/Edit/FileOffset.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);
|
/external/llvm-project/clang/lib/Edit/ |
D | Commit.cpp | 14 #include "clang/Edit/FileOffset.h" 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() 148 FileOffset OuterEnd = OuterBegin.getWithOffset(OuterLen); in replaceWithInner() 149 FileOffset InnerEnd = InnerBegin.getWithOffset(InnerLen); in replaceWithInner() [all …]
|
D | EditedSource.cpp | 16 #include "clang/Edit/FileOffset.h" 74 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() 112 FileOffset Offs, StringRef text, in commitInsert() 142 FileOffset Offs, in commitInsertFromRange() 143 FileOffset InsertFromRangeOffs, unsigned Len, in commitInsertFromRange() 149 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange() 150 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange() 157 FileOffset B = I->first; in commitInsertFromRange() 158 FileOffset E = B.getWithOffset(FA.RemoveLen); in commitInsertFromRange() 174 FileOffset B = I->first; in commitInsertFromRange() [all …]
|
/external/clang/lib/Edit/ |
D | Commit.cpp | 48 FileOffset Offs; in insert() 62 FileOffset RangeOffs; in insertFromRange() 69 FileOffset Offs; in insertFromRange() 87 FileOffset Offs; in remove() 115 FileOffset Offs; in replace() 129 FileOffset OuterBegin; in replaceWithInner() 136 FileOffset InnerBegin; in replaceWithInner() 143 FileOffset OuterEnd = OuterBegin.getWithOffset(OuterLen); in replaceWithInner() 144 FileOffset InnerEnd = InnerBegin.getWithOffset(InnerLen); in replaceWithInner() 165 FileOffset Offs; in replaceText() [all …]
|
D | EditedSource.cpp | 61 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() 96 FileOffset Offs, StringRef text, in commitInsert() 126 FileOffset Offs, in commitInsertFromRange() 127 FileOffset InsertFromRangeOffs, unsigned Len, in commitInsertFromRange() 133 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange() 134 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange() 141 FileOffset B = I->first; in commitInsertFromRange() 142 FileOffset E = B.getWithOffset(FA.RemoveLen); in commitInsertFromRange() 158 FileOffset B = I->first; in commitInsertFromRange() 159 FileOffset E = B.getWithOffset(FA.RemoveLen); in commitInsertFromRange() [all …]
|
/external/llvm-project/clang/unittests/Tooling/ |
D | DiagnosticsYamlTest.cpp | 23 static DiagnosticMessage makeMessage(const std::string &Message, int FileOffset, in makeMessage() argument 28 DiagMessage.FileOffset = FileOffset; in makeMessage() 34 static FileByteRange makeByteRange(int FileOffset, in makeByteRange() argument 38 Range.FileOffset = FileOffset; in makeByteRange() 45 const std::string &Message, int FileOffset, in makeDiagnostic() argument 50 makeMessage(Message, FileOffset, FilePath, Fix), {}, in makeDiagnostic() 62 " FileOffset: 55\n" 74 " FileOffset: 60\n" 84 " FileOffset: 10\n" 90 " FileOffset: 72\n" [all …]
|
/external/llvm-project/flang/runtime/ |
D | file.h | 28 using FileOffset = std::int64_t; 38 FileOffset position() const { return position_; } in position() 40 std::optional<FileOffset> knownSize() const { return knownSize_; } in knownSize() 52 std::size_t Read(FileOffset, char *, std::size_t minBytes, 57 std::size_t Write(FileOffset, const char *, std::size_t, IoErrorHandler &); 60 void Truncate(FileOffset, IoErrorHandler &); 63 int ReadAsynchronously(FileOffset, char *, std::size_t, IoErrorHandler &); 65 FileOffset, const char *, std::size_t, IoErrorHandler &); 77 bool Seek(FileOffset, IoErrorHandler &); 78 bool RawSeek(FileOffset); [all …]
|
D | buffer.h | 32 using FileOffset = std::int64_t; 41 FileOffset FrameAt() const { return fileOffset_ + frame_; } in FrameAt() 50 FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in ReadFrame() 92 void WriteFrame(FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in WriteFrame() 140 void Reset(FileOffset at) { in Reset() 169 FileOffset fileOffset_{0}; // file offset corresponding to buffer valid data
|
D | file.cpp | 188 std::size_t OpenFile::Read(FileOffset at, char *buffer, std::size_t minBytes, in Read() 218 std::size_t OpenFile::Write(FileOffset at, const char *buffer, in Write() 247 inline static int openfile_ftruncate(int fd, OpenFile::FileOffset at) { in openfile_ftruncate() 255 void OpenFile::Truncate(FileOffset at, IoErrorHandler &handler) { in Truncate() 269 FileOffset at, char *buffer, std::size_t bytes, IoErrorHandler &handler) { in ReadAsynchronously() 297 int OpenFile::WriteAsynchronously(FileOffset at, const char *buffer, in WriteAsynchronously() 358 bool OpenFile::Seek(FileOffset at, IoErrorHandler &handler) { in Seek() 370 bool OpenFile::RawSeek(FileOffset at) { in RawSeek()
|
/external/lzma/CPP/Windows/ |
D | FileMapping.h | 43 LPVOID Map(DWORD desiredAccess, UInt64 fileOffset, SIZE_T numberOfBytesToMap) in Map() argument 45 …return ::MapViewOfFile(_handle, desiredAccess, (DWORD)(fileOffset >> 32), (DWORD)fileOffset, numbe… in Map() 49 LPVOID Map(DWORD desiredAccess, UInt64 fileOffset, SIZE_T numberOfBytesToMap, LPVOID baseAddress) in Map() argument 51 …return ::MapViewOfFileEx(_handle, desiredAccess, (DWORD)(fileOffset >> 32), (DWORD)fileOffset, num… in Map()
|
/external/llvm-project/llvm/tools/llvm-pdbutil/ |
D | ExplainOutputStyle.cpp | 31 ExplainOutputStyle::ExplainOutputStyle(InputFile &File, uint64_t FileOffset) in ExplainOutputStyle() argument 32 : File(File), FileOffset(FileOffset), P(2, false, outs()) {} in ExplainOutputStyle() 35 P.formatLine("Explaining file offset {0} of file '{1}'.", FileOffset, in dump() 74 explainStreamOffset(Dbi, FileOffset); in explainBinaryFile() 81 explainStreamOffset(Info, FileOffset); in explainBinaryFile() 91 return FileOffset / File.pdb().getBlockSize(); in pdbBlockIndex() 96 assert(FileOffset >= BlockStart); in pdbBlockOffset() 97 return FileOffset - BlockStart; in pdbBlockOffset() 135 if (FileOffset >= File.pdb().getFileSize()) { in explainPdbBlockStatus() 137 FileOffset, File.pdb().getFileSize()); in explainPdbBlockStatus() [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/ |
D | export-diagnostics.cpp | 24 // CHECK-YAML-NEXT: FileOffset: 30 29 // CHECK-YAML-NEXT: FileOffset: 18 33 // CHECK-YAML-NEXT: FileOffset: 0 37 // CHECK-YAML-NEXT: FileOffset: 30 45 // CHECK-YAML-NEXT: FileOffset: 13 53 // CHECK-YAML-NEXT: FileOffset: 41 59 // CHECK-YAML-NEXT: FileOffset: 41
|
/external/llvm-project/clang/lib/Tooling/Core/ |
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()
|
/external/llvm-project/clang/include/clang/Basic/ |
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;
|
/external/clang/include/clang/Basic/ |
D | SourceManagerInternals.h | 31 unsigned FileOffset; member 53 E.FileOffset = Offs; in get() 65 return lhs.FileOffset < rhs.FileOffset; 69 return E.FileOffset < Offset; 73 return Offset < E.FileOffset;
|
/external/libwebsockets/lib/misc/fts/ |
D | README.md | 199 The first byte of the file header where the magic is, is "fileoffset" 0. All 200 the stored "fileoffset"s are relative to that. 207 32-bits|Fileoffset to root trie entry 209 32-bits|Fileoffset to the filepath map 254 VLI|fileoffset of the start of this filepath's line table 262 fileoffset per filepath. This is the way to convert filepath indexes to 267 32-bit...|fileoffset to filepath table for each filepath 277 VLI|Fileoffset of first file table in this trie entry instance list 289 VLI|Fileoffset of next file table in this trie entry instance list
|
/external/skia/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 177 UINT64 fileOffset, in ReadFileFragment() argument 184 if (fileOffset > fileSize || fragmentSize > fileSize - fileOffset) { in ReadFileFragment() 190 if (!SkTFitsIn<size_t>(fileOffset + fragmentSize)) { in ReadFileFragment() 196 *fragmentStart = static_cast<BYTE const*>(data) + static_cast<size_t>(fileOffset); in ReadFileFragment() 206 if (!fStream->seek(static_cast<size_t>(fileOffset))) { in ReadFileFragment()
|
/external/skqp/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 177 UINT64 fileOffset, in ReadFileFragment() argument 184 if (fileOffset > fileSize || fragmentSize > fileSize - fileOffset) { in ReadFileFragment() 190 if (!SkTFitsIn<size_t>(fileOffset + fragmentSize)) { in ReadFileFragment() 196 *fragmentStart = static_cast<BYTE const*>(data) + static_cast<size_t>(fileOffset); in ReadFileFragment() 206 if (!fStream->seek(static_cast<size_t>(fileOffset))) { in ReadFileFragment()
|
/external/llvm-project/lld/lib/ReaderWriter/MachO/ |
D | MachONormalizedFileBinaryWriter.cpp | 176 uint32_t fileOffset; member 182 uint32_t fileOffset; member 290 _sectInfo[§].fileOffset = 0; in MachOFileLayout() 293 _sectInfo[§].fileOffset = offset; in MachOFileLayout() 510 t.fileOffset = 0; in buildFileOffsets() 515 t2.fileOffset = 0; in buildFileOffsets() 537 uint32_t fileOffset = 0; in buildFileOffsets() local 541 _segInfo[&sg].fileOffset = fileOffset; in buildFileOffsets() 546 << ", fileOffset=" << _segInfo[&sg].fileOffset << "\n"); in buildFileOffsets() 558 _sectInfo[s].fileOffset = _segInfo[&sg].fileOffset + sectOffset; in buildFileOffsets() [all …]
|
/external/libvpx/libvpx/ |
D | tools_common.h | 29 typedef int64_t FileOffset; typedef 34 typedef off64_t FileOffset; typedef 37 typedef off_t FileOffset; typedef 43 typedef long FileOffset; /* NOLINT */ typedef
|