Cppcheck: Add cppcheck static analysis tool

Automatically checks currently opened documents and displays results via text marks/annotations.

CppcheckTrigger detects when to check files or clear results.
CppcheckTextMarkManager stores/clears text marks with checks' results.
CppcheckTool generates run arguments and parses output.
CppcheckRunner runs cppcheck binary.
CppcheckOptions configures CppcheckTool.

Task-number: QTCREATORBUG-20418
Change-Id: I8eafeac7af6137d2c9061ae75d4a56c85b3b5a2d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Sergey Morozov
2018-07-30 21:42:47 +03:00
parent 20f3c8d654
commit 31b595314c
22 changed files with 1919 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
import qbs
QtcPlugin {
name: "Cppcheck"
Depends { name: "Core" }
Depends { name: "CppTools" }
Depends { name: "ExtensionSystem" }
Depends { name: "ProjectExplorer" }
Depends { name: "TextEditor" }
Depends { name: "Utils" }
Depends { name: "Qt.widgets" }
files: [
"cppcheckconstants.h",
"cppcheckdiagnostic.h",
"cppcheckoptions.cpp",
"cppcheckoptions.h",
"cppcheckplugin.cpp",
"cppcheckplugin.h",
"cppcheckrunner.cpp",
"cppcheckrunner.h",
"cppchecktextmark.cpp",
"cppchecktextmark.h",
"cppchecktextmarkmanager.cpp",
"cppchecktextmarkmanager.h",
"cppchecktool.cpp",
"cppchecktool.h",
"cppchecktrigger.cpp",
"cppchecktrigger.h"
]
}