diff options
| author | Alexander Kornienko <alexfh@google.com> | 2013-06-19 19:50:11 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2013-06-19 19:50:11 +0000 |
| commit | c36c5c247f53b0517b141ae5ae93f4580e9452ba (patch) | |
| tree | 6f3742aa41d4caf50fdb075d7c339befde0ae5f8 /lib/CodeGen/CGExprCXX.cpp | |
| parent | 08dc71f4f2a75fd9869ee91b12f36695b700adfc (diff) | |
| download | clang-c36c5c247f53b0517b141ae5ae93f4580e9452ba.tar.gz clang-c36c5c247f53b0517b141ae5ae93f4580e9452ba.tar.bz2 clang-c36c5c247f53b0517b141ae5ae93f4580e9452ba.tar.xz | |
Fixed long-standing issue with incorrect length calculation of multi-line comments.
Summary:
A trailing block comment having multiple lines would cause extremely
high penalties if the summary length of its lines is more than the column limit.
Fixed by always considering only the last line of a multi-line block comment.
Removed a long-standing FIXME from relevant tests and added a motivating test
modelled after problem cases from real code.
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1010
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
0 files changed, 0 insertions, 0 deletions
