/external/clang/include/clang/Edit/ |
D | FileOffset.h | 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) { 49 friend bool operator>=(FileOffset LHS, FileOffset RHS) { [all …]
|
D | Commit.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); 125 bool canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len); [all …]
|
D | EditedSource.h | 39 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/ |
D | EditedSource.cpp | 31 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 …]
|
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 …]
|
/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;
|
D | SourceManager.h | 979 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/ |
D | CXSourceLocation.cpp | 339 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()
|
D | IndexingContext.cpp | 896 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/ |
D | CacheTokens.cpp | 606 uint32_t FileOffset; member in __anon67da98f30611::PTHIdKey 635 key->FileOffset = Out.tell(); in EmitKey() 687 Emit32(IIDMap[i].FileOffset); in EmitIdentifierTable()
|
D | TextDiagnostic.cpp | 1081 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/ |
D | macho-dump.cpp | 55 uint64_t FileOffset, uint64_t FileSize, in DumpSegmentCommandData() argument 62 outs() << " ('file_offset', " << FileOffset << ")\n"; in DumpSegmentCommandData()
|
/external/llvm/include/llvm/MC/ |
D | MCMachObjectWriter.h | 182 const MCSectionData &SD, uint64_t FileOffset,
|
/external/clang/lib/Index/ |
D | CommentToXML.cpp | 896 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/ |
D | MachObjectWriter.cpp | 204 uint64_t FileOffset, in WriteSection() argument 212 FileOffset = 0; in WriteSection() 231 Write32(FileOffset); in WriteSection()
|
/external/clang/lib/Lex/ |
D | PTHLexer.cpp | 58 uint32_t FileOffset = in Lex() local 75 Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset)); in Lex()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 194 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/ |
D | ASTReader.h | 429 typedef std::pair<ModuleFile *, uint64_t> FileOffset; typedef 430 typedef SmallVector<FileOffset, 2> FileOffsetsTy;
|
/external/llvm/lib/Support/Windows/ |
D | Process.inc | 72 // FIXME: FileOffset in MapViewOfFile() should be aligned to not dwPageSize,
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 1091 unsigned FileOffset = Record[Idx++]; in ParseLineTable() local 1097 Entries.push_back(LineEntry::get(FileOffset, LineNo, FilenameID, in ParseLineTable()
|
D | ASTWriter.cpp | 1959 Record.push_back(LE->FileOffset); in WriteSourceManagerBlock()
|