A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pgRouting/pgrouting/pull/2614 below:

Clang tidy does not work · Issue #2614 · pgRouting/pgrouting · GitHub

While trying to use clang-tidy
Tidying headers:

$ clang-tidy -header-filter=./include include/a*/*.h* --  -I/home/path/to/repo/include -isystem /usr/include/postgresql/15/server -I/usr/include/boost/ -I/usr/include
2 errors generated.
Error while processing /home/path/to/repo/include/alphaShape/pgr_alphaShape.h.
2 errors generated.
Error while processing /home/path/to/repo/include/astar/astar.hpp.
/home/path/to/repo/include/alphaShape/pgr_alphaShape.h:34:2: error: This is C++ header file [clang-diagnostic-error]
#error This is C++ header file
 ^
/home/path/to/repo/include/alphaShape/pgr_alphaShape.h:37:10: error: 'vector' file not found [clang-diagnostic-error]
#include <vector>
         ^~~~~~~~
Found compiler error(s). 

The reason for this failure is that pgr_alphaShape.h should be an hpp file

Renaming of h to hpp is needed on files like this one

TODO

List of directories containing .h files that probably need to be changed to .hpp files


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4