[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
Fri Aug 23 20:28:07 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:
> Maybe set `SpaceBeforeParens` to `Always` first in order to really test the new behavior?
I meant setting `SpaceBeforeParens` to ~~`Always`~~ `Never`. 


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