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

Filip Milosevic via cfe-commits cfe-commits at lists.llvm.org
Sun May 4 12:57:51 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)
----------------
MightyFilipns wrote:

Fixed

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


More information about the cfe-commits mailing list