[clang] Check for mutability better (PR #127843)

2025-02-21 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem closed https://github.com/llvm/llvm-project/pull/127843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Check for mutability better (PR #127843)

2025-02-21 Thread Devon Loehr via cfe-commits
DKLoehr wrote: Good call, changed. https://github.com/llvm/llvm-project/pull/127843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Check for mutability better (PR #127843)

2025-02-21 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr updated https://github.com/llvm/llvm-project/pull/127843 >From 7a919e29b221f1070c420e263760b7071dc01da8 Mon Sep 17 00:00:00 2001 From: Devon Loehr Date: Thu, 20 Feb 2025 15:19:13 + Subject: [PATCH 1/3] Implement mutable check in Sema --- clang/lib/Sema/SemaDecl.

[clang] Check for mutability better (PR #127843)

2025-02-20 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem approved this pull request. LGTM with a nit. I'll wait a day before merging in case anyone else wants to review as well. https://github.com/llvm/llvm-project/pull/127843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] Check for mutability better (PR #127843)

2025-02-20 Thread Hans Wennborg via cfe-commits
@@ -13440,6 +13440,23 @@ bool Sema::GloballyUniqueObjectMightBeAccidentallyDuplicated( return true; } +// Determine whether the object seems mutable for the purpose of diagnosing +// possible unique object duplication, i.e. non-const-qualified, and +// not an always-constan

[clang] Check for mutability better (PR #127843)

2025-02-20 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem edited https://github.com/llvm/llvm-project/pull/127843 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits