================
@@ -2999,8 +2999,7 @@ void clang::sema::AnalysisBasedWarnings::IssueWarnings(
}
}
- if (S.getLangOpts().CPlusPlus &&
- S.getLangOpts().EnableLifetimeSafetyTUAnalysis)
+ if (S.getLangOpts().EnableLifetimeSafetyTUAnalysis && !S.getLangOpts().ObjC)
----------------
usx95 wrote:
Can we use `IsLifetimeSafetyEnabled` here and make it return true for TUdecl
instead of checking if diags are enabled.
https://github.com/llvm/llvm-project/pull/203270
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits