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)
commit2ad0aba610052c5262c382b428079d3e7d3e3987
tree8f41f9bd7ebfd302ddd15806d53f3270baacb073
parent241ae2cecfb7d670824fa4edeecec4c3a507b4aa
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, ...

llvm-svn: 220801
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp