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
Showing
- lib/Format/BreakableToken.cpp 26 additions, 17 deletionslib/Format/BreakableToken.cpp
- lib/Format/BreakableToken.h 12 additions, 14 deletionslib/Format/BreakableToken.h
- lib/Format/Format.cpp 13 additions, 19 deletionslib/Format/Format.cpp
- unittests/Format/FormatTest.cpp 17 additions, 0 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment