Make __has_extension(c_thread_local) work.
authorEd Schouten <ed@80386.nl>
Sat, 14 Sep 2013 16:17:20 +0000 (16:17 +0000)
committerEd Schouten <ed@80386.nl>
Sat, 14 Sep 2013 16:17:20 +0000 (16:17 +0000)
commit401aebab934b54ecf596c8fe628e0e09cf095c97
tree7c66718dfc2d07098795200df15a06f50612c0e0
parent8eb45a4ef6d48703f7cc06a6e6bc81f74c464b8d
Make __has_extension(c_thread_local) work.

Unlike C++11's "thread_local" keyword, C11's "_Thread_local" is in the
reserved namespace, meaning we provide it unconditionally; it is marked
as KEYALL in TokenKinds.def.

This means that like all the other C11 keywords, we can expose its
presence through __has_extension().

llvm-svn: 190755
clang/docs/LanguageExtensions.rst
clang/lib/Lex/PPMacroExpansion.cpp