summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qcompilerdetection.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-12-18 15:59:23 -0800
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-01-06 17:39:03 +0100
commit9d9b785259103ebed616bd59a3b3f2fd6cb95019 (patch)
tree8394d9d15e3a23e7f60b931a033330baac2c26da /src/corelib/global/qcompilerdetection.h
parent2bdcea9d31d07c32e085a5194873c735e519855d (diff)
Give ICC-as-Clang a Q_CC_CLANG version number too
Give it version number 3.5 for current compatibility. Change-Id: Ia023d29b3b3946f8642a0550279ae63cbb803fc5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/corelib/global/qcompilerdetection.h')
-rw-r--r--src/corelib/global/qcompilerdetection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h
index 36ba57a0ff..3f813e163b 100644
--- a/src/corelib/global/qcompilerdetection.h
+++ b/src/corelib/global/qcompilerdetection.h
@@ -145,6 +145,10 @@
# if defined(__INTEL_COMPILER)
/* Intel C++ also masquerades as GCC */
# define Q_CC_INTEL (__INTEL_COMPILER)
+# ifdef __clang__
+/* Intel C++ masquerades as Clang masquerading as GCC */
+# define Q_CC_CLANG 305
+# endif
# define Q_ASSUME_IMPL(expr) __assume(expr)
# define Q_UNREACHABLE_IMPL() __builtin_unreachable()
# if __INTEL_COMPILER >= 1300 && !defined(__APPLE__)