Skip to content

Commit

Permalink
[clang-format][NFC] Keep option names sorted in Format.h
Browse files Browse the repository at this point in the history
  • Loading branch information
owenca committed Jan 22, 2025
1 parent 9cbc1f2 commit 5d76642
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions clang/include/clang/Format/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5d76642

Please sign in to comment.