<div dir="ltr">This works for me:<div><br></div><div><div>    CXX_CLANG_TIDY</div><div>        "/usr/bin/clang-tidy"</div><div>        "-checks=modernize-*,readability-*,performance-*"</div><div>        "-fix"</div></div><div><br></div><div>I think the difference are the semicolons in the checks instead of commas.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 16, 2016 at 1:32 PM, Nikita <span dir="ltr"><<a href="mailto:nikita.kakuev@gmail.com" target="_blank">nikita.kakuev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've noticed that CXX_CLANG_TIDY property doesn't work correctly if I<br>
specify several arguments to clang-tidy. Here's an example:<br>
set_property(<br>
    TARGET ${PROJECT_NAME}<br>
    PROPERTY CXX_CLANG_TIDY clang-tidy;-checks=*;-<wbr>warnings-as-errors=*)<br>
<br>
Building a target with this property produces no output. It seems like<br>
clang-tidy doesn't get called. However, if I remove<br>
'-warnings-as-errors', everything works fine.<br>
<br>
The same goes for other options as well. Specifying '-header-filter'<br>
or '-line-filter' results in no output.<br>
<br>
Is there a way to get additional clang-tidy options working?<br>
<br>
Regards,<br>
Nikita<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>