[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

Kohei Asano via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 23:06:46 PDT 2024


================
@@ -187,7 +187,6 @@ TEST(ConfigParseTest, ParsesConfigurationBools) {
   CHECK_PARSE_BOOL(RemoveSemicolon);
   CHECK_PARSE_BOOL(SkipMacroDefinitionBody);
   CHECK_PARSE_BOOL(SpacesInSquareBrackets);
-  CHECK_PARSE_BOOL(SpaceInEmptyBlock);
----------------
khei4 wrote:

Yeah, it's same with [SpaceInEmptyParentheses](https://clang.llvm.org/docs/ClangFormatStyleOptions.html#spaceinemptyparentheses), currently I checked only [here](https://github.com/llvm/llvm-project/pull/93634/files#diff-6b5b06a9a335ec5939905df81f1def72c3f869e24c758a8dd7dc1706873a77f0R643-R646).

https://github.com/llvm/llvm-project/pull/93634


More information about the cfe-commits mailing list