[PATCH] D66364: Diagnose use of _Thread_local as an extension when appropriate

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 13:43:13 PDT 2019


ldionne added a comment.

In D66364#1635814 <https://reviews.llvm.org/D66364#1635814>, @aaron.ballman wrote:

> [ ...]
>
> Adding some libc++ maintainers to see if they have opinions.
>
> `__extension__` is one option. Could we get away with push/pop disabling of the diagnostic? Or perhaps this is a situation where we should not diagnose use within a system header in the first place, because that's part of the implementation?


I just learned about `__extension__`, but from my perspective it makes sense to mark uses of `_Atomic` with `__extension__` (or disable the warning with a `#pragma`) inside libc++ if we're using something non-standard for the current dialect. I don't think Clang should bend its back for libc++ in this case.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66364/new/

https://reviews.llvm.org/D66364





More information about the cfe-commits mailing list