]> granicus.if.org Git - clang/commit
Don't remove backslashes from block comments.
authorAlexander Kornienko <alexfh@google.com>
Fri, 14 Jun 2013 11:46:10 +0000 (11:46 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 14 Jun 2013 11:46:10 +0000 (11:46 +0000)
commit16a0ec60507a4eec275a5c3a86d4501b1b7b817b
tree3bf7c5f721ceb0d369dd6a10b87ea9389f268a4a
parent93f32da079874f70857af42eb9be382f307d4f1e
Don't remove backslashes from block comments.

Summary:
Don't remove backslashes from block comments. Previously this
/* \    \ \ \ \ \
*/
would be turned to this:
/*
*/
which spoils some kinds of ASCII-art, people use in their comments. The behavior
was related to handling escaped newlines in block comments inside preprocessor
directives. This patch makes handling it in a more civilized way.

Reviewers: klimek

Reviewed By: klimek

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

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