__cpp_lib_type_identity was implemented way back in cf49ccd0 (Clang 8), probably before the feature-test macro had been settled on.
__cpp_lib_string_resize_and_overwrite will be added by D113013 so I didn't add it here.
Fixes https://llvm.org/PR47261
Please update the patch title and description to match the changed scope.