[PATCH] D116283: Added an option to add a space between operator overloading and opening parentheses in clang-format

MyDeveloperDay via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 28 06:56:22 PST 2021


MyDeveloperDay added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:14545
   verifyFormat("auto lambda = []() { return 0; };", SomeSpace2);
+
+  FormatStyle SpaceAfterOperatorOverloading = getLLVMStyle();
----------------
There should be a PARSE unit test too please


================
Comment at: clang/unittests/Format/FormatTest.cpp:14546
+
+  FormatStyle SpaceAfterOperatorOverloading = getLLVMStyle();
+  SpaceAfterOperatorOverloading.SpaceBeforeParens = FormatStyle::SBPO_Custom;
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116283



More information about the llvm-commits mailing list