By default, diagnostics are suppressed after a fatal error. Some fatal errors (notably, "file not found" for include directive) are common for incomplete code and we probably want to have further diagnostics anyway.
Currently, this flag is optionally set by libclang (see CXTranslationUnit_KeepGoing option).
There are also a bunch of related problems when AST is not fully built in presence of fatal errors (templates are not instantiated and include directives are not processed), I'll address these in separate patches.
This tests looks useful, but could we also unit-test (with a C++ gtest) that fatal errors do not block other errors when:
To have a regression test for potential changes in those areas.