[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 05:54:53 PST 2024
================
@@ -0,0 +1,33 @@
+.. title:: clang-tidy - modernize-use-integer-sign-comparison
+
+modernize-use-integer-sign-comparison
+=====================================
+
+Replace comparisons between signed and unsigned integers with their safe
+C++20 ``std::cmp_*`` alternative, if available.
----------------
HerrCai0907 wrote:
Since the check is enabled for c++ standard before c++20. please give more information in doc. Otherwise someone will think it is a false positive in e.g. c++11
https://github.com/llvm/llvm-project/pull/113144
More information about the cfe-commits
mailing list