Home
last modified time | relevance | path

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

/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.h39 typedef std::map<FileOffset, FileEdit> FileEditsTy;
58 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
73 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
75 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
76 FileOffset InsertFromRangeOffs, unsigned Len,
78 void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len);
80 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs,
82 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
/external/clang/lib/Edit/
DEditedSource.cpp31 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset()
54 FileOffset Offs, StringRef text, in commitInsert()
84 FileOffset Offs, in commitInsertFromRange()
85 FileOffset InsertFromRangeOffs, unsigned Len, in commitInsertFromRange()
91 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange()
92 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange()
99 FileOffset B = I->first; in commitInsertFromRange()
100 FileOffset E = B.getWithOffset(FA.RemoveLen); in commitInsertFromRange()
116 FileOffset B = I->first; in commitInsertFromRange()
117 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.h979 unsigned FileOffset = Entry.getOffset(); in getLocForStartOfFile() local
980 return SourceLocation::getFileLoc(FileOffset); in getLocForStartOfFile()
991 unsigned FileOffset = Entry.getOffset(); in getLocForEndOfFile() local
992 return SourceLocation::getFileLoc(FileOffset + getFileIDSize(FID)); in getLocForEndOfFile()
/external/clang/tools/libclang/
DCXSourceLocation.cpp339 unsigned FileOffset = LocInfo.second; in clang_getSpellingLocation() local
347 *line = SM.getLineNumber(FID, FileOffset); in clang_getSpellingLocation()
349 *column = SM.getColumnNumber(FID, FileOffset); in clang_getSpellingLocation()
351 *offset = FileOffset; in clang_getSpellingLocation()
376 unsigned FileOffset = LocInfo.second; in clang_getFileLocation() local
384 *line = SM.getLineNumber(FID, FileOffset); in clang_getFileLocation()
386 *column = SM.getColumnNumber(FID, FileOffset); in clang_getFileLocation()
388 *offset = FileOffset; in clang_getFileLocation()
DIndexingContext.cpp896 unsigned FileOffset = LocInfo.second; in translateLoc() local
907 *line = SM.getLineNumber(FID, FileOffset); in translateLoc()
909 *column = SM.getColumnNumber(FID, FileOffset); in translateLoc()
911 *offset = FileOffset; in translateLoc()
/external/clang/lib/Frontend/
DCacheTokens.cpp606 uint32_t FileOffset; member in __anon67da98f30611::PTHIdKey
635 key->FileOffset = Out.tell(); in EmitKey()
687 Emit32(IIDMap[i].FileOffset); in EmitIdentifierTable()
DTextDiagnostic.cpp1081 unsigned FileOffset = LocInfo.second; in emitSnippetAndCaret() local
1089 unsigned LineNo = SM.getLineNumber(FID, FileOffset); in emitSnippetAndCaret()
1090 unsigned ColNo = SM.getColumnNumber(FID, FileOffset); in emitSnippetAndCaret()
1098 const char *TokPtr = BufStart+FileOffset; in emitSnippetAndCaret()
/external/llvm/tools/macho-dump/
Dmacho-dump.cpp55 uint64_t FileOffset, uint64_t FileSize, in DumpSegmentCommandData() argument
62 outs() << " ('file_offset', " << FileOffset << ")\n"; in DumpSegmentCommandData()
/external/llvm/include/llvm/MC/
DMCMachObjectWriter.h182 const MCSectionData &SD, uint64_t FileOffset,
/external/clang/lib/Index/
DCommentToXML.cpp896 unsigned FileOffset = LocInfo.second; in visitFullComment() local
904 Result << " line=\"" << SM.getLineNumber(FID, FileOffset) in visitFullComment()
905 << "\" column=\"" << SM.getColumnNumber(FID, FileOffset) in visitFullComment()
/external/llvm/lib/MC/
DMachObjectWriter.cpp204 uint64_t FileOffset, in WriteSection() argument
212 FileOffset = 0; in WriteSection()
231 Write32(FileOffset); in WriteSection()
/external/clang/lib/Lex/
DPTHLexer.cpp58 uint32_t FileOffset = in Lex() local
75 Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset)); in Lex()
/external/clang/lib/Basic/
DSourceManager.cpp194 assert((Entries.empty() || Entries.back().FileOffset < Offset) && in AddLineNote()
229 assert((Entries.empty() || Entries.back().FileOffset < Offset) && in AddLineNote()
262 if (Entries.back().FileOffset <= Offset) in FindNearestLineEntry()
1489 unsigned MarkerLineNo = getLineNumber(LocInfo.first, Entry->FileOffset); in getPresumedLoc()
/external/clang/include/clang/Serialization/
DASTReader.h429 typedef std::pair<ModuleFile *, uint64_t> FileOffset; typedef
430 typedef SmallVector<FileOffset, 2> FileOffsetsTy;
/external/llvm/lib/Support/Windows/
DProcess.inc72 // FIXME: FileOffset in MapViewOfFile() should be aligned to not dwPageSize,
/external/clang/lib/Serialization/
DASTReader.cpp1091 unsigned FileOffset = Record[Idx++]; in ParseLineTable() local
1097 Entries.push_back(LineEntry::get(FileOffset, LineNo, FilenameID, in ParseLineTable()
DASTWriter.cpp1959 Record.push_back(LE->FileOffset); in WriteSourceManagerBlock()