[cfe-commits] r150526 - /cfe/trunk/INPUTS/all-std-headers.cpp

Richard Smith richard-llvm at metafoo.co.uk
Tue Feb 14 15:06:14 PST 2012


Author: rsmith
Date: Tue Feb 14 17:06:14 2012
New Revision: 150526

URL: http://llvm.org/viewvc/llvm-project?rev=150526&view=rev
Log:
Extend all-std-headers.cpp to include C++11 headers when building in C++11 mode.
Conditionally include headers which older STL implementations don't provide.

Modified:
    cfe/trunk/INPUTS/all-std-headers.cpp

Modified: cfe/trunk/INPUTS/all-std-headers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/INPUTS/all-std-headers.cpp?rev=150526&r1=150525&r2=150526&view=diff
==============================================================================
--- cfe/trunk/INPUTS/all-std-headers.cpp (original)
+++ cfe/trunk/INPUTS/all-std-headers.cpp Tue Feb 14 17:06:14 2012
@@ -49,3 +49,36 @@
 #include <utility>
 #include <valarray>
 #include <vector>
+
+#if __cplusplus >= 201103
+#include <array>
+#if __has_include(<atomic>)
+#include <atomic>
+#endif
+#include <chrono>
+#if __has_include(<codecvt>)
+#include <codecvt>
+#endif
+#include <condition_variable>
+#include <forward_list>
+#if __has_include(<future>)
+#include <future>
+#endif
+#include <initializer_list>
+#include <mutex>
+#include <random>
+#include <ratio>
+#include <regex>
+#if __has_include(<scoped_allocator>)
+#include <scoped_allocator>
+#endif
+#include <system_error>
+#include <thread>
+#include <tuple>
+#include <type_traits>
+#if __has_include(<typeindex>)
+#include <typeindex>
+#endif
+#include <unordered_map>
+#include <unordered_set>
+#endif





More information about the cfe-commits mailing list