[PATCH] D66662: [clang-format] [PR43100] clang-format C# support does not add a space between "using" and paren

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 24 00:32:15 PDT 2019


owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTestCSharp.cpp:169
+TEST_F(FormatTestCSharp, CSharpUsing) {
+  verifyFormat("using (StreamWriter sw = new StreamWriter(filename) { }");
+}
----------------
owenpan wrote:
> owenpan wrote:
> > Maybe set `SpaceBeforeParens` to `Always` first in order to really test the new behavior?
> I meant setting `SpaceBeforeParens` to ~~`Always`~~ `Never`. 
Also, the right parenthesis for the `using` statement is missing.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66662/new/

https://reviews.llvm.org/D66662





More information about the cfe-commits mailing list