MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / simplifyUsingError

Method simplifyUsingError

lib/tokenize.cpp:3499–3513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3497}
3498
3499void Tokenizer::simplifyUsingError(const Token* usingStart, const Token* usingEnd)
3500{
3501 if (mSettings.debugwarnings) {
3502 std::string str;
3503 for (const Token *tok = usingStart; tok && tok != usingEnd; tok = tok->next()) {
3504 if (!str.empty())
3505 str += ' ';
3506 str += tok->str();
3507 }
3508 str += " ;";
3509 std::list<const Token *> callstack(1, usingStart);
3510 mErrorLogger.reportErr(ErrorMessage(callstack, &list, Severity::debug, "simplifyUsing",
3511 "Failed to parse \'" + str + "\'. The checking continues anyway.", Certainty::normal));
3512 }
3513}
3514
3515bool Tokenizer::simplifyTokens1(const std::string &configuration, int fileIndex)
3516{

Callers

nothing calls this directly

Calls 5

nextMethod · 0.80
ErrorMessageClass · 0.70
emptyMethod · 0.45
strMethod · 0.45
reportErrMethod · 0.45

Tested by

no test coverage detected