[clang] [Sema] Don't drop weak_import from a declaration that follows a declaration directly contained in a linkage-specification (PR #85886)
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Wed May 8 20:53:48 PDT 2024
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
More information about the cfe-commits
mailing list