From 28ee114457bb01b177e9ffab8730d91578524537 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Sun, 3 Jan 2021 20:46:20 +0000 Subject: [PATCH] Add clang analyze flags --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3d7efe..75dd988 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,6 +128,9 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "Clang") if (CODE_COVERAGE) add_compile_options(-fprofile-instr-generate -fcoverage-mapping) endif() + if (CODE_ANALYZER) + add_compile_options(--analyze) + endif() endif() separate_arguments(UIRC_HEADERS)