[Lexer] Finding beginning of token with escaped new line
authorAlexander Kornienko <alexfh@google.com>
Thu, 10 Aug 2017 10:06:16 +0000 (10:06 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 10 Aug 2017 10:06:16 +0000 (10:06 +0000)
commitcf007a76149abcb86b4cbf063d685216fedf6291
treed8e3ec5d8118cfd1676739c5245ee6458573cf6f
parent71a474d563d912bbe83b5002343193090086d4cf
[Lexer] Finding beginning of token with escaped new line

Summary:
Lexer::GetBeginningOfToken produced invalid location when
backtracking across escaped new lines.

This fixes PR26228

Reviewers: akyrtzi, alexfh, rsmith, doug.gregor

Reviewed By: alexfh

Subscribers: alexfh, cfe-commits

Patch by PaweÅ‚ Å»ukowski!

Differential Revision: https://reviews.llvm.org/D30748

llvm-svn: 310576
clang/include/clang/Lex/Lexer.h
clang/lib/Lex/Lexer.cpp
clang/unittests/Lex/LexerTest.cpp