diff options
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 3c929a3f53..4725889247 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1530,6 +1530,14 @@ TEST_F(FormatTest, UnderstandContextOfRecordTypeKeywords) { // Redefinition from nested context: verifyFormat("class A::B::C {} n;"); + // Template definitions. + // FIXME: This is still incorrectly handled at the formatter side. + verifyFormat("template <> struct X < 15, i < 3 && 42 < 50 && 33<28> {};"); + + // FIXME: + // This now gets parsed incorrectly as class definition. + // verifyFormat("class A<int> f() {}\nint n;"); + // Elaborate types where incorrectly parsing the structural element would // break the indent. verifyFormat("if (true)\n" |