diff options
Diffstat (limited to 'clang/unittests/Format/FormatTestCSharp.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestCSharp.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTestCSharp.cpp b/clang/unittests/Format/FormatTestCSharp.cpp index f5e0bab..b0e4e76 100644 --- a/clang/unittests/Format/FormatTestCSharp.cpp +++ b/clang/unittests/Format/FormatTestCSharp.cpp @@ -564,7 +564,7 @@ var myDict = new Dictionary<string, string> { TEST_F(FormatTestCSharp, CSharpArrayInitializers) { FormatStyle Style = getGoogleStyle(FormatStyle::LK_CSharp); - + verifyFormat(R"(// private MySet<Node>[] setPoints = { new Point<Node>(), @@ -710,6 +710,15 @@ class ItemFactory<T> IAnotherInterfaceStill<T> {})", Style); + Style.ColumnLimit = 50; // Force lines to be wrapped. + verifyFormat(R"(// +class ItemFactory<T, U> + where T : new(), + IAnInterface<T>, + IAnotherInterface<T, U>, + IAnotherInterfaceStill<T, U> {})", + Style); + // In other languages `where` can be used as a normal identifier. // This example is in C++! verifyFormat(R"(// |