HomePhabricator

Implement P1771

Authored by erichkeane on Jul 25 2019, 8:10 AM.

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

llvm-svn: 367027

Details

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