diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:19 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:19 +0000 |
commit | a64ccefdf0ea4e03ec88805d71b0af74950c7472 (patch) | |
tree | b7cf762366eafda54454929b2c40a19f48a33e41 /lib/Lex/PPLexerChange.cpp | |
parent | 5a4374812c56aa60672e291b07e14d3696bbb5a6 (diff) | |
download | clang-a64ccefdf0ea4e03ec88805d71b0af74950c7472.tar.gz clang-a64ccefdf0ea4e03ec88805d71b0af74950c7472.tar.bz2 clang-a64ccefdf0ea4e03ec88805d71b0af74950c7472.tar.xz |
Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.
It already works (and is useful with) macro locs as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index d52220798e..921218208c 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -94,7 +94,7 @@ void Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir, SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) { CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID); CodeCompletionLoc = - CodeCompletionFileLoc.getFileLocWithOffset(CodeCompletionOffset); + CodeCompletionFileLoc.getLocWithOffset(CodeCompletionOffset); } EnterSourceFileWithLexer(new Lexer(FID, InputFile, *this), CurDir); |