]> granicus.if.org Git - clang/commit
clang-format: Extends formatted ranges to subsequent lines comments.
authorDaniel Jasper <djasper@google.com>
Fri, 29 Nov 2013 09:27:43 +0000 (09:27 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 29 Nov 2013 09:27:43 +0000 (09:27 +0000)
commite7b368b885a958d6ccdff81288723ede68008c6d
tree6fc54d552d455839097b22edbc4ffb27613f1726
parentdbb3d042e052d26f9973dbfade318b9f2fe2ac40
clang-format: Extends formatted ranges to subsequent lines comments.

Before:
  int aaaa;     // This line is formatted.
                // The comment continues ..
                // .. here.

Before:
  int aaaa; // This line is formatted.
            // The comment continues ..
            // .. here.

This fixes llvm.org/PR17914.

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