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

Method syntaxError

lib/tokenize.cpp:8341–8346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8339//---------------------------------------------------------------------------
8340
8341void Tokenizer::syntaxError(const Token *tok, const std::string &code) const
8342{
8343 if (mSettings.debugSimplified || mSettings.debugnormal)
8344 printDebugOutput(std::cout);
8345 throw InternalError(tok, code.empty() ? "syntax error" : "syntax error: " + code, InternalError::SYNTAX);
8346}
8347
8348void Tokenizer::unmatchedToken(const Token *tok) const
8349{

Callers 5

isFunctionMethod · 0.45
addArgumentsMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected