[cfe-dev] clang-tidy -- how to exclude header files via regular expression

Oza, Hiral via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 18 22:35:10 PDT 2018


Greeting!

The feature to exclude certain headers (via regular expression), from generated warnings/errors, is much needed. Specifically needed for third-party sources for example: boost.

Can you pls suggest mechanism to exclude header files via regular expression with clang-tidy version 5, 6 or 7?

I found below references - but they are yet not available in GA releases!!!


  1.  [cfe-dev] [clang-tidy] Excluding individual files/lines from clang-tidy checks

http://lists.llvm.org/pipermail/cfe-dev/2016-November/051672.html

Review -- https://reviews.llvm.org/D26418



  1.  Allow passing a regex for headers to exclude from clang-tidy

Review -- https://reviews.llvm.org/D34654

Thank you.
-Hiral

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180619/b8ce9bec/attachment.html>


More information about the cfe-dev mailing list