mgehre added a comment. I understand that putting types on forward declared header (standard libraries / third party libraries) is not a approach we should favor. Thank you for your good arguments. API notes seems like a really good approach for this (I would like to help with the upstreaming), and in the meanwhile I will work on hard-coding attributes for standard library types in clang for a follow-up PR. I think we could have them always attached (I will measure performance), so that -Wlifetime will not change the AST.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D63954/new/ https://reviews.llvm.org/D63954 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits