]> granicus.if.org Git - clang/commit
clang-format: Improve detection of function types.
authorDaniel Jasper <djasper@google.com>
Tue, 16 Jul 2013 11:37:21 +0000 (11:37 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 16 Jul 2013 11:37:21 +0000 (11:37 +0000)
commite7d3bff31e3ef4fea1e2a5a7cd5441b6b0752e3f
tree7f102081a6e17881f10e5fea99f35f8ff998742f
parent6cbe66fc2d10e6d63efabb851877ea2521f23cca
clang-format: Improve detection of function types.

This fixes an incorrect detection that led to a formatting error.
Before:
  some_var = function (*some_pointer_var)[0];
After:
  some_var = function(*some_pointer_var)[0];

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