llvm-project/libcxx/src
Logan Chien b0d5be563b Fix GCC unknown pragma warning in libc++.
We should check defined(__clang__) before the usage of the
clang diagnostic pragmas.

The [-Wswitch] warning in src/future.cpp should be ignored.
As the result, the equivalent GCC pragma is added.

llvm-svn: 197314
2013-12-14 06:45:09 +00:00
..
support This patch implements snprintf_l function in a way similar to the other 2013-11-18 21:12:14 +00:00
algorithm.cpp Turn off extern templates for most uses. It is causing more problems than it is worth. The extern templates will still be built into the dylib, mainly for ABI stability purposes. And the client can still turn these back on with a #define if desire. This fixes http://llvm.org/bugs/show_bug.cgi?id=17027. However there's no associated test for the test suite because http://llvm.org/bugs/show_bug.cgi?id=17027 needs mismatched dylib and headers to fire. 2013-08-29 20:56:53 +00:00
bind.cpp license change 2010-11-16 22:09:02 +00:00
chrono.cpp Removed raw references to __APPLE__; now just check to see if it is defined. 2013-03-18 17:45:34 +00:00
condition_variable.cpp Change sleep_for, sleep_until, and the condition_variable timed wait 2012-08-30 19:14:33 +00:00
debug.cpp Rename _LIBCPP_DEBUG2 to _LIBCPP_DEBUG. 2013-08-23 20:10:18 +00:00
exception.cpp Patch by Bruce Mitchener. Change all references to EMSCRIPTEN to __EMSCRIPTEN__. If you're not using the PP symbol EMSCRIPTEN, then you should see no functionality change. 2013-11-19 18:05:03 +00:00
future.cpp Fix GCC unknown pragma warning in libc++. 2013-12-14 06:45:09 +00:00
hash.cpp Only use Clang pragma when compiling with clang. 2013-04-27 19:10:15 +00:00
ios.cpp LWG Issue 2087: iostream_category() and noexcept 2013-10-12 22:49:56 +00:00
iostream.cpp Nico Rieck: this patch series fixes visibility issues on Windows as explained in <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-August/031214.html>. 2013-08-12 18:38:34 +00:00
locale.cpp Patch by Xing Xue to improve libc++ support for AIX 2013-11-19 19:16:03 +00:00
memory.cpp This should be nothing but a load-time optimization. I'm trying to reduce load time initializers and this is a big one. No visible functionality change intended. 2013-03-16 00:17:53 +00:00
mutex.cpp Peter Collingbourne: Fix warnings when compiling with -DNDEBUG. 2013-09-21 21:26:37 +00:00
new.cpp Patch from Bruce Mitchener; fixes two typos in comments. No functionality change. PR17843 2013-11-11 23:27:19 +00:00
optional.cpp Move <optional> into include/experimental, and into the std::experimental namespace, since it's not part of C++14, but of an upcoming TS 2013-11-15 22:42:10 +00:00
random.cpp G M suggestion: conditionally include files on _WIN32. 2013-11-18 21:30:19 +00:00
regex.cpp Fix GCC unknown pragma warning in libc++. 2013-12-14 06:45:09 +00:00
shared_mutex.cpp N3659: Shared locking in C++ Revision 2, c++1y only 2013-09-21 01:49:28 +00:00
stdexcept.cpp Make it possible to link against libstdc++ as well as libsupc++ with CMake. 2013-10-06 22:13:19 +00:00
string.cpp Fix typo. 2013-09-17 08:46:53 +00:00
strstream.cpp Patch from GM to make more implicit bools explicit since we can't stop MSVC warning about this in headers and to warn is the MSVC default. No functionality change. 2013-10-13 01:02:45 +00:00
system_error.cpp LWG 2145 - mark constructor for std::error_category as inline and constexpr. Leave the (existing, out-of-line, non-constexpr) in the dylib for compatibility with existing programs) 2013-08-21 02:57:19 +00:00
thread.cpp G M: Provides the _LIBCPP_WARNING macro, to be used for MSVC only, since that compiler doesn't support #warning. 2013-10-04 21:14:44 +00:00
typeinfo.cpp Re-add bad_cast and bad_typeid default ctor definitions under libsupc++. 2013-10-03 22:04:10 +00:00
utility.cpp Put std::piecewise_construct_t back into the dylib for ABI stability. When clients are in C++11/constexpr mode this will be safely ignored because piecewise_construct is then declared with internal linkage. 2012-04-03 23:45:46 +00:00
valarray.cpp Turn off extern templates for most uses. It is causing more problems than it is worth. The extern templates will still be built into the dylib, mainly for ABI stability purposes. And the client can still turn these back on with a #define if desire. This fixes http://llvm.org/bugs/show_bug.cgi?id=17027. However there's no associated test for the test suite because http://llvm.org/bugs/show_bug.cgi?id=17027 needs mismatched dylib and headers to fire. 2013-08-29 20:56:53 +00:00