diff options
author | Daniel Jasper <djasper@google.com> | 2014-10-20 13:56:30 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-10-20 13:56:30 +0000 |
commit | 8835a32078c85f15f77bcd2c2221d4745e5b905c (patch) | |
tree | 69d74c452e707392ec44e229f8b5427c3fd083e9 /clang/unittests/Format/FormatTest.cpp | |
parent | 6701327758350e6428d5cb2dd5305e87ccd99283 (diff) | |
download | bcm5719-llvm-8835a32078c85f15f77bcd2c2221d4745e5b905c.tar.gz bcm5719-llvm-8835a32078c85f15f77bcd2c2221d4745e5b905c.zip |
clang-format: Fix overloaded operator edge case.
Before:
template <class F>
void Call(F f) {
f.template operator() <int>();
}
After:
template <class F>
void Call(F f) {
f.template operator()<int>();
}
llvm-svn: 220202
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 a16ee2cb2f5..79e5ab11826 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4844,6 +4844,7 @@ TEST_F(FormatTest, UnderstandsOverloadedOperators) { " return left.group < right.group;\n" "}"); verifyFormat("SomeType &operator=(const SomeType &S);"); + verifyFormat("f.template operator()<int>();"); verifyGoogleFormat("operator void*();"); verifyGoogleFormat("operator SomeType<SomeType<int>>();"); |