[clang] 29cde04 - [clang-format] Fixed the warning in building document for TableGenBreakingDAGArgOperators. (#85760)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 19 03:13:10 PDT 2024
Author: Hirofumi Nakamura
Date: 2024-03-19T11:13:06+01:00
New Revision: 29cde04c3972a54efeb6d09b1580b275f39c315a
URL: https://github.com/llvm/llvm-project/commit/29cde04c3972a54efeb6d09b1580b275f39c315a
DIFF: https://github.com/llvm/llvm-project/commit/29cde04c3972a54efeb6d09b1580b275f39c315a.diff
LOG: [clang-format] Fixed the warning in building document for TableGenBreakingDAGArgOperators. (#85760)
Intend to fix the `Test documentation build `, degraded here
https://github.com/llvm/llvm-project/pull/83149 .
Added:
Modified:
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
Removed:
################################################################################
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 35b6d0a2b52b67..be021dfc5c084c 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -6204,7 +6204,7 @@ the configuration (without a prefix: ``Auto``).
For example the configuration,
- .. code-block:: c++
+ .. code-block:: yaml
TableGenBreakInsideDAGArg: BreakAll
TableGenBreakingDAGArgOperators: ['ins', 'outs']
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 54861a66889e22..7ad2579bf7773b 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -4735,7 +4735,7 @@ struct FormatStyle {
/// the specified identifiers.
///
/// For example the configuration,
- /// \code
+ /// \code{.yaml}
/// TableGenBreakInsideDAGArg: BreakAll
/// TableGenBreakingDAGArgOperators: ['ins', 'outs']
/// \endcode
More information about the cfe-commits
mailing list