[clang] ee51f35 - [clang-format][doc] Add OneLineFormatOffRegex to format-off section
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 16 20:59:14 PDT 2025
Author: Owen Pan
Date: 2025-08-16T20:59:07-07:00
New Revision: ee51f35993d9623563551f9bb9521824992967b6
URL: https://github.com/llvm/llvm-project/commit/ee51f35993d9623563551f9bb9521824992967b6
DIFF: https://github.com/llvm/llvm-project/commit/ee51f35993d9623563551f9bb9521824992967b6.diff
LOG: [clang-format][doc] Add OneLineFormatOffRegex to format-off section
Added:
Modified:
clang/docs/ClangFormatStyleOptions.rst
Removed:
################################################################################
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 02986a94a656c..55ba261b7bdc0 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -126,6 +126,9 @@ clang-format is turned off or back on.
// clang-format on
void formatted_code_again;
+In addition, the ``OneLineFormatOffRegex`` option gives you a concise way to
+disable formatting for all of the lines that match the regular expression.
+
Configuring Style in Code
=========================
More information about the cfe-commits
mailing list