For instance, in my case to have autocompletion on IOobject type, I had to add #include "OpenFOAM/db/IOobject/IOobject.H" on my .C file. Wait, you are adding #include-s to the actual C-code just to make autocompletion work? That seems very undesirab...