This is a clang-tidy
plugin that warns on use of includes like <qstring.h>
.
This should be as simple as mkdir build && cd build && cmake .. && make -j$(nproc)
.
To use this plugin:
- Ensure it's loaded it into your clang-tidy. Add
-load libUseProperQtHeaders.so
to your clang-tidy command. - Ensure that the check
pqh-useproperqtheaders
is enabled.
This project is licensed under GPL v3 exclusively.
As a starting off point I used an example from Coveo Open-Source clang-tidy-plugin-examples repo. That repo is available under the Apache license.
The .clang-format
was shamelessly taken from Chatterino, which is licensed
under MIT.