I use VGDB with CMake and MSYS2/MinGW64. I have to enter the compiler implicit header paths in the “Intellisense Settings” -> “Additional header search directories” for each new project. This is an inconvenience for me but others might not know how to find the paths. The following is how eclipse used to find it automatically:
echo | gcc -xc++ -Wp,-v -E –
It also used the following for defines (I think you already have that covered):
echo | gcc -xc++ -Wp,-dM -E –
Obviously this would be compiler and language specific. In a CMake world the values are reported in:
CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES
CMAKE_<LANG>_STANDARD_INCLUDE_DIRECTORIES
Thank you