[QGIS-Developer] Clang-Tidy failing by not finding qgis_test.h
Sandro Santilli
strk at kbt.io
Fri Feb 17 08:00:59 PST 2023
On Fri, Feb 17, 2023 at 04:46:03PM +0100, Julien Cabieces via QGIS-Developer wrote:
> At the end of the failing job, you have the following instructions
>
> To reproduce locally:
> - launch cmake with option -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
> - update build by calling Ninja
> - launch command ./scripts/clang-tidy.sh -p <your_build_dir> <source_file>
[...]
> I take a quick look:
> - qgis_test.h exists in the build artefact
> - the folder is included for testqgspostgresconn in
> compile_commands.json,
>
> So everything looks good. My code completion/navigation tool based on LSP/clang
> print me an error also and, like clang-tidy, it relies on
> compile_commands.json.
>
> So far, I don't know why there is an error and I don't have time for
> more investigation now.
>
> I'm away from keyboard for a week, I can take a look when I come back.
Thanks Julien, for now I filed an issue to track this:
https://github.com/qgis/QGIS/issues/51917
> If you don't want to wait and want the PR to be merged, you can bypass
> the failing job, I'll try to figure out what the problem is later.
Thanks, will try this.
--strk;
More information about the QGIS-Developer
mailing list