[clang-tools-extra] [clang-tidy] Add `modernize-use-as-const` check (PR #210554)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 19 08:42:10 PDT 2026
================
@@ -97,6 +97,12 @@ Improvements to clang-tidy
New checks
^^^^^^^^^^
+- New :doc:`modernize-use-as-const
+ <clang-tidy/checks/modernize/use-as-const>` check.
+
+ Replaces a ``static_cast`` that only adds ``const`` to an lvalue with a call
----------------
EugeneZelenko wrote:
Please synchronize with first statement in documentation.
https://github.com/llvm/llvm-project/pull/210554
More information about the cfe-commits
mailing list