]> granicus.if.org Git - clang/commit
Better support for multiline string literals (including C++11 raw string literals).
authorAlexander Kornienko <alexfh@google.com>
Thu, 29 Aug 2013 17:32:57 +0000 (17:32 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 29 Aug 2013 17:32:57 +0000 (17:32 +0000)
commitdcc0c5bb7ce9a731ecbc0b8e8477979cd9e730c0
tree7dd5e0feea250c3663aec2a38f6cfd70977fc619
parentb7dc1f5f30e1e46e44389b036d48f9614cfd5fe3
Better support for multiline string literals (including C++11 raw string literals).

Summary:
Calculate characters in the first and the last line correctly so that
we only break before the literal when needed.

Reviewers: djasper

Reviewed By: djasper

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

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