summaryrefslogtreecommitdiffstats
path: root/INPUTS
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-14 23:06:14 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-14 23:06:14 +0000
commit69f811d26865282411964e793724f95c4afefbb9 (patch)
tree6d06caab940fb1e555ba04bdec64d92032682798 /INPUTS
parentb5216aaf803609d25eb8514266dd8531812b4877 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'INPUTS')
-rw-r--r--INPUTS/all-std-headers.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/INPUTS/all-std-headers.cpp b/INPUTS/all-std-headers.cpp
index bddf4ec163..13e378dfc9 100644
--- a/INPUTS/all-std-headers.cpp
+++ b/INPUTS/all-std-headers.cpp
@@ -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