[PATCH] D90835: [clang-tidy] Ignore diagnostics due to macro expansion from not-interested headers

Dmitry Polukhin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 9 08:28:16 PDT 2021


DmitryPolukhin added a comment.

In D90835#2808153 <https://reviews.llvm.org/D90835#2808153>, @lebedev.ri wrote:

> This needs to explain why the existing functionality isn't sufficient - if the header is really not from this project,
> then it should be included via `-isystem`, and that will naturally suppress all diagnostics from it.

The diagnostics are reported in the place of macro expansion i.e. user sources. It doesn't matter how they get included via -isystem or -I.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90835/new/

https://reviews.llvm.org/D90835



More information about the cfe-commits mailing list