aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestCSharp.cpp
diff options
context:
space:
mode:
authorOwen Pan <owenpiano@gmail.com>2023-10-26 21:41:33 -0700
committerOwen Pan <owenpiano@gmail.com>2023-10-26 21:43:27 -0700
commit88934a82dced0116227e4ad9af8896d8fa0943b8 (patch)
tree210b083dd7bbefe3e65bb64d4a391e3795d8bed2 /clang/unittests/Format/FormatTestCSharp.cpp
parent4ec9cda656cc2fde41d4a4415ae363d9a3290c80 (diff)
downloadllvm-88934a82dced0116227e4ad9af8896d8fa0943b8.zip
llvm-88934a82dced0116227e4ad9af8896d8fa0943b8.tar.gz
llvm-88934a82dced0116227e4ad9af8896d8fa0943b8.tar.bz2
[clang-format][NFC] Remove extraneous newlines in some unit test files
Diffstat (limited to 'clang/unittests/Format/FormatTestCSharp.cpp')
-rw-r--r--clang/unittests/Format/FormatTestCSharp.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/clang/unittests/Format/FormatTestCSharp.cpp b/clang/unittests/Format/FormatTestCSharp.cpp
index 05d20c5..4a0840d 100644
--- a/clang/unittests/Format/FormatTestCSharp.cpp
+++ b/clang/unittests/Format/FormatTestCSharp.cpp
@@ -530,19 +530,19 @@ TEST_F(FormatTestCSharp, AttributesIndentation) {
verifyFormat("[SuppressMessage(\"A\", \"B\", Justification = \"C\")]\n"
"public override X Y()\n"
"{\n"
- "}\n",
+ "}",
Style);
verifyFormat("[SuppressMessage]\n"
"public X Y()\n"
"{\n"
- "}\n",
+ "}",
Style);
verifyFormat("[SuppressMessage]\n"
"public override X Y()\n"
"{\n"
- "}\n",
+ "}",
Style);
verifyFormat("public A(B b) : base(b)\n"
@@ -551,7 +551,7 @@ TEST_F(FormatTestCSharp, AttributesIndentation) {
" public override X Y()\n"
" {\n"
" }\n"
- "}\n",
+ "}",
Style);
verifyFormat("public A : Base\n"
@@ -560,7 +560,7 @@ TEST_F(FormatTestCSharp, AttributesIndentation) {
"[Test]\n"
"public Foo()\n"
"{\n"
- "}\n",
+ "}",
Style);
verifyFormat("namespace\n"
@@ -572,7 +572,7 @@ TEST_F(FormatTestCSharp, AttributesIndentation) {
"public Foo()\n"
"{\n"
"}\n"
- "}\n",
+ "}",
Style);
}
@@ -1561,7 +1561,7 @@ TEST_F(FormatTestCSharp, NamespaceIndentation) {
"public interface Name1\n"
"{\n"
"}\n"
- "}\n",
+ "}",
Style);
verifyFormat("namespace A.B\n"
@@ -1569,7 +1569,7 @@ TEST_F(FormatTestCSharp, NamespaceIndentation) {
"public interface Name1\n"
"{\n"
"}\n"
- "}\n",
+ "}",
Style);
Style.NamespaceIndentation = FormatStyle::NI_Inner;
@@ -1582,7 +1582,7 @@ TEST_F(FormatTestCSharp, NamespaceIndentation) {
" {\n"
" }\n"
"}\n"
- "}\n",
+ "}",
Style);
Style.NamespaceIndentation = FormatStyle::NI_All;
@@ -1592,7 +1592,7 @@ TEST_F(FormatTestCSharp, NamespaceIndentation) {
" public interface Name1\n"
" {\n"
" }\n"
- "}\n",
+ "}",
Style);
verifyFormat("namespace A\n"
@@ -1603,7 +1603,7 @@ TEST_F(FormatTestCSharp, NamespaceIndentation) {
" {\n"
" }\n"
" }\n"
- "}\n",
+ "}",
Style);
}
@@ -1613,7 +1613,7 @@ TEST_F(FormatTestCSharp, SwitchExpression) {
" 1 => (0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0),\n"
" 2 => 1,\n"
" _ => 2\n"
- "};\n",
+ "};",
Style);
}
@@ -1625,12 +1625,12 @@ TEST_F(FormatTestCSharp, EmptyShortBlock) {
" doA();\n"
"} catch (Exception e) {\n"
" e.printStackTrace();\n"
- "}\n",
+ "}",
Style);
verifyFormat("try {\n"
" doA();\n"
- "} catch (Exception e) {}\n",
+ "} catch (Exception e) {}",
Style);
}