diff options
| author | Daniel Jasper <djasper@google.com> | 2014-06-11 07:35:16 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-06-11 07:35:16 +0000 |
| commit | 4ac7de7199d431b47c6c71e6529951bb284dcb7f (patch) | |
| tree | 97471e40ee8fa7907526d957f9fe276c8124943f /clang/unittests/Format/FormatTest.cpp | |
| parent | 1918787a72070e22593402657c90cb59fb7a8026 (diff) | |
| download | bcm5719-llvm-4ac7de7199d431b47c6c71e6529951bb284dcb7f.tar.gz bcm5719-llvm-4ac7de7199d431b47c6c71e6529951bb284dcb7f.zip | |
clang-format: Fix pointer/reference detection after decltype.
Before:
[](const decltype(*a) & value) {}
After:
[](const decltype(*a)& value) {}
llvm-svn: 210643
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 a923e1a9f82..f474c42144d 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4740,6 +4740,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("auto a = [](int **&, int ***) {};"); verifyFormat("auto PointerBinding = [](const char *S) {};"); verifyFormat("typedef typeof(int(int, int)) *MyFunc;"); + verifyFormat("[](const decltype(*a) &value) {}"); verifyIndependentOfContext("typedef void (*f)(int *a);"); verifyIndependentOfContext("int i{a * b};"); verifyIndependentOfContext("aaa && aaa->f();"); |

