I'm using clang-tidy in VS Code, and I'm connecting to a remote machine via ssh. However, I have some include files that do not share the same area as my source file:
// Paths:
// /source/file/path/source.C
// /header/file/path/header.h
#include "My_Header.h" // clang-tidy marks this as file not found
I'm assuming that if I can add multiple file directories into VS Code, then clang-tidy will be able to find all headers and complete the scan. Is this correct? How would I do that?
It is not found, because header files are not searched this way, refer to documentation.
To solve this, make path relative. Depending on your hierarchy, it might contain many
../../
in the path...