[clang-tools-extra] [clang-tidy] New checker: modernize.use-std-bit to detect std::has_one_bit idiom (PR #185435)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 09:21:58 PDT 2026
================
@@ -124,6 +124,11 @@ New checks
``llvm::to_vector(llvm::make_filter_range(...))`` that can be replaced with
``llvm::map_to_vector`` and ``llvm::filter_to_vector``.
+- New :doc:`modernize-use-std-bit
+ <clang-tidy/checks/modernize/use-std-bit>` check.
+
+ Use functions from ``<bit>`` instead of common idioms.
----------------
EugeneZelenko wrote:
Please synchronize with first statement in documentation.
https://github.com/llvm/llvm-project/pull/185435
More information about the cfe-commits
mailing list