/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A 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()
|
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/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 95 unsigned InitialOffset = SM.getFileOffset(Tok.getLocation()); in getOffsetAfterHeaderGuardsAndComments() 107 return SM.getFileOffset(Tok.getLocation()); in getOffsetAfterHeaderGuardsAndComments() 116 return SM.getFileOffset(Tok.getLocation()); in getOffsetAfterHeaderGuardsAndComments() 165 unsigned MaxOffset = SM.getFileOffset(Tok.getLocation()); in getMaxHeaderInsertionOffset() 167 MaxOffset = SM.getFileOffset(Tok.getLocation()); in getMaxHeaderInsertionOffset()
|
/freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
H A D | HTMLRewrite.cpp | 42 unsigned BOffset = SM.getFileOffset(B); in HighlightRange() 43 unsigned EOffset = SM.getFileOffset(E); in HighlightRange() 498 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); in SyntaxHighlightImpl() 547 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength(); in SyntaxHighlightImpl()
|
/freebsd/contrib/llvm-project/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 273 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 274 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges() 306 unsigned Offset = Sources.getFileOffset(Start); in fillRanges() 307 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges()
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | SortJavaScriptImports.cpp | 249 return FileContents.substr(SM.getFileOffset(Begin), in getSourceText() 250 SM.getFileOffset(End) - SM.getFileOffset(Begin)); in getSourceText()
|
H A D | FormatTokenLexer.cpp | 692 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral() 813 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset + 1))); in handleCSharpVerbatimAndInterpolatedStrings() 828 resetLexer(SourceMgr.getFileOffset( in handleTableGenMultilineString() 948 resetLexer(SourceMgr.getFileOffset(loc)); in handleTemplateStrings() 969 resetLexer(SourceMgr.getFileOffset(Loc)); in tryParsePythonComment() 1098 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation( in truncateToken()
|
H A D | WhitespaceManager.cpp | 141 SourceMgr.getFileOffset(OriginalWhitespaceStart); in calculateLineBreakInformation() 143 SourceMgr.getFileOffset(PreviousOriginalWhitespaceEnd); in calculateLineBreakInformation() 1692 unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) - in storeReplacement() 1693 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | Tokens.cpp | 205 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange() 208 End = SM.getFileOffset(EndLoc); in FileRange() 603 if (SM.getFileOffset(T.getLocation()) < FR.endOffset()) in tokenize()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | SourceLocation.h | 397 unsigned getFileOffset() const;
|
H A D | SourceManager.h | 1323 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 | 1277 unsigned Offset = SM.getFileOffset(FileRange.getBegin()); in makeStandaloneRange() 1278 unsigned EndOffset = SM.getFileOffset(FileRange.getEnd()); in makeStandaloneRange() 1309 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic()
|
H A D | SerializedDiagnosticPrinter.cpp | 357 Record.push_back(Loc.getFileOffset()); in AddLocToRecord()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CoverageMappingGen.cpp | 293 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro() 301 SM.getFileOffset(Loc)); in getEndOfFileOrMacro()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporter.cpp | 1598 unsigned BeginOffset = SM.getFileOffset(ExpansionRange.getBegin()); in getLengthOnSingleLine() 1599 unsigned EndOffset = SM.getFileOffset(ExpansionRange.getEnd()); in getLengthOnSingleLine()
|