[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #73017)

Egor Zhdan via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 06:22:26 PST 2024


================
@@ -15139,6 +15139,37 @@ void Sema::DiagnoseSizeOfParametersAndReturnValue(
   }
 }
 
+QualType Sema::AdjustParameterTypeForObjCAutoRefCount(QualType T,
+                                                      SourceLocation NameLoc,
+                                                      TypeSourceInfo *TSInfo) {
+  // In ARC, infer a lifetime qualifier for appropriate parameter types.
+  if (getLangOpts().ObjCAutoRefCount &&
----------------
egorzhdan wrote:

Yeap, done

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


More information about the cfe-commits mailing list