summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_macros.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-01-16 01:37:43 +0000
committerEric Fiselier <eric@efcs.ca>2019-01-16 01:37:43 +0000
commit32784a740a0282dc6f4390b683ed6c6516f4d66c (patch)
tree04747397f1cf0d73d679572ce709ab61df6776da /libcxx/test/support/test_macros.h
parent56c587adfd2999a5f096cf49266552de931aa1e3 (diff)
downloadbcm5719-llvm-32784a740a0282dc6f4390b683ed6c6516f4d66c.tar.gz
bcm5719-llvm-32784a740a0282dc6f4390b683ed6c6516f4d66c.zip
Implement feature test macros using a script.
Summary: This patch implements all the feature test macros libc++ currently supports, as specified by the standard or cppreference prior to C++2a. The tests and `<version>` header are generated using a script. The script contains a table of each feature test macro, the headers it should be accessible from, and its values of each dialect of C++. When a new feature test macro is added or needed, the table should be updated and the script re-run. Reviewers: mclow.lists, jfb, serge-sans-paille Reviewed By: mclow.lists Subscribers: arphaman, jfb, ldionne, libcxx-commits Differential Revision: https://reviews.llvm.org/D56750 llvm-svn: 351286
Diffstat (limited to 'libcxx/test/support/test_macros.h')
-rw-r--r--libcxx/test/support/test_macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h
index 99755529679..5af07247122 100644
--- a/libcxx/test/support/test_macros.h
+++ b/libcxx/test/support/test_macros.h
@@ -69,6 +69,7 @@
#define TEST_CLANG_VER (__clang_major__ * 100) + __clang_minor__
#elif defined(__GNUC__)
#define TEST_GCC_VER (__GNUC__ * 100 + __GNUC_MINOR__)
+#define TEST_GCC_VER_NEW (TEST_GCC_VER * 10 + __GNUC_PATCHLEVEL__)
#endif
/* Make a nice name for the standard version */
OpenPOWER on IntegriCloud