[clang-tools-extra] [clang-tidy] Add `bugprone-errno-comparison` check (PR #210548)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 19 08:43:56 PDT 2026


================
@@ -97,6 +97,12 @@ Improvements to clang-tidy
 New checks
 ^^^^^^^^^^
 
+- New :doc:`bugprone-errno-comparison
+  <clang-tidy/checks/bugprone/errno-comparison>` check.
+
+  Flags comparisons of ``errno`` against an integer literal, which is not
----------------
EugeneZelenko wrote:

Please synchronize with first statement in documentation.

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


More information about the cfe-commits mailing list