[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Thu May 30 11:16:11 PDT 2024
================
@@ -6237,18 +6237,30 @@ the configuration (without a prefix: ``Auto``).
true: false:
x = ( int32 )y vs. x = (int32)y
- * ``bool InEmptyParentheses`` Put a space in parentheses only if the parentheses are empty i.e. '()'
+ * ``bool InEmptyParentheses`` Put a space in parentheses and braces only if they are empty i.e. '()' or '{}'
----------------
HazardyKnusperkeks wrote:
The script is located at `clang/docs/tools/dump_format_style.py`.
https://github.com/llvm/llvm-project/pull/93634
More information about the cfe-commits
mailing list