Home
last modified time | relevance | path

Searched refs:getFileOffset (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp133 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 DInclusionRewriter.cpp341 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 DDiagnostic.cpp35 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 DHeaderIncludes.cpp95 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 DHTMLRewrite.cpp42 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 DClangFormat.cpp273 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 DSortJavaScriptImports.cpp249 return FileContents.substr(SM.getFileOffset(Begin), in getSourceText()
250 SM.getFileOffset(End) - SM.getFileOffset(Begin)); in getSourceText()
H A DFormatTokenLexer.cpp692 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 DWhitespaceManager.cpp141 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 DTokens.cpp205 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 DSourceLocation.h397 unsigned getFileOffset() const;
H A DSourceManager.h1323 unsigned getFileOffset(SourceLocation SpellingLoc) const { in getFileOffset() function
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp472 Source.substr(0, SM.getFileOffset(Range.getBegin())); in getAssociatedRange()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DASTUnit.cpp1277 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 DSerializedDiagnosticPrinter.cpp357 Record.push_back(Loc.getFileOffset()); in AddLocToRecord()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp293 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro()
301 SM.getFileOffset(Loc)); in getEndOfFileOrMacro()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp1598 unsigned BeginOffset = SM.getFileOffset(ExpansionRange.getBegin()); in getLengthOnSingleLine()
1599 unsigned EndOffset = SM.getFileOffset(ExpansionRange.getEnd()); in getLengthOnSingleLine()