[clang-tools-extra] [clang-tidy] Fix false positive in readability-non-const-parameter for atomic builtins (PR #221951)

Björn Svensson via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 17 04:07:22 PDT 2026


================
@@ -9,3 +9,40 @@ int f(p)
 {
     return *p;
 }
+
+// The 'expected' operand of a compare-exchange receives the old value when the
----------------
bjosv wrote:

Ok, yes, they might be an extra maintenance burden. Removed them now, thanks

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


More information about the cfe-commits mailing list