summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-02-05 23:01:40 +0000
committerEric Fiselier <eric@efcs.ca>2015-02-05 23:01:40 +0000
commit6fe361c1efc9e7c38c164fc6469857a84d3cb299 (patch)
treedde0ea439fc4b9d325e00401045ed17f3841e810 /libcxx/test/support
parentf038a525428dc14fa80fb92763b030b3402923ec (diff)
downloadbcm5719-llvm-6fe361c1efc9e7c38c164fc6469857a84d3cb299.tar.gz
bcm5719-llvm-6fe361c1efc9e7c38c164fc6469857a84d3cb299.zip
Remove use of _[A-Z] identifiers and poison them to detect usage
llvm-svn: 228353
Diffstat (limited to 'libcxx/test/support')
-rw-r--r--libcxx/test/support/nasty_macros.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/libcxx/test/support/nasty_macros.hpp b/libcxx/test/support/nasty_macros.hpp
new file mode 100644
index 00000000000..2738e47eac9
--- /dev/null
+++ b/libcxx/test/support/nasty_macros.hpp
@@ -0,0 +1,32 @@
+#ifndef SUPPORT_NASTY_MACROS_HPP
+#define SUPPORT_NASTY_MACROS_HPP
+
+#define NASTY_MACRO This should not be expanded!!!
+#define _A NASTY_MACRO
+#define _B NASTY_MACRO
+#define _C NASTY_MACRO
+#define _D NASTY_MACRO
+#define _E NASTY_MACRO
+#define _F NASTY_MACRO
+#define _G NASTY_MACRO
+#define _H NASTY_MACRO
+#define _I NASTY_MACRO
+#define _J NASTY_MACRO
+#define _K NASTY_MACRO
+#define _L NASTY_MACRO
+#define _M NASTY_MACRO
+#define _N NASTY_MACRO
+#define _O NASTY_MACRO
+#define _P NASTY_MACRO
+#define _Q NASTY_MACRO
+#define _R NASTY_MACRO
+#define _S NASTY_MACRO
+#define _T NASTY_MACRO
+#define _U NASTY_MACRO
+#define _V NASTY_MACRO
+#define _W NASTY_MACRO
+#define _X NASTY_MACRO
+#define _Y NASTY_MACRO
+#define _Z NASTY_MACRO
+
+#endif // SUPPORT_NASTY_MACROS_HPP
OpenPOWER on IntegriCloud