summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-10-14 09:18:38 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-10-15 20:11:42 +0000
commit16dbbc8f8c93f28194b8b440b9616119ea2f7b45 (patch)
tree7e435a9cc6ae09a155aff5b94e045852d0d97f99 /src/corelib/global
parent306f1af145ada1dc2f6a366e331d208295f4e2b2 (diff)
qcompilerdetection.h: detect Coverity
Just to persist the knowledge of how to detect it for the next guy. Pick-to: 6.4 6.2 5.15 Change-Id: I16847d02ce60fab0ae14ffb2688f2ee92fa6a9f2 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qcompilerdetection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h
index c74f68324a..6dd76ce30a 100644
--- a/src/corelib/global/qcompilerdetection.h
+++ b/src/corelib/global/qcompilerdetection.h
@@ -20,6 +20,7 @@
/*
The compiler, must be one of: (Q_CC_x)
+ COVERITY - Coverity cov-scan
SYM - Digital Mars C/C++ (used to be Symantec C++)
MSVC - Microsoft Visual C/C++, Intel C++ for Windows
BOR - Borland/Turbo C++
@@ -46,6 +47,10 @@
Should be sorted most to least authoritative.
*/
+#if defined(__COVERITY__)
+# define Q_CC_COVERITY
+#endif
+
/* Symantec C++ is now Digital Mars */
#if defined(__DMC__) || defined(__SC__)
# define Q_CC_SYM