Commit 416b1274 authored by Aaron Ballman's avatar Aaron Ballman
Browse files

Disable __has_cpp_attribute when not compiling in C++ mode. As this feature...

Disable __has_cpp_attribute when not compiling in C++ mode. As this feature test macro only supports C++ style attributes, it doesn't apply to code compiled as C code, and can lead to diagnostics when given a scoped attribute.

This addresses PR23435.

llvm-svn: 236996
parent d9ff035d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment