================
@@ -3084,6 +3084,24 @@ struct FormatStyle {
   /// \endcode
   /// \version 10
   bool IndentGotoLabels;
+  
+  /// If true, aligns labels according to the current indentation level
+  /// instead of flushing them to the left margin.
+  ///
+  /// \code
+  ///   true:                              false:
+  ///   int main() {                       int main() {
+  ///     for (int i = 0; i < 5; i++)       for (int i = 0; i < 5; i++)
+  ///       for (int j = 0; j < 5; j++) {      for (int j = 0; j < 5; j++) {
+  ///         // some code                       // some code
+  ///         goto end_double_loop;              goto end_double_loop;
+  ///       }                                   }
+  ///     }                                    }
+  ///     end_double_loop: {}                end_double_loop: {}
+  ///   }                                  }
+  /// \endcode
+  /// \version 19
----------------
HazardyKnusperkeks wrote:

A bit late ;)

https://github.com/llvm/llvm-project/pull/166730
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to