Add option to skip all lints on specific sources
Changes
-
Code duplication was reduced for the generation of code check rules in both Ninja and Makefile. Some code was moved to
cmCommonTargetGenerator
. -
Ninja was generating code check rules per language. It was changed to generation for per source file.
-
The
SKIP_LINTING
source property was added to disable code check for desired source files. TheSKIP_LINTING
includescpplint
,clang-tidy
,cppcheck
, andinclude-what-you-use
. IfSKIP_LINTING
is set on a source file, the tools mentioned above will not be run on that source file. -
SKIP_LINTING
is set for files generated byAutogen
-
Const Correctness improved
Fixes: #19772 (closed)
Topic-rename: skip-linting
Edited by Orkun Tokdemir