HomePhabricator

Add a "vexing parse" warning for ambiguity between a variable declaration and a

Description

Add a "vexing parse" warning for ambiguity between a variable declaration and a
function-style cast.

This fires for cases such as

T(x);

... where 'x' was previously declared and T is a type. This construct declares
a variable named 'x' rather than the (probably expected) interpretation of a
function-style cast of 'x' to T.

Details

Committed
rsmithSep 29 2017, 4:57 PM
Branches
Unknown
Tags
Unknown