Skip to content

Commit

Permalink
sort alphabetically and add clang version 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Sep 18, 2024
1 parent 89d2388 commit 2bbadfe
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 156 deletions.
245 changes: 126 additions & 119 deletions clang/docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -409,22 +410,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -444,6 +430,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignConsecutiveBitFields:

Expand Down Expand Up @@ -549,7 +550,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -566,22 +568,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -601,6 +588,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignConsecutiveDeclarations:

Expand Down Expand Up @@ -706,7 +708,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -723,22 +726,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -758,6 +746,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignConsecutiveMacros:

Expand Down Expand Up @@ -864,7 +867,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -881,22 +885,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -916,6 +905,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignConsecutiveShortCaseStatements:

Expand Down Expand Up @@ -1141,7 +1145,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -1158,22 +1163,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -1193,6 +1183,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignConsecutiveTableGenCondOperatorColons:

Expand Down Expand Up @@ -1296,7 +1301,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -1313,22 +1319,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -1348,6 +1339,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignConsecutiveTableGenDefinitionColons:

Expand Down Expand Up @@ -1451,7 +1457,8 @@ the configuration (without a prefix: ``Auto``).
a &= 2;
bbb = 2;

* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
* ``bool AlignFunctionDeclarations`` :versionbadge:`clang-format 20`
Only for ``AlignConsecutiveDeclarations``. Whether function pointers are
aligned.

.. code-block:: c++
Expand All @@ -1468,22 +1475,7 @@ the configuration (without a prefix: ``Auto``).
int *p;
int (*f)();
* ``bool AlignFunctionDeclarations`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);

* ``bool PadOperators`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
* ``bool AlignFunctionPointers`` Only for ``AlignConsecutiveAssignments``. Whether short assignment
operators are left-padded to the same length as long ones in order to
put all assignment operators to the right of the left hand side.

Expand All @@ -1503,6 +1495,21 @@ the configuration (without a prefix: ``Auto``).
a = 2;
bbb >>= 2;

* ``bool PadOperators`` Only for ``AlignConsecutiveDeclarations``. Whether function declarations
are aligned.

.. code-block:: c++

true:
unsigned int f1(void);
void f2(void);
size_t f3(void);

false:
unsigned int f1(void);
void f2(void);
size_t f3(void);


.. _AlignEscapedNewlines:

Expand Down
Loading

0 comments on commit 2bbadfe

Please sign in to comment.