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

Filip Milosevic via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 12:45:08 PDT 2025


================
@@ -4471,6 +4471,14 @@ struct FormatStyle {
   /// \version 4
   bool SpaceAfterTemplateKeyword;
 
+  /// 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
+  bool SpaceAfterOperatorKeyword;
----------------
MightyFilipns wrote:

Fixed

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


More information about the cfe-commits mailing list