daca@home; show unhandled chars diagnostics
This commit is contained in:
parent
22ab9ccd7f
commit
fca7a270bf
|
@ -2767,7 +2767,7 @@ bool Tokenizer::simplifyTokens1(const std::string &configuration)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warn about unhandled character literals
|
// 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()) {
|
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
||||||
if (tok->tokType() == Token::eChar && tok->values().empty()) {
|
if (tok->tokType() == Token::eChar && tok->values().empty()) {
|
||||||
try {
|
try {
|
||||||
|
@ -9551,8 +9551,8 @@ void Tokenizer::unhandledCharLiteral(const Token *tok, const std::string& msg) c
|
||||||
}
|
}
|
||||||
|
|
||||||
reportError(tok,
|
reportError(tok,
|
||||||
Severity::information,
|
Severity::debug,
|
||||||
"cppcheckUnhandledChar",
|
"debugUnhandledChar",
|
||||||
"Character literal" + s + " is not handled. " + msg);
|
"Character literal" + s + " is not handled. " + msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue