Page MenuHomePhabricator

[c++] Implement categorizing pointer-to-bool as narrowing conversions
Needs ReviewPublic

Authored by lichray on Jul 1 2019, 2:04 PM.

Details

Reviewers
rsmith
EricWF
Summary

This change implements an upcoming Core issue to categorize boolean conversions from pointer and pointer-to-member as (always) narrowing conversion (you can tell the wording from this diff). MSVC does it slightly differently, for example, array-to-pointer conversion isn't applied before the test -- suspected a bug.

Diff Detail