]> granicus.if.org Git - clang/commit
clang-format: Improve detection of macros annotating functions.
authorDaniel Jasper <djasper@google.com>
Mon, 18 May 2015 13:47:23 +0000 (13:47 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 18 May 2015 13:47:23 +0000 (13:47 +0000)
commit6338229cf6ca4e8228ea2cdb23899cc1caa543fe
tree183df36fd89175647a79db25f713caa919c9f472
parentb0cbc5dca10957ad0401e75a4e8e2465bc707a37
clang-format: Improve detection of macros annotating functions.

Before:
  ASSERT("aaaaaaaaaaaaaaa")
      << aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
      << bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;

After:
  ASSERT("aaaaaaaaaaaaaaa") << aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                            << bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb;

Also cleanup implementation a bit and only mark closing parenthesis of
these annotations.

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