forked from qt-creator/qt-creator
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:
@@ -25,6 +25,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cppcheck/cppcheckdiagnosticmanager.h>
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <unordered_map>
|
||||
@@ -35,13 +37,13 @@ namespace Internal {
|
||||
class Diagnostic;
|
||||
class CppcheckTextMark;
|
||||
|
||||
class CppcheckTextMarkManager final
|
||||
class CppcheckTextMarkManager final : public CppcheckDiagnosticManager
|
||||
{
|
||||
public:
|
||||
explicit CppcheckTextMarkManager();
|
||||
~CppcheckTextMarkManager();
|
||||
~CppcheckTextMarkManager() override;
|
||||
|
||||
void add(const Diagnostic &diagnostic);
|
||||
void add(const Diagnostic &diagnostic) override;
|
||||
void clearFiles(const Utils::FilePathList &files);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user