Home
last modified time | relevance | path

Searched refs:FileOffset (Results 1 – 25 of 43) sorted by relevance

12

/external/clang/include/clang/Edit/
DFileOffset.h19 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) {
49 friend bool operator>=(FileOffset LHS, FileOffset RHS) {
[all …]
DCommit.h37 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);
125 bool canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len);
[all …]
DEditedSource.h41 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/clang/lib/Edit/
DEditedSource.cpp61 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 …]
DCommit.cpp48 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 …]
/external/clang/include/clang/Basic/
DSourceManagerInternals.h31 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;
DSourceManager.h1012 unsigned FileOffset = Entry.getOffset(); in getLocForStartOfFile() local
1013 return SourceLocation::getFileLoc(FileOffset); in getLocForStartOfFile()
1024 unsigned FileOffset = Entry.getOffset(); in getLocForEndOfFile() local
1025 return SourceLocation::getFileLoc(FileOffset + getFileIDSize(FID)); in getLocForEndOfFile()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DExplainOutputStyle.cpp32 ExplainOutputStyle::ExplainOutputStyle(InputFile &File, uint64_t FileOffset) in ExplainOutputStyle() argument
33 : File(File), FileOffset(FileOffset), P(2, false, outs()) {} in ExplainOutputStyle()
36 P.formatLine("Explaining file offset {0} of file '{1}'.", FileOffset, in dump()
75 explainStreamOffset(Dbi, FileOffset); in explainBinaryFile()
82 explainStreamOffset(Info, FileOffset); in explainBinaryFile()
92 return FileOffset / File.pdb().getBlockSize(); in pdbBlockIndex()
97 assert(FileOffset >= BlockStart); in pdbBlockOffset()
98 return FileOffset - BlockStart; in pdbBlockOffset()
136 if (FileOffset >= File.pdb().getFileSize()) { in explainPdbBlockStatus()
138 FileOffset, File.pdb().getFileSize()); in explainPdbBlockStatus()
[all …]
DExplainOutputStyle.h29 ExplainOutputStyle(InputFile &File, uint64_t FileOffset);
62 const uint64_t FileOffset; variable
/external/clang/tools/libclang/
DCXSourceLocation.cpp334 unsigned FileOffset = LocInfo.second; in clang_getSpellingLocation() local
342 *line = SM.getLineNumber(FID, FileOffset); in clang_getSpellingLocation()
344 *column = SM.getColumnNumber(FID, FileOffset); in clang_getSpellingLocation()
346 *offset = FileOffset; in clang_getSpellingLocation()
370 unsigned FileOffset = LocInfo.second; in clang_getFileLocation() local
378 *line = SM.getLineNumber(FID, FileOffset); in clang_getFileLocation()
380 *column = SM.getColumnNumber(FID, FileOffset); in clang_getFileLocation()
382 *offset = FileOffset; in clang_getFileLocation()
/external/libaom/libaom/common/
Dtools_common.h32 typedef int64_t FileOffset; typedef
38 typedef off64_t FileOffset; typedef
41 typedef off_t FileOffset; typedef
47 typedef long FileOffset; /* NOLINT */ typedef
/external/libvpx/libvpx/
Dtools_common.h29 typedef int64_t FileOffset; typedef
34 typedef off64_t FileOffset; typedef
37 typedef off_t FileOffset; typedef
43 typedef long FileOffset; /* NOLINT */ typedef
/external/llvm/tools/dsymutil/
DMachOUtils.cpp268 static void createDwarfSegment(uint64_t VMAddr, uint64_t FileOffset, in createDwarfSegment() argument
272 alignTo(FileSize, 0x1000), FileOffset, in createDwarfSegment()
284 FileOffset = alignTo(FileOffset, Align); in createDwarfSegment()
286 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0); in createDwarfSegment()
288 FileOffset += Layout.getSectionAddressSize(Sec); in createDwarfSegment()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DMachOUtils.cpp284 static void createDwarfSegment(uint64_t VMAddr, uint64_t FileOffset, in createDwarfSegment() argument
288 alignTo(FileSize, 0x1000), FileOffset, in createDwarfSegment()
300 FileOffset = alignTo(FileOffset, Align); in createDwarfSegment()
302 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0); in createDwarfSegment()
304 FileOffset += Layout.getSectionAddressSize(Sec); in createDwarfSegment()
/external/llvm/include/llvm/DebugInfo/CodeView/
DSymbolVisitorDelegate.h27 virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/
DSymbolVisitorDelegate.h29 virtual StringRef getFileNameForFileOffset(uint32_t FileOffset) = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DDbiModuleList.cpp274 uint32_t FileOffset = FileNameOffsets[Index]; in getFileName() local
275 Names.setOffset(FileOffset); in getFileName()
/external/llvm/tools/llvm-readobj/
DCOFFDumper.cpp97 StringRef getFileNameForFileOffset(uint32_t FileOffset);
98 void printFileNameForOffset(StringRef Label, uint32_t FileOffset);
172 StringRef getFileNameForFileOffset(uint32_t FileOffset) override { in getFileNameForFileOffset() argument
173 return CD.getFileNameForFileOffset(FileOffset); in getFileNameForFileOffset()
1026 StringRef COFFDumper::getFileNameForFileOffset(uint32_t FileOffset) { in getFileNameForFileOffset() argument
1031 if (FileOffset >= CVFileChecksumTable.size()) in getFileNameForFileOffset()
1035 StringRef Data = CVFileChecksumTable.drop_front(FileOffset); in getFileNameForFileOffset()
1047 void COFFDumper::printFileNameForOffset(StringRef Label, uint32_t FileOffset) { in printFileNameForOffset() argument
1048 W.printHex(Label, getFileNameForFileOffset(FileOffset), FileOffset); in printFileNameForOffset()
/external/llvm/lib/DebugInfo/PDB/Raw/
DDbiStream.cpp431 uint32_t FileOffset = FileNameOffsets[Index]; in getFileNameForIndex() local
432 Names.setOffset(FileOffset); in getFileNameForIndex()
/external/clang/lib/Frontend/
DCacheTokens.cpp607 uint32_t FileOffset; member in __anon034ae09e0611::PTHIdKey
636 key->FileOffset = Out.tell(); in EmitKey()
688 Emit32(IIDMap[i].FileOffset); in EmitIdentifierTable()
DTextDiagnostic.cpp1089 unsigned FileOffset = LocInfo.second; in emitSnippetAndCaret() local
1100 unsigned LineNo = SM.getLineNumber(FID, FileOffset); in emitSnippetAndCaret()
1101 unsigned ColNo = SM.getColumnNumber(FID, FileOffset); in emitSnippetAndCaret()
1109 const char *TokPtr = BufStart+FileOffset; in emitSnippetAndCaret()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DCOFFDumper.cpp120 StringRef getFileNameForFileOffset(uint32_t FileOffset);
121 void printFileNameForOffset(StringRef Label, uint32_t FileOffset);
215 StringRef getFileNameForFileOffset(uint32_t FileOffset) override { in getFileNameForFileOffset() argument
216 return CD.getFileNameForFileOffset(FileOffset); in getFileNameForFileOffset()
1188 StringRef COFFDumper::getFileNameForFileOffset(uint32_t FileOffset) { in getFileNameForFileOffset() argument
1193 auto Iter = CVFileChecksumTable.getArray().at(FileOffset); in getFileNameForFileOffset()
1202 void COFFDumper::printFileNameForOffset(StringRef Label, uint32_t FileOffset) { in printFileNameForOffset() argument
1203 W.printHex(Label, getFileNameForFileOffset(FileOffset), FileOffset); in printFileNameForOffset()
/external/llvm/lib/MC/
DMCCodeView.cpp327 unsigned FileOffset = 8 * (Loc.getFileNum() - 1); in encodeInlineLineTable() local
329 compressAnnotation(FileOffset, Buffer); in encodeInlineLineTable()
DMachObjectWriter.cpp198 uint64_t FileOffset, unsigned Flags, in writeSection() argument
207 FileOffset = 0; in writeSection()
225 write32(FileOffset); in writeSection()
/external/llvm/include/llvm/MC/
DMCMachObjectWriter.h176 uint64_t VMAddr, uint64_t FileOffset, unsigned Flags,

12