Add options to run clang-tidy with the compiler

Create a <LANG>_CLANG_TIDY target property (initialized by a
CMAKE_<LANG>_CLANG_TIDY variable) to specify a clang-tidy command line
to be run along with the compiler.
This commit is contained in:
Daniel Pfeifer
2016-04-08 22:09:27 +02:00
committed by Brad King
parent 9ac11bc25d
commit 5e62444cff
24 changed files with 182 additions and 28 deletions
+7
View File
@@ -0,0 +1,7 @@
clang-tidy
----------
* A :prop_tgt:`<LANG>_CLANG_TIDY` target property and supporting
:variable:`CMAKE_<LANG>_CLANG_TIDY` variable were introduced to tell the
:ref:`Makefile Generators` and the :generator:`Ninja` generator to run
``clang-tidy`` along with the compiler for ``C`` and ``CXX`` languages.