[clang-format] Handle quotes and escaped braces in C# interpolated strings
authorJonathan Coe <jbcoe@google.com>
Tue, 28 Jan 2020 14:46:27 +0000 (14:46 +0000)
committerJonathan Coe <jbcoe@google.com>
Tue, 28 Jan 2020 14:46:27 +0000 (14:46 +0000)
commit9d212e83e920363762eb265293adf0bd6fda5a13
treec4192025a305e29cd90cfa0ebdbbe098fa10f338
parente916c8dfe461e272aa7ea115851db7ddda36b971
[clang-format] Handle quotes and escaped braces in C# interpolated strings

Summary:
This addresses issues raised in https://bugs.llvm.org/show_bug.cgi?id=44454.

There are outstanding issues with multi-line verbatim strings in C# that will be addressed in a follow-up PR.

Reviewers: krasimir, MyDeveloperDay

Reviewed By: krasimir, MyDeveloperDay

Subscribers: MyDeveloperDay

Tags: #clang-format

Differential Revision: https://reviews.llvm.org/D73492
clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Format/FormatTokenLexer.h
clang/unittests/Format/FormatTestCSharp.cpp