[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 08:35:32 PDT 2024


================
@@ -215,6 +215,18 @@ void Sema::inferGslOwnerPointerAttribute(CXXRecordDecl *Record) {
   inferGslPointerAttribute(Record, Record);
 }
 
+void Sema::inferNullableClassAttribute(CXXRecordDecl *CRD) {
+  static llvm::StringSet<> Nullable{
+      "auto_ptr",         "shared_ptr", "unique_ptr",         "exception_ptr",
----------------
AaronBallman wrote:

Okay, SGTM! If we want to change our mind here, we can always do so later, too.

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


More information about the cfe-commits mailing list