From 1df7efe377e01e627e2c2e768770a8d52bd1d9ed Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 14 Oct 2022 09:18:38 +0200 Subject: [PATCH] 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(+) diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index e7d3cb0fc73..81477b2ff0b 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -12,6 +12,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++ @@ -38,6 +39,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