File parsing should fail if any compile error is found in the translation unit under inspection including errors from transitively included files.
This appears to be a little complicated on macOS where getting the right compile flags for libclang is non-trivial (macOS does not have system includes in normal Linux locations).