[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

2024-10-14 Thread SwanBai Lei27 via cfe-commits
Baiyi27 wrote: > This feature works as intended, it is only for filtering out diagnosed > issues, not for skipping the analysis in those files. See #52959 for the > feature you are looking for. TLDR: clang-tidy currently does not skip the > analysis in (system) header files, `exclude-header-fi

[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

2024-10-14 Thread SwanBai Lei27 via cfe-commits
Baiyi27 wrote: I found a problem. In my project, I used `vcpkg` to manage the qt5 library. ```c++ #include "qapplication.h" #include "qpushbutton.h" #include "qstring.h" #include "fmt/format.h" class MainWindow: public QWidget { public: MainWindow(QWidget *parent= nullptr) : QWidget(