]> granicus.if.org Git - clang/commit
Don't break string literals inside preprocessor directives.
authorAlexander Kornienko <alexfh@google.com>
Fri, 11 Oct 2013 21:43:05 +0000 (21:43 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 11 Oct 2013 21:43:05 +0000 (21:43 +0000)
commitb18c258390f794d8803ef5ebbb56fb77bfea7ba4
tree83a61aca0c4d72b506c8d8d7b4859087593dba0d
parentd2dab64a438b7b8d57f8a10883e107d2bc0988ed
Don't break string literals inside preprocessor directives.

Summary:
This way we avoid breaking code which uses unknown preprocessor
directives with long string literals. The specific use case in
http://llvm.org/PR17035 isn't very common, but it seems to be a good idea to
avoid this kind of problem anyway.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1813

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