+1 for landing it On Dec 10, 2017 6:24 AM, "Mateusz Loskot" <[email protected]> wrote:
> On 10 Dec 2017 14:52, "Even Rouault" <[email protected]> wrote: > > > > > (*) sed "s/NULL/nullptr/g" is not an option, as there is a significant > number of occurences of NULL being in a string (think to SQL statements). > > clang-tidy works great, but as it does a true parsing of the code, you > need to pass it the same -D and -I switches as the compiler would take. I > guess there would perhaps be a way of creating a CXX script that could be > used as a fake compiler and would redirect to clang-tidy. > > > Even, best results clang-tidy delivers if used with clang compile database > (JSON file). Its easy to generate one with CMake, but that's obviously not > an (convenient) option for GDAL. > > Have you tried Bear instead? > https://github.com/rizsotto/Bear > > It can intercept compile commands from any build system on Linux. > > Mateusz > > _______________________________________________ > gdal-dev mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
