[clang] [LifetimeSafety] Support C Language in LifetimeSafety (PR #203270)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 17 00:57:43 PDT 2026
================
@@ -27,6 +27,11 @@ namespace clang::lifetimes {
inline bool IsLifetimeSafetyEnabled(Sema &S, const Decl *D) {
if (S.getLangOpts().DebugRunLifetimeSafety)
return true;
+ // TODO: Enable ObjectiveC later when we know it's stable enough.
+ if (S.getLangOpts().ObjC)
+ return false;
----------------
usx95 wrote:
Please add some form of comments preferably the suggested text.
https://github.com/llvm/llvm-project/pull/203270
More information about the cfe-commits
mailing list