We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0579c69 commit 62cbf6cCopy full SHA for 62cbf6c
clang/include/clang/Basic/AttrDocs.td
@@ -4162,7 +4162,9 @@ The following C++ standard library types are considered nullable:
4162
Types should be marked nullable only where the type itself leaves nullability
4163
ambiguous. For example, ``std::optional`` is not marked ``_Nullable``, because
4164
``optional<int> _Nullable`` is redundant and ``optional<int> _Nonnull`` is
4165
-not a useful type.
+not a useful type. ``std::weak_ptr`` is not nullable, because its nullability
4166
+can change with no visible modification, so static annotation is unlikely to be
4167
+unhelpful.
4168
}];
4169
}
4170
0 commit comments