]> granicus.if.org Git - clang/commit
Fix a problem in ExpressionParser leading to trailing comments affecting indentation...
authorAlexander Kornienko <alexfh@google.com>
Mon, 17 Jun 2013 13:19:53 +0000 (13:19 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 17 Jun 2013 13:19:53 +0000 (13:19 +0000)
commitd71b15badeecdc049440103ef044f9cdf5e1359c
treea6fb4a3f5f8da1ae9b2b23d41a0ebc17ad7930e4
parent6b96742ceedebb5eb8f1299ab67cb3ecd6d92aaf
Fix a problem in ExpressionParser leading to trailing comments affecting indentation of an expression after a line break.

Summary:
E.g. the second line in

return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
           b; //

is indented 4 characters more than in

return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
       b;

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D984

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184078 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp