/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 | 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/clang/lib/Edit/ |
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 …]
|
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 | 1004 unsigned FileOffset = Entry.getOffset(); in getLocForStartOfFile() local 1005 return SourceLocation::getFileLoc(FileOffset); in getLocForStartOfFile() 1016 unsigned FileOffset = Entry.getOffset(); in getLocForEndOfFile() local 1017 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/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 267 static void createDwarfSegment(uint64_t VMAddr, uint64_t FileOffset, in createDwarfSegment() argument 272 FileOffset, FileSize, /* MaxProt */ 7, in createDwarfSegment() 283 FileOffset = RoundUpToAlignment(FileOffset, Align); in createDwarfSegment() 285 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0); in createDwarfSegment() 287 FileOffset += Layout.getSectionAddressSize(Sec); in createDwarfSegment()
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 607 uint32_t FileOffset; member in __anonf90933180611::PTHIdKey 636 key->FileOffset = Out.tell(); in EmitKey() 688 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/include/llvm/MC/ |
D | MCMachObjectWriter.h | 176 uint64_t VMAddr, uint64_t FileOffset, unsigned Flags,
|
/external/clang/lib/Index/ |
D | CommentToXML.cpp | 895 unsigned FileOffset = LocInfo.second; in visitFullComment() local 903 Result << " line=\"" << SM.getLineNumber(FID, FileOffset) in visitFullComment() 904 << "\" column=\"" << SM.getColumnNumber(FID, FileOffset) in visitFullComment()
|
/external/llvm/lib/MC/ |
D | MachObjectWriter.cpp | 198 uint64_t FileOffset, unsigned Flags, in writeSection() argument 207 FileOffset = 0; in writeSection() 225 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() 1497 unsigned MarkerLineNo = getLineNumber(LocInfo.first, Entry->FileOffset); in getPresumedLoc()
|
/external/clang/include/clang/Serialization/ |
D | ASTReader.h | 446 typedef std::pair<ModuleFile *, uint64_t> FileOffset; typedef 447 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 | 1089 unsigned FileOffset = Record[Idx++]; in ParseLineTable() local 1095 Entries.push_back(LineEntry::get(FileOffset, LineNo, FilenameID, in ParseLineTable()
|
D | ASTWriter.cpp | 2014 Record.push_back(LE.FileOffset); in WriteSourceManagerBlock()
|