]> granicus.if.org Git - clang/commit
clang-format: Improve function declaration detection.
authorDaniel Jasper <djasper@google.com>
Tue, 28 Oct 2014 17:06:04 +0000 (17:06 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 28 Oct 2014 17:06:04 +0000 (17:06 +0000)
commitab0cf0608f271c56e04920e91b3cf20bb15a0464
tree5ac4ae9725016a89b4e36b8d94f0ceb934e3562d
parentb6007a7071857b6973bfa2b5b590d53b1fb2dd9b
clang-format: Improve function declaration detection.

Before:
  ReturnType MACRO
      FunctionName() {}

After:
  ReturnType MACRO
  FunctionName() {}

This fixes llvm.org/PR21404.

I wonder what the motivation for that if-condition was. But as no test
breaks, ...

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