[clang-tools-extra] [docs][clang-tidy] Correct StrictMode example in modernize-use-std-print (PR #108805)
Nicolas van Kempen via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 09:14:18 PDT 2024
================
@@ -109,7 +109,7 @@ Options
.. code-block:: c++
- std::print("{} {}\n", static_cast<unsigned int>(i), static_cast<int>(u));
+ std::print("{} {}\n", static_cast<int>(u), static_cast<unsigned int>(i));
----------------
nicovank wrote:
The arguments shouldn't be swapped, I think the initial code block above must swap the `%d` and `%u` specifier for this example to make sense.
https://github.com/llvm/llvm-project/pull/108805
More information about the cfe-commits
mailing list