[clang] [clang-format] Add SpacesInParensOption for attributes and filtering for repeated parens (PR #77522)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 25 22:51:56 PST 2024
================
@@ -4569,23 +4602,40 @@ struct FormatStyle {
bool InEmptyParentheses;
/// Put a space in parentheses not covered by preceding options.
/// \code
- /// true: false:
- /// t f( Deleted & ) & = delete; vs. t f(Deleted &) & = delete;
+ /// true:
+ /// t f( Deleted & ) & = delete;
+ /// decltype( ( x ) )
----------------
owenca wrote:
```suggestion
/// __attribute__( ( noreturn ) )
/// decltype( ( x ) )
```
https://github.com/llvm/llvm-project/pull/77522
More information about the cfe-commits
mailing list