/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) { 48 friend bool operator>(FileOffset LHS, FileOffset RHS) { 53 friend bool operator>=(FileOffset LHS, FileOffset RHS) { [all …]
|
D | Commit.h | 36 FileOffset Offset; 37 FileOffset InsertFromRangeOffs; 112 FileOffset Offs, StringRef text, bool beforePreviousInsertions); 113 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 114 FileOffset RangeOffs, unsigned RangeLen, 116 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len); 118 bool canInsert(SourceLocation loc, FileOffset &Offset); 119 bool canInsertAfterToken(SourceLocation loc, FileOffset &Offset, 121 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); 122 bool canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len); [all …]
|
D | EditedSource.h | 39 typedef std::map<FileOffset, FileEdit> FileEditsTy; 56 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); 71 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, 73 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 74 FileOffset InsertFromRangeOffs, unsigned Len, 76 void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len); 78 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs, 80 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
|
/external/clang/lib/Edit/ |
D | EditedSource.cpp | 30 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() 53 FileOffset Offs, StringRef text, in commitInsert() 85 FileOffset Offs, in commitInsertFromRange() 86 FileOffset InsertFromRangeOffs, unsigned Len, in commitInsertFromRange() 92 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange() 93 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange() 100 FileOffset B = I->first; in commitInsertFromRange() 101 FileOffset E = B.getWithOffset(FA.RemoveLen); in commitInsertFromRange() 114 FileOffset B = I->first; in commitInsertFromRange() 115 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 | 30 unsigned FileOffset; member 51 E.FileOffset = Offs; in get() 63 return lhs.FileOffset < rhs.FileOffset; 67 return E.FileOffset < Offset; 71 return Offset < E.FileOffset;
|
D | SourceManager.h | 834 unsigned FileOffset = Entry.getOffset(); in getLocForStartOfFile() local 835 return SourceLocation::getFileLoc(FileOffset); in getLocForStartOfFile() 846 unsigned FileOffset = Entry.getOffset(); in getLocForEndOfFile() local 847 return SourceLocation::getFileLoc(FileOffset + getFileIDSize(FID) - 1); in getLocForEndOfFile()
|
/external/llvm/tools/llvm-readobj/ |
D | llvm-readobj.cpp | 88 uint64_t FileOffset; in DumpSymbol() local 92 Sym.getFileOffset(FileOffset); in DumpSymbol() 114 << format(" %16" PRIx64, FileOffset) in DumpSymbol()
|
/external/clang/tools/libclang/ |
D | CXSourceLocation.cpp | 310 unsigned FileOffset = LocInfo.second; in clang_getSpellingLocation() local 318 *line = SM.getLineNumber(FID, FileOffset); in clang_getSpellingLocation() 320 *column = SM.getColumnNumber(FID, FileOffset); in clang_getSpellingLocation() 322 *offset = FileOffset; in clang_getSpellingLocation()
|
D | IndexingContext.cpp | 810 unsigned FileOffset = LocInfo.second; in translateLoc() local 821 *line = SM.getLineNumber(FID, FileOffset); in translateLoc() 823 *column = SM.getColumnNumber(FID, FileOffset); in translateLoc() 825 *offset = FileOffset; in translateLoc()
|
/external/llvm/tools/macho-dump/ |
D | macho-dump.cpp | 54 uint64_t FileOffset, uint64_t FileSize, in DumpSegmentCommandData() argument 61 outs() << " ('file_offset', " << FileOffset << ")\n"; in DumpSegmentCommandData() 135 SLC->VMSize, SLC->FileOffset, SLC->FileSize, in DumpSegmentCommand() 171 SLC->VMSize, SLC->FileOffset, SLC->FileSize, in DumpSegment64Command()
|
/external/llvm/include/llvm/Object/ |
D | MachOFormat.h | 161 uint32_t FileOffset; member 175 uint64_t FileOffset; member
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyld.cpp | 108 uint64_t FileOffset; in loadObject() local 111 Check(i->getFileOffset(FileOffset)); in loadObject() 116 (uintptr_t)FileOffset; in loadObject() 125 DEBUG(dbgs() << "\tFileOffset: " << format("%p", (uintptr_t)FileOffset) in loadObject()
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 571 uint32_t FileOffset; member in __anon9662abf70611::PTHIdKey 596 key->FileOffset = Out.tell(); in EmitKey() 647 Emit32(IIDMap[i].FileOffset); in EmitIdentifierTable()
|
D | TextDiagnostic.cpp | 839 unsigned FileOffset = LocInfo.second; in emitSnippetAndCaret() local 850 unsigned LineNo = SM.getLineNumber(FID, FileOffset); in emitSnippetAndCaret() 851 unsigned ColNo = SM.getColumnNumber(FID, FileOffset); in emitSnippetAndCaret() 856 const char *TokPtr = BufStart+FileOffset; in emitSnippetAndCaret()
|
/external/llvm/lib/Object/ |
D | MachOObject.cpp | 176 SwapValue(Value.FileOffset); in SwapStruct() 194 SwapValue(Value.FileOffset); in SwapStruct()
|
/external/llvm/lib/MC/ |
D | MachObjectWriter.cpp | 185 uint64_t FileOffset, in WriteSection() argument 193 FileOffset = 0; in WriteSection() 212 Write32(FileOffset); in WriteSection()
|
/external/llvm/include/llvm/MC/ |
D | MCMachObjectWriter.h | 164 const MCSectionData &SD, uint64_t FileOffset,
|
/external/clang/lib/Lex/ |
D | PTHLexer.cpp | 60 uint32_t FileOffset = ReadLE32(CurPtrShadow); in Lex() local 76 Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset)); in Lex()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 198 assert((Entries.empty() || Entries.back().FileOffset < Offset) && in AddLineNote() 233 assert((Entries.empty() || Entries.back().FileOffset < Offset) && in AddLineNote() 266 if (Entries.back().FileOffset <= Offset) in FindNearestLineEntry() 1372 unsigned MarkerLineNo = getLineNumber(LocInfo.first, Entry->FileOffset); in getPresumedLoc()
|
/external/clang/include/clang/Serialization/ |
D | ASTReader.h | 289 typedef std::pair<ModuleFile *, uint64_t> FileOffset; typedef 290 typedef SmallVector<FileOffset, 2> FileOffsetsTy;
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 823 unsigned FileOffset = Record[Idx++]; in ParseLineTable() local 829 Entries.push_back(LineEntry::get(FileOffset, LineNo, FilenameID, in ParseLineTable()
|
D | ASTWriter.cpp | 1616 Record.push_back(LE->FileOffset); in WriteSourceManagerBlock()
|