From 7fda53df0c2260880715be3e16e84c2cd0a9a5e3 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 14 Oct 2022 09:18:38 +0200 Subject: qcompilerdetection.h: detect Coverity Just to persist the knowledge of how to detect it for the next guy. Change-Id: I16847d02ce60fab0ae14ffb2688f2ee92fa6a9f2 Reviewed-by: Ulf Hermann Reviewed-by: Volker Hilsheimer Reviewed-by: Giuseppe D'Angelo (cherry picked from commit 16dbbc8f8c93f28194b8b440b9616119ea2f7b45) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qcompilerdetection.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/corelib/global') diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 072ad3e43f..2a48c82e5a 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -48,6 +48,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++ @@ -74,6 +75,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 -- cgit v1.2.3