diff options
author | owenca <owenpiano@gmail.com> | 2022-07-22 23:39:43 -0700 |
---|---|---|
committer | owenca <owenpiano@gmail.com> | 2022-07-25 23:17:54 -0700 |
commit | 0ffb3dd33ee1a50a6ab5db80bb8caee9133e66dc (patch) | |
tree | 6e45834b907da770fc4b168163c9e1569e2856bf /clang/unittests/Format/FormatTestCSharp.cpp | |
parent | 0df7d8bc355dd506bb1a330b9f73e611f0deaf9f (diff) | |
download | llvm-0ffb3dd33ee1a50a6ab5db80bb8caee9133e66dc.zip llvm-0ffb3dd33ee1a50a6ab5db80bb8caee9133e66dc.tar.gz llvm-0ffb3dd33ee1a50a6ab5db80bb8caee9133e66dc.tar.bz2 |
[clang-format] Fix a hang when formatting C# $@ string literals
Fixes #56624.
Differential Revision: https://reviews.llvm.org/D130411
Diffstat (limited to 'clang/unittests/Format/FormatTestCSharp.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestCSharp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestCSharp.cpp b/clang/unittests/Format/FormatTestCSharp.cpp index aa0304f..680a957 100644 --- a/clang/unittests/Format/FormatTestCSharp.cpp +++ b/clang/unittests/Format/FormatTestCSharp.cpp @@ -574,6 +574,7 @@ TEST_F(FormatTestCSharp, CSharpEscapedQuotesInVerbatimStrings) { verifyFormat(R"(string str = @"""";)", Style); verifyFormat(R"(string str = @"""Hello world""";)", Style); verifyFormat(R"(string str = $@"""Hello {friend}""";)", Style); + verifyFormat(R"(return $@"Foo ""/foo?f={Request.Query["f"]}""";)", Style); } TEST_F(FormatTestCSharp, CSharpQuotesInInterpolatedStrings) { |