/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 133 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 139 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 153 unsigned PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput() 154 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 176 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 200 PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
|
D | InclusionRewriter.cpp | 342 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line, in CommentOutDirective() 354 SM.getFileOffset(DirectiveToken.getLocation()) + in CommentOutDirective() 400 unsigned NextToWrite = SM.getFileOffset(RawLex.getSourceLocation()); in Process() 476 SM.getFileOffset(HashToken.getLocation()), in Process() 492 SM.getFileOffset(RawToken.getLocation()) + in Process() 515 SM.getFileOffset(RawToken.getLocation()) + in Process() 531 SM.getFileOffset(SM.getLocForEndOfFile(FileId)), LocalEOL, in Process()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteMacros.cpp | 134 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 140 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 154 unsigned PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput() 155 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 177 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 201 PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
|
D | InclusionRewriter.cpp | 298 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line, in CommentOutDirective() 310 SM.getFileOffset(DirectiveToken.getLocation()) + in CommentOutDirective() 426 unsigned NextToWrite = SM.getFileOffset(RawLex.getSourceLocation()); in Process() 526 OutputContentUpTo(FromFile, NextToWrite, SM.getFileOffset(Loc), in Process() 530 SM.getFileOffset(RawToken.getLocation()) + in Process() 538 SM.getFileOffset(RawToken.getLocation()) + in Process() 557 SM.getFileOffset(RawToken.getLocation()) + in Process() 572 SM.getFileOffset(SM.getLocForEndOfFile(FileId)), LocalEOL, in Process()
|
/external/llvm-project/lld/MachO/ |
D | Symbols.cpp | 38 uint64_t Defined::getFileOffset() const { in getFileOffset() function in Defined 44 return isec->getFileOffset() + value; in getFileOffset() 51 uint64_t DSOHandle::getFileOffset() const { return header->fileOff; } in getFileOffset() function in DSOHandle
|
D | Symbols.h | 54 virtual uint64_t getFileOffset() const { in getFileOffset() function 100 uint64_t getFileOffset() const override; 204 uint64_t getFileOffset() const override;
|
D | InputSection.h | 43 uint64_t getFileOffset() const;
|
D | InputSection.cpp | 25 uint64_t InputSection::getFileOffset() const { in getFileOffset() function in InputSection
|
/external/llvm-project/clang/lib/Tooling/Core/ |
D | Diagnostic.cpp | 35 FileOffset = Sources.getFileOffset(Loc); in DiagnosticMessage() 43 FileOffset = Sources.getFileOffset(Range.getBegin()); in FileByteRange() 44 Length = Sources.getFileOffset(Range.getEnd()) - FileOffset; in FileByteRange()
|
/external/llvm-project/clang/tools/c-index-test/ |
D | core_main.cpp | 105 unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc)); in handleDeclOccurrence() 106 unsigned Col = SM.getColumnNumber(FID, SM.getFileOffset(Loc)); in handleDeclOccurrence() 143 unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc)); in handleModuleOccurrence() 144 unsigned Col = SM.getColumnNumber(FID, SM.getFileOffset(Loc)); in handleModuleOccurrence() 166 unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc)); in handleMacroOccurrence() 167 unsigned Col = SM.getColumnNumber(FID, SM.getFileOffset(Loc)); in handleMacroOccurrence()
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceLocation.cpp | 198 unsigned FullSourceLoc::getFileOffset() const { in getFileOffset() function in FullSourceLoc 200 return SrcMgr->getFileOffset(*this); in getFileOffset() 205 return SrcMgr->getLineNumber(getFileID(), getFileOffset(), Invalid); in getLineNumber() 210 return SrcMgr->getColumnNumber(getFileID(), getFileOffset(), Invalid); in getColumnNumber()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Selection.cpp | 220 return SM.getFileOffset(Tok.endLocation()) <= SelBegin; in SelectionTester() 224 return SM.getFileOffset(Tok.location()) < SelEnd; in SelectionTester() 244 S.Offset = SM.getFileOffset(Sel[I].location()); in SelectionTester() 303 return testTokenRange(SM.getFileOffset(Batch.front().location()), in testChunk() 304 SM.getFileOffset(Batch.back().location())); in testChunk() 314 return testToken(SM.getFileOffset(Loc)); in testChunk() 326 return testTokenRange(SM.getFileOffset(ArgStart), in testChunk() 327 SM.getFileOffset(ArgEnd)); in testChunk() 794 unsigned Offset = Tokens.sourceManager().getFileOffset(Tok.location()); in pointBounds()
|
/external/llvm-project/clang/lib/Tooling/Inclusions/ |
D | HeaderIncludes.cpp | 94 unsigned InitialOffset = SM.getFileOffset(Tok.getLocation()); in getOffsetAfterHeaderGuardsAndComments() 106 return SM.getFileOffset(Tok.getLocation()); in getOffsetAfterHeaderGuardsAndComments() 115 return SM.getFileOffset(Tok.getLocation()); in getOffsetAfterHeaderGuardsAndComments() 164 unsigned MaxOffset = SM.getFileOffset(Tok.getLocation()); in getMaxHeaderInsertionOffset() 166 MaxOffset = SM.getFileOffset(Tok.getLocation()); in getMaxHeaderInsertionOffset()
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 161 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 162 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges() 194 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 195 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | ExpandMacro.cpp | 57 return SM.getFileOffset(T.location()) <= CursorOffset; in REGISTER_TWEAK() 74 auto *T = findTokenUnderCursor(SM, Spelled, SM.getFileOffset(Cursor)); in findIdentifierUnderCursor()
|
D | DefineInline.cpp | 218 unsigned BodyBegin = SM.getFileOffset(OrigBodyRange->getBegin()); in qualifyAllDecls() 220 SM.getFileOffset(OrigBodyRange->getEnd())); in qualifyAllDecls() 478 unsigned int SourceLen = SM.getFileOffset(DefRange->getEnd()) - in apply() 479 SM.getFileOffset(DefRange->getBegin()); in apply()
|
/external/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 40 unsigned BOffset = SM.getFileOffset(B); in HighlightRange() 41 unsigned EOffset = SM.getFileOffset(E); in HighlightRange() 377 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); in SyntaxHighlight() 425 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength(); in SyntaxHighlight()
|
/external/llvm-project/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 40 unsigned BOffset = SM.getFileOffset(B); in HighlightRange() 41 unsigned EOffset = SM.getFileOffset(E); in HighlightRange() 464 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); in SyntaxHighlight() 513 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength(); in SyntaxHighlight()
|
/external/llvm-project/clang/tools/clang-format/ |
D | ClangFormat.cpp | 226 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 227 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges() 259 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 260 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges()
|
/external/clang/lib/Format/ |
D | SortJavaScriptImports.cpp | 235 return FileContents.substr(SM.getFileOffset(Begin), in getSourceText() 236 SM.getFileOffset(End) - SM.getFileOffset(Begin)); in getSourceText()
|
D | WhitespaceManager.cpp | 113 SourceMgr.getFileOffset(Changes[i].OriginalWhitespaceRange.getBegin()); in calculateLineBreakInformation() 114 unsigned PreviousOriginalWhitespaceEnd = SourceMgr.getFileOffset( in calculateLineBreakInformation() 499 unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) - in storeReplacement() 500 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
|
/external/llvm-project/clang/lib/Format/ |
D | SortJavaScriptImports.cpp | 238 return FileContents.substr(SM.getFileOffset(Begin), in getSourceText() 239 SM.getFileOffset(End) - SM.getFileOffset(Begin)); in getSourceText()
|
D | WhitespaceManager.cpp | 117 SourceMgr.getFileOffset(OriginalWhitespaceStart); in calculateLineBreakInformation() 119 SourceMgr.getFileOffset(PreviousOriginalWhitespaceEnd); in calculateLineBreakInformation() 881 unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) - in storeReplacement() 882 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | SourceCodeTests.cpp | 658 EXPECT_EQ(AST.getSourceManager().getFileOffset(Range->getBegin()), in TEST() 660 EXPECT_EQ(AST.getSourceManager().getFileOffset(Range->getEnd()), in TEST() 678 EXPECT_EQ(SM.getFileOffset(includeHashLoc(Foo, SM)), in TEST() 681 EXPECT_EQ(SM.getFileOffset(includeHashLoc(Bar, SM)), in TEST()
|
D | SelectionTests.cpp | 59 offsetToPosition(Buffer, SM.getFileOffset(FileRange->getBegin())), in nodeRange() 60 offsetToPosition(Buffer, SM.getFileOffset(FileRange->getEnd()))}; in nodeRange()
|