enum FormatStyle::RequiresClausePositionStyle
Description
The possible positions for the requires clause. The ``IndentRequires`` option is only used if the ``requires`` is put on the start of a line.
Declared at: clang/include/clang/Format/Format.h:3044
Enumerators
Name | Value | Comment |
---|---|---|
RCPS_OwnLine | 0 | Always put the ``requires`` clause on its own line. |
RCPS_WithPreceding | 1 | Try to put the clause together with the preceding part of a declaration. For class templates: stick to the template declaration. For function templates: stick to the template declaration. For function declaration followed by a requires clause: stick to the parameter list. |
RCPS_WithFollowing | 2 | Try to put the ``requires`` clause together with the class or function declaration. |
RCPS_SingleLine | 3 | Try to put everything in the same line if possible. Otherwise normal line breaking rules take over. |