diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-03-07 15:12:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 15:12:21 -0500 |
commit | 292a28df6c55679fad0589dea35278a8c66b2ae1 (patch) | |
tree | 6f2ba4b67c9608de3dc31105b25cbab0017c5f54 /llvm/unittests/Analysis/ValueTrackingTest.cpp | |
parent | a10fd16270b6fecf99b793318872e208c8b1abab (diff) | |
download | llvm-292a28df6c55679fad0589dea35278a8c66b2ae1.zip llvm-292a28df6c55679fad0589dea35278a8c66b2ae1.tar.gz llvm-292a28df6c55679fad0589dea35278a8c66b2ae1.tar.bz2 |
[libc++] Enable availability based on the compiler instead of __has_extension (#84065)
__has_extension(...) doesn't work as intended when -pedantic-errors is
used with Clang. With that flag, __has_extension(...) is equivalent to
__has_feature(...), which means that checks like
__has_extension(pragma_clang_attribute_external_declaration)
will return 0. In turn, this has the effect of disabling availability
markup in libc++, which is undesirable.
rdar://124078119
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
0 files changed, 0 insertions, 0 deletions