diff options
author | Sergey Morozov <dev@gres.biz> | 2019-11-03 23:00:16 +0300 |
---|---|---|
committer | Sergey Morozov <dev@gres.biz> | 2019-12-04 18:15:41 +0000 |
commit | 0aa95576c282b59fa05a23d1f40da0d270547ae7 (patch) | |
tree | a7dceb2dc9ae5f989a8a35a418c88e95b2cf4eb0 /src/plugins/cppcheck/cppcheckdiagnostic.h | |
parent | 07490e76de2ee74df342849978ecafee18c53527 (diff) |
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>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckdiagnostic.h')
-rw-r--r-- | src/plugins/cppcheck/cppcheckdiagnostic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cppcheck/cppcheckdiagnostic.h b/src/plugins/cppcheck/cppcheckdiagnostic.h index 566a60b974..eea6ef430e 100644 --- a/src/plugins/cppcheck/cppcheckdiagnostic.h +++ b/src/plugins/cppcheck/cppcheckdiagnostic.h @@ -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 |