From 5d76642a3e385ca87ff2feee353b1c10c2280c0a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 21 Jan 2025 21:35:35 -0800 Subject: [PATCH] [clang-format][NFC] Keep option names sorted in Format.h --- clang/include/clang/Format/Format.h | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 874376cb2310e..fd526f189ec83 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -2802,23 +2802,6 @@ struct FormatStyle { /// \version 3.3 bool IndentCaseLabels; - /// Indent goto labels. - /// - /// When ``false``, goto labels are flushed left. - /// \code - /// true: false: - /// int f() { vs. int f() { - /// if (foo()) { if (foo()) { - /// label1: label1: - /// bar(); bar(); - /// } } - /// label2: label2: - /// return 1; return 1; - /// } } - /// \endcode - /// \version 10 - bool IndentGotoLabels; - /// If ``true``, clang-format will indent the body of an ``export { ... }`` /// block. This doesn't affect the formatting of anything else related to /// exported declarations. @@ -2872,6 +2855,23 @@ struct FormatStyle { /// \version 11 IndentExternBlockStyle IndentExternBlock; + /// Indent goto labels. + /// + /// When ``false``, goto labels are flushed left. + /// \code + /// true: false: + /// int f() { vs. int f() { + /// if (foo()) { if (foo()) { + /// label1: label1: + /// bar(); bar(); + /// } } + /// label2: label2: + /// return 1; return 1; + /// } } + /// \endcode + /// \version 10 + bool IndentGotoLabels; + /// Options for indenting preprocessor directives. enum PPDirectiveIndentStyle : int8_t { /// Does not indent any directives.