diff --git a/src/main.cpp b/src/main.cpp index ad4dcb935..abd088203 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,6 +16,28 @@ * along with this program. If not, see tokens(); tok; tok = tok->next()) + { + if (Token::Match(tok, "/ 0")) + reportError(tok, "error", "zerodiv", "Division by zero"); + } +} + \endcode + */ + + + #include "cppcheckexecutor.h" /**