]> granicus.if.org Git - clang/commit
[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)
commita2fc7dbc981deab96d1633331da793e2333c7521
tree229ab5756f099947f5d61d6c550b75becf1f3265
parent3685dbaf4a6514f55565fd952312d143945a6d49
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310576 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Lexer.h
lib/Lex/Lexer.cpp
unittests/Lex/LexerTest.cpp