From eb9576cdf851e025167e177eaa2d892b1315dd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 29 May 2020 14:20:46 +0200 Subject: [PATCH] CLI: 'simple' rules are deprecated, support will be removed in Cppcheck-2.5 --- lib/cppcheck.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index edb3a2bc6..0b4349eb8 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -757,6 +757,8 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string // simplify more if required, skip rest of iteration if failed if (mSimplify && hasRule("simple")) { + std::cout << "Handling of \"simple\" rules is deprecated and will be removed in Cppcheck 2.5." << std::endl; + // if further simplification fails then skip rest of iteration Timer timer3("Tokenizer::simplifyTokenList2", mSettings.showtime, &s_timerResults); result = mTokenizer.simplifyTokenList2();