HomePhabricator

Add new 'preferred_name' attribute.

Authored by rsmith on Nov 11 2020, 5:12 PM.

Description

Add new 'preferred_name' attribute.

This attribute permits a typedef to be associated with a class template
specialization as a preferred way of naming that class template
specialization. This permits us to specify that (for example) the
preferred way to express 'std::basic_string<char>' is as 'std::string'.

The attribute is applied to the various class templates in libc++ that have
corresponding well-known typedef names.

This is a re-commit. The previous commit was reverted because it exposed
a pre-existing bug that has since been fixed / worked around; see
PR48434.

Differential Revision: https://reviews.llvm.org/D91311

Details

Committed
rsmithDec 9 2020, 12:22 PM
Differential Revision
D91311: Add new 'preferred_name' attribute.
Parents
rG997a719d5a70: PR48434: Work around crashes due to deserialization cycles via typedefs.
Branches
Unknown
Tags
Unknown