From f6c46ce35d9018335a19d8d75fda4dfd7adf69b3 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Mon, 28 Jan 2019 12:40:03 +0100 Subject: Clang: Add tooltip action to remove specific warnings/checks ...from the diagnostic configuration. If no custom diagnostic configuration is set in Projects Mode > Clang, one is created and set for the current project. Otherwise the current custom diagnostic set in the project settings is modified. Change-Id: I5c48280c90f0e807e7333122d504dda302a8b0a9 Reviewed-by: Ivan Donchevskii --- src/plugins/cpptools/cpptoolsreuse.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/plugins/cpptools/cpptoolsreuse.cpp') diff --git a/src/plugins/cpptools/cpptoolsreuse.cpp b/src/plugins/cpptools/cpptoolsreuse.cpp index 63d0a0bbc8..c56bfb9160 100644 --- a/src/plugins/cpptools/cpptoolsreuse.cpp +++ b/src/plugins/cpptools/cpptoolsreuse.cpp @@ -27,6 +27,7 @@ #include "cppcodemodelsettings.h" #include "cpptoolsplugin.h" +#include "cpptools_clazychecks.h" #include #include @@ -287,4 +288,14 @@ UsePrecompiledHeaders getPchUsage() return UsePrecompiledHeaders::Yes; } +QString clazyChecksForLevel(int level) +{ + QStringList checks; + for (const Constants::ClazyCheckInfo &check : Constants::CLAZY_CHECKS) { + if (check.level == level) + checks << check.name; + } + return checks.join(','); +} + } // CppTools -- cgit v1.2.1