]> granicus.if.org Git - clang/commit
clang-format: Understand function type typedefs with typeof.
authorDaniel Jasper <djasper@google.com>
Tue, 10 Sep 2013 10:26:38 +0000 (10:26 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 10 Sep 2013 10:26:38 +0000 (10:26 +0000)
commitdb8afe424991b34884afb13ecf97ac458e41da9e
tree5fad7659a621271ef2302a21a801114e3b707839
parent048733aef423ac86edd38925102553d59fbd2b75
clang-format: Understand function type typedefs with typeof.

Before:
  typedef typeof(int(int, int)) * MyFunc;
After:
  typedef typeof(int(int, int)) *MyFunc;

This fixes llvm.org/PR17178.

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