ahatanak wrote: > With that said, I think you need to check if a definition exists at all and > not just whether the last declaration is that definition.
Note that `checkNewAttributesAfterDef`, which is called right before the check, removes attributes on `New` if there was a full definition. The updated patch just looks for any previously declared tentative definition. https://github.com/llvm/llvm-project/pull/85886 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits