aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/clangtidyclazyrunner.h
Commit message (Collapse)AuthorAgeFilesLines
* ClangTools: Remove dependency to libclang and custom clang binaryNikolai Kosjar2020-05-191-8/+0
| | | | | | | | | | | | | | | | | | | | Before this change, we've invoked a custom clang binary that had clazy statically compiled into it. The invocation also ensured that the diagnostics were serialized to a file, so that libclang could be used afterwards to read them. As the clazy-standalone executable supports exporting diagnostics to a YAML file now (just as clang-tidy) and Qt Creator ships it already, rely on that executable alone instead of the clang/libclang combo. While we do not depend on any clang header or library at build-time now, the CompilerOptionsBuilder constructor still needs the CLANG_VERSION and CLANG_RESOURCE_DIR pieces from llvm-config. This dependency should be removed as next. Change-Id: I4fa5753ab09008fd24bc5247b28c4836b5e8ca45 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: hjk <hjk@qt.io>
* ClangTools: Allow invoking clazy-standalone instead of clangNikolai Kosjar2019-09-121-0/+8
| | | | | | | | | | | | ...this is for testing and debugging purposes so far. Eventually, we want to switch to clazy-standalone. But as of now there is no released clazy version supporting the required "-export-fixes=" option. It's in clazy's master branch only. Change-Id: If09941dc387658bbc17646a9140f4ee8fad4d6b3 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* ClangTools: Invoke clang-tidy instead of clangNikolai Kosjar2019-09-121-2/+2
| | | | | | Change-Id: Ibcc53cf8cb8bbaf262757bec52f15936506dad50 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* ClangTools: Use separate runners for tidy and clazyNikolai Kosjar2019-09-121-2/+10
| | | | | | | | | | For a file to analyze, start one process for tidy and one for clazy. No functional change. Change-Id: I049faed5ddbe306e4690ec6831fad19de0de35f6 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* ClangTools: Prepare for more ClangToolRunnersNikolai Kosjar2019-09-111-11/+1
| | | | | | Change-Id: I6bbdbff496c0604367896d279df1a197f8a041bd Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
* ClangTools: Allow selecting diagnostic config for projectNikolai Kosjar2018-05-151-1/+8
| | | | | | | | | | | | When starting the Clazy/Tidy tool, allow to select the diagnostic configuration for the run. As a side effect, fix a race condition where the runner could end up with no diagnostic config (removed during run) - copy the diagnostic config instead of referencing/querying it by the id. Change-Id: Iedafa8f31a3bbd233d65818fe8de16add1e4d443 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* ClangTools: Add tool that runs clang-tidy and clazyIvan Donchevskii2018-04-261-0/+47
... over the whole project. Generate and read serialized files to get diagnostics. Change-Id: Iafc25fc70443107a040a995efc038aed35102bbf Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>