Skip to content

Commit ee51f35

Browse files
committed
[clang-format][doc] Add OneLineFormatOffRegex to format-off section
1 parent f3008c1 commit ee51f35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ clang-format is turned off or back on.
126126
// clang-format on
127127
void formatted_code_again;
128128

129+
In addition, the ``OneLineFormatOffRegex`` option gives you a concise way to
130+
disable formatting for all of the lines that match the regular expression.
131+
129132

130133
Configuring Style in Code
131134
=========================

0 commit comments

Comments
 (0)