[clang] [clang-format] Fixed the warning in building document for TableGenBreakingDAGArgOperators. (PR #85760)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 19 02:50:44 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clang-format
Author: Hirofumi Nakamura (hnakamura5)
<details>
<summary>Changes</summary>
Intend to fix the `Test documentation build `, degraded here https://github.com/llvm/llvm-project/pull/83149 .
---
Full diff: https://github.com/llvm/llvm-project/pull/85760.diff
2 Files Affected:
- (modified) clang/docs/ClangFormatStyleOptions.rst (+1-1)
- (modified) clang/include/clang/Format/Format.h (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/85760
More information about the cfe-commits
mailing list