[clang] [clang-format] Add SpaceAfterOperatorKeyword option (PR #137610)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 30 12:28:56 PDT 2025


================
@@ -4463,6 +4463,14 @@ struct FormatStyle {
   /// \version 9
   bool SpaceAfterLogicalNot;
 
+  /// If \c true, a space will be inserted after the ``operator`` keyword.
+  /// \code
+  ///    true:                                false:
+  ///    bool operator == (int a)     vs.     bool operator== (int a)
+  /// \endcode
+  /// \version 22
----------------
HazardyKnusperkeks wrote:

```suggestion
  /// \version 21
```

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


More information about the cfe-commits mailing list