Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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.cpp325 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line, in CommentOutDirective()
337 SM.getFileOffset(DirectiveToken.getLocation()) + in CommentOutDirective()
382 unsigned NextToWrite = SM.getFileOffset(RawLex.getSourceLocation()); in Process()
458 SM.getFileOffset(HashToken.getLocation()), in Process()
474 SM.getFileOffset(RawToken.getLocation()) + in Process()
497 SM.getFileOffset(RawToken.getLocation()) + in Process()
513 SM.getFileOffset(SM.getLocForEndOfFile(FileId)), LocalEOL, in Process()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/tools/c-index-test/
H A Dcore_main.cpp112 unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc)); in handleDeclOccurrence()
113 unsigned Col = SM.getColumnNumber(FID, SM.getFileOffset(Loc)); in handleDeclOccurrence()
150 unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc)); in handleModuleOccurrence()
151 unsigned Col = SM.getColumnNumber(FID, SM.getFileOffset(Loc)); in handleModuleOccurrence()
173 unsigned Line = SM.getLineNumber(FID, SM.getFileOffset(Loc)); in handleMacroOccurrence()
174 unsigned Col = SM.getColumnNumber(FID, SM.getFileOffset(Loc)); in handleMacroOccurrence()
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DSourceLocation.cpp210 unsigned FullSourceLoc::getFileOffset() const { in getFileOffset() function in FullSourceLoc
212 return SrcMgr->getFileOffset(*this); in getFileOffset()
217 return SrcMgr->getLineNumber(getFileID(), getFileOffset(), Invalid); in getLineNumber()
222 return SrcMgr->getColumnNumber(getFileID(), getFileOffset(), Invalid); in getColumnNumber()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Rewrite/
H A DHTMLRewrite.cpp40 unsigned BOffset = SM.getFileOffset(B); in HighlightRange()
41 unsigned EOffset = SM.getFileOffset(E); in HighlightRange()
465 unsigned TokOffs = SM.getFileOffset(Tok.getLocation()); in SyntaxHighlight()
514 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength(); in SyntaxHighlight()
/openbsd-src/gnu/llvm/clang/tools/clang-format/
H A DClangFormat.cpp262 unsigned Offset = Sources.getFileOffset(Start); in fillRanges()
263 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges()
295 unsigned Offset = Sources.getFileOffset(Start); in fillRanges()
296 unsigned Length = Sources.getFileOffset(End) - Offset; in fillRanges()
/openbsd-src/gnu/llvm/clang/lib/Format/
H A DSortJavaScriptImports.cpp251 return FileContents.substr(SM.getFileOffset(Begin), in getSourceText()
252 SM.getFileOffset(End) - SM.getFileOffset(Begin)); in getSourceText()
H A DFormatTokenLexer.cpp612 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset))); in tryParseJSRegexLiteral()
733 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation(Offset + 1))); in handleCSharpVerbatimAndInterpolatedStrings()
799 resetLexer(SourceMgr.getFileOffset(loc)); in handleTemplateStrings()
820 resetLexer(SourceMgr.getFileOffset(Loc)); in tryParsePythonComment()
949 resetLexer(SourceMgr.getFileOffset(Lex->getSourceLocation( in truncateToken()
H A DWhitespaceManager.cpp126 SourceMgr.getFileOffset(OriginalWhitespaceStart); in calculateLineBreakInformation()
128 SourceMgr.getFileOffset(PreviousOriginalWhitespaceEnd); in calculateLineBreakInformation()
1447 unsigned WhitespaceLength = SourceMgr.getFileOffset(Range.getEnd()) - in storeReplacement()
1448 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Syntax/
H A DTokens.cpp257 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange()
260 End = SM.getFileOffset(EndLoc); in FileRange()
648 if (SM.getFileOffset(T.getLocation()) < FR.endOffset()) in tokenize()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DSourceLocation.h396 unsigned getFileOffset() const;
H A DSourceManager.h1297 unsigned getFileOffset(SourceLocation SpellingLoc) const { in getFileOffset() function
/openbsd-src/gnu/llvm/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp423 Source.substr(0, SM.getFileOffset(Range.getBegin())); in getAssociatedRange()
/openbsd-src/gnu/llvm/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp1003 unsigned Begin = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(BeginLoc)); in getSourceRangeOffsets()
1004 unsigned End = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(EndLoc)); in getSourceRangeOffsets()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DASTUnit.cpp1257 unsigned Offset = SM.getFileOffset(FileRange.getBegin()); in makeStandaloneRange()
1258 unsigned EndOffset = SM.getFileOffset(FileRange.getEnd()); in makeStandaloneRange()
1289 OutDiag.LocOffset = SM.getFileOffset(FileLoc); in makeStandaloneDiagnostic()
H A DSerializedDiagnosticPrinter.cpp359 Record.push_back(Loc.getFileOffset()); in AddLocToRecord()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp239 return Loc.getLocWithOffset(-SM.getFileOffset(Loc)); in getStartOfFileOrMacro()
247 SM.getFileOffset(Loc)); in getEndOfFileOrMacro()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp1585 unsigned BeginOffset = SM.getFileOffset(ExpansionRange.getBegin()); in getLengthOnSingleLine()
1586 unsigned EndOffset = SM.getFileOffset(ExpansionRange.getEnd()); in getLengthOnSingleLine()