HomePhabricator

Implement P1771

Description

Implement P1771

As passed in the Cologne meeting and treated by Core as a DR,
[[nodiscard]] was applied to constructors so that they can be diagnosed
in cases where the user forgets a variable name for a type.

The intent is to enable the library to start using this on the
constructors of scope_guard/lock_guard.

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

Details

Committed
erichkeaneJul 25 2019, 8:10 AM
Differential Revision
D64914: Implement P1771
Parents
rL367026: [clang] Remove IsDerivedFromDeathTest.DiesOnEmptyBaseName test.
Branches
Unknown
Tags
Unknown