From 16dbbc8f8c93f28194b8b440b9616119ea2f7b45 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. Pick-to: 6.4 6.2 5.15 Change-Id: I16847d02ce60fab0ae14ffb2688f2ee92fa6a9f2 Reviewed-by: Ulf Hermann Reviewed-by: Volker Hilsheimer Reviewed-by: Giuseppe D'Angelo --- 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 c74f68324aa..6dd76ce30ad 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