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

NameValueComment
RCPS_OwnLine0Always put the ``requires`` clause on its own line.
RCPS_WithPreceding1Try 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_WithFollowing2Try to put the ``requires`` clause together with the class or function declaration.
RCPS_SingleLine3Try to put everything in the same line if possible. Otherwise normal line breaking rules take over.