Cppcheck: Add ability to manually run cppcheck

Run cppcheck on selected files from current project via "Analyze"->"Cppcheck...."
Show results in a separate view in the same manner as ClangTools plugin.

Fixes: QTCREATORBUG-21673
Change-Id: Ibcaf4057a387a990f1da59025f15ba58f996953f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Sergey Morozov
2019-11-03 23:00:16 +03:00
parent 07490e76de
commit 0aa95576c2
20 changed files with 936 additions and 126 deletions

View File

@@ -39,6 +39,7 @@ public:
bool isValid() const {
return !fileName.isEmpty() && lineNumber > 0;
}
bool operator==(const Diagnostic& diagnostic) const;
Severity severity = Severity::Information;
QString severityText;
@@ -48,5 +49,7 @@ public:
int lineNumber = 0;
};
quint32 qHash(const Diagnostic &diagnostic);
} // namespace Internal
} // namespace Cppcheck