HomePhabricator

Disallow use of __has_c_attribute in C++ mode.

Authored by aaron.ballman on Nov 25 2019, 2:32 PM.

Description

Disallow use of __has_c_attribute in C++ mode.

has_cpp_attribute is not available in C mode, and has_c_attribute
should not be available in C++ mode. This also adds a test to
demonstrate that we properly handle scoped attribute tokens even in C
mode.

Details

Committed
aaron.ballmanNov 25 2019, 2:35 PM
Parents
rG214683f3b2d6: [DAGCombiner] avoid crash on out-of-bounds insert index (PR44139)
Branches
Unknown
Tags
Unknown