]> granicus.if.org Git - clang/commit
clang-format: Fix comment formatting bugs in nested blocks.
authorDaniel Jasper <djasper@google.com>
Fri, 6 Sep 2013 07:54:20 +0000 (07:54 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 6 Sep 2013 07:54:20 +0000 (07:54 +0000)
commitb77d741691a2775b5c31e29f021203cc659c26df
tree14a8f0d6055cd7b50bfce9db7549c9bfdc4f9ddd
parent74341d8fd49db382e83008ecea5c0d8ff9d8b6cb
clang-format: Fix comment formatting bugs in nested blocks.

This fixes two issues:
1) The indent of a line comment was not adapted to the subsequent
   statement as it would be outside of a nested block.
2) A missing DryRun flag caused actualy breaks to be inserted in
   overly long comments while trying to come up with the best line
   breaking decisions.

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