diff options
author | Daniel Jasper <djasper@google.com> | 2013-12-16 08:36:18 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-12-16 08:36:18 +0000 |
commit | 3682fcda17f315b6c1d4eccd8e41b12de3bc45db (patch) | |
tree | 2eaab485d2cc1eebaea44ce533349b2ca91cd9dc /clang/unittests/Format/FormatTest.cpp | |
parent | c39b56fe14683957bae2248dd0433ee4c893e054 (diff) | |
download | bcm5719-llvm-3682fcda17f315b6c1d4eccd8e41b12de3bc45db.tar.gz bcm5719-llvm-3682fcda17f315b6c1d4eccd8e41b12de3bc45db.zip |
clang-format: Fix formatting of function type parameters.
Before:
void f() { typedef void (*f)(int * a); }
After:
void f() { typedef void (*f)(int *a); }
llvm-svn: 197369
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index e34ebeb98cd..bd9d1083576 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4241,6 +4241,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("auto a = [](int **&, int ***) {};"); verifyFormat("auto PointerBinding = [](const char *S) {};"); verifyFormat("typedef typeof(int(int, int)) *MyFunc;"); + verifyIndependentOfContext("typedef void (*f)(int *a);"); verifyIndependentOfContext("InvalidRegions[*R] = 0;"); |