Fixed #4052 (Show Cppcheck version in online demo)

This commit is contained in:
Daniel Marjamäki 2015-11-25 19:33:04 +01:00
parent 2737f63f71
commit 35b270ddcc
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <algorithm> #include <algorithm>
#include "cppcheck.h" #include "cppcheck.h"
#include "version.h"
static void unencode(const char *src, char *dest) static void unencode(const char *src, char *dest)
{ {
@ -104,7 +105,7 @@ int main()
} }
puts("Content-type: text/html\r\n\r\n"); puts("Content-type: text/html\r\n\r\n");
puts("<html><body><pre>"); puts("<html><body>Cppcheck version " CPPCHECK_VERSION_STRING "<pre>");
CppcheckExecutor cppcheckExecutor; CppcheckExecutor cppcheckExecutor;
cppcheckExecutor.run(code); cppcheckExecutor.run(code);