From fca7a270bfaf568e69b7d8a4137faded1b1cbdad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 13 May 2021 13:44:32 +0200 Subject: [PATCH] daca@home; show unhandled chars diagnostics --- lib/tokenize.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 8bfa3aaca..6edcc5d85 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2767,7 +2767,7 @@ bool Tokenizer::simplifyTokens1(const std::string &configuration) } // Warn about unhandled character literals - if (mSettings->severity.isEnabled(Severity::information)) { + if (mSettings->severity.isEnabled(Severity::debug) || mSettings->daca) { for (const Token *tok = tokens(); tok; tok = tok->next()) { if (tok->tokType() == Token::eChar && tok->values().empty()) { try { @@ -9551,8 +9551,8 @@ void Tokenizer::unhandledCharLiteral(const Token *tok, const std::string& msg) c } reportError(tok, - Severity::information, - "cppcheckUnhandledChar", + Severity::debug, + "debugUnhandledChar", "Character literal" + s + " is not handled. " + msg); }