| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 132 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 138 RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//"); in RewriteMacrosInInput() 152 unsigned PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput() 153 unsigned RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 175 RawOffs = SM.getFileOffset(RawTok.getLocation()); in RewriteMacrosInInput() 199 PPOffs = SM.getFileOffset(PPLoc); in RewriteMacrosInInput()
|
| H A D | InclusionRewriter.cpp | 341 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line, in CommentOutDirective() 361 SM.getFileOffset(DirectiveToken.getLocation()) + in CommentOutDirective() 407 unsigned NextToWrite = SM.getFileOffset(RawLex.getSourceLocation()); in Process() 489 SM.getFileOffset(HashToken.getLocation()), in Process() 505 SM.getFileOffset(RawToken.getLocation()) + in Process() 528 SM.getFileOffset(RawToken.getLocation()) + in Process() 544 SM.getFileOffset(SM.getLocForEndOfFile(FileId)), LocalEOL, in Process()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Core/ |
| H A 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()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 208 unsigned FullSourceLoc::getFileOffset() const { in getFileOffset() function in FullSourceLoc 210 return SrcMgr->getFileOffset(*this); in getFileOffset() 215 return SrcMgr->getLineNumber(getFileID(), getFileOffset(), Invalid); in getLineNumber() 220 return SrcMgr->getColumnNumber(getFileID(), getFileOffset(), Invalid); in getColumnNumber()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
| H A 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()
|
| /freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | HTMLRewrite.cpp | 41 unsigned BOffset = SM.getFileOffset(B); in HighlightRange() 42 unsigned EOffset = SM.getFileOffset(E); in HighlightRange() 497 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); in SyntaxHighlightImpl() 546 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength(); in SyntaxHighlightImpl()
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | SortJavaScriptImports.cpp | 247 return FileContents.substr(SM.getFileOffset(Begin), in getSourceText() 248 SM.getFileOffset(End) - SM.getFileOffset(Begin)); in getSourceText()
|
| H A D | FormatTokenLexer.cpp | 728 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(S))); in tryParseJavaTextBlock() 787 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral() 905 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset + 1))); in handleCSharpVerbatimAndInterpolatedStrings() 920 resetLexer(SourceMgr.getFileOffset( in handleTableGenMultilineString() 1040 resetLexer(SourceMgr.getFileOffset(loc)); in handleTemplateStrings() 1061 resetLexer(SourceMgr.getFileOffset(Loc)); in tryParsePythonComment() 1190 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation( in truncateToken()
|
| H A D | WhitespaceManager.cpp | 141 SourceMgr.getFileOffset(OriginalWhitespaceStart); in calculateLineBreakInformation() 143 SourceMgr.getFileOffset(PreviousOriginalWhitespaceEnd); in calculateLineBreakInformation() 1690 unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) - in storeReplacement() 1691 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
|
| /freebsd/contrib/llvm-project/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 273 const auto Offset = Sources.getFileOffset(Start); in fillRanges() 274 const auto Length = Sources.getFileOffset(End) - Offset; in fillRanges() 285 Length = Sources.getFileOffset(Sources.getLocForEndOfFile(ID)) - Offsets[0]; in fillRanges()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 203 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange() 206 End = SM.getFileOffset(EndLoc); in FileRange() 601 if (SM.getFileOffset(T.getLocation()) < FR.endOffset()) in tokenize()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | SourceLocation.h | 399 unsigned getFileOffset() const;
|
| H A D | SourceManager.h | 1325 unsigned getFileOffset(SourceLocation SpellingLoc) const { in getFileOffset() function
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 472 Source.substr(0, SM.getFileOffset(Range.getBegin())); in getAssociatedRange()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | ASTUnit.cpp | 1278 unsigned Offset = SM.getFileOffset(FileRange.getBegin()); in makeStandaloneRange() 1279 unsigned EndOffset = SM.getFileOffset(FileRange.getEnd()); in makeStandaloneRange() 1310 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic()
|
| H A D | SerializedDiagnosticPrinter.cpp | 356 Record.push_back(Loc.getFileOffset()); in AddLocToRecord()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 291 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro() 299 SM.getFileOffset(Loc)); in getEndOfFileOrMacro()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporter.cpp | 1615 unsigned BeginOffset = SM.getFileOffset(ExpansionRange.getBegin()); in getLengthOnSingleLine() 1616 unsigned EndOffset = SM.getFileOffset(ExpansionRange.getEnd()); in getLengthOnSingleLine()
|