diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-14 23:06:14 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-14 23:06:14 +0000 |
commit | 9bd64f90e2429ee631075af38f382cb9244f8818 (patch) | |
tree | 9bac23a304a495aed3418d7a4bb8fc17c5aae8d6 | |
parent | e64294ef8417709ad3e196d30ed984f3a460d558 (diff) | |
download | bcm5719-llvm-9bd64f90e2429ee631075af38f382cb9244f8818.tar.gz bcm5719-llvm-9bd64f90e2429ee631075af38f382cb9244f8818.zip |
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.
llvm-svn: 150526
-rw-r--r-- | clang/INPUTS/all-std-headers.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/clang/INPUTS/all-std-headers.cpp b/clang/INPUTS/all-std-headers.cpp index bddf4ec163c..13e378dfc9f 100644 --- a/clang/INPUTS/all-std-headers.cpp +++ b/clang/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 |