[llvm-branch-commits] [clang-tools-extra] [clang-tidy][docs] Rewrite modernize check docs to Markdown [1/4] (PR #232207)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Nov 15 16:54:23 PST 2026


================
@@ -39,47 +38,47 @@ Potential macros for replacement must meet the following constraints:
 Each cluster of macros meeting the above constraints is presumed to
 be a set of values suitable for replacement by an anonymous enum.
 From there, a developer can give the anonymous enum a name and
-continue refactoring to a scoped enum if desired.  Comments on the
+continue refactoring to a scoped enum if desired. Comments on the
 same line as a macro definition or between subsequent macro definitions
-are preserved in the output.  No formatting is assumed in the provided
+are preserved in the output. No formatting is assumed in the provided
 replacements, although clang-tidy can optionally format all fixes.
 
-.. warning::
-
-  Initializing expressions are assumed to be valid initializers for
-  an enum.  C requires that enum values fit into an ``int``, but
-  this may not be the case for some accepted constant expressions.
-  For instance ``1 << 40`` will not fit into an ``int`` when the size of
-  an ``int`` is 32 bits.
+```{warning}
+Initializing expressions are assumed to be valid initializers for
+an enum.  C requires that enum values fit into an `int`, but
----------------
EugeneZelenko wrote:

```suggestion
an `enum`. C requires that `enum` values fit into an `int`, but
```

https://github.com/llvm/llvm-project/pull/232207


More information about the llvm-branch-commits mailing list