[clang] Warn when unique objects might be duplicated in shared libraries (PR #117622)
Devon Loehr via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 12:14:44 PST 2025
================
@@ -13374,6 +13374,62 @@ void Sema::checkNonTrivialCUnion(QualType QT, SourceLocation Loc,
.visit(QT, nullptr, false);
}
+bool Sema::GloballyUniqueObjectMightBeAccidentallyDuplicated(
+ const VarDecl *Dcl) {
+ if (!Dcl || !getLangOpts().CPlusPlus)
----------------
DKLoehr wrote:
Ok, changed.
https://github.com/llvm/llvm-project/pull/117622
More information about the cfe-commits
mailing list