]> granicus.if.org Git - clang/commit
clang-format: Improve indentation of comments in expressions.
authorDaniel Jasper <djasper@google.com>
Fri, 14 Nov 2014 12:31:14 +0000 (12:31 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 14 Nov 2014 12:31:14 +0000 (12:31 +0000)
commit712b8b0eeac5f2fc449f1df4e9c51b18e0e706be
tree2150aeef7a9fc0192631d55c93597722e20b84f0
parentd298a5721c7161553d7a6c14650cc466376aa5be
clang-format: Improve indentation of comments in expressions.

Before:
  int i = (a)
              // comment
          + b;
  return aaaa == bbbb
                 // comment
             ? aaaa
             : bbbb;
After:
  int i = (a)
          // comment
          + b;
  return aaaa == bbbb
             // comment
             ? aaaa
             : bbbb;

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