When the compilation database for a codebase is generated using
grailbio/bazel-compilation-database, it ends up generating lots of
entries for headers and other template files like 'def' files in LLVM.
However, those cannot actually be semantically analyzed without
a translation unit, so skip them immediately after parsing.
When the compilation database for a codebase is generated using grailbio/bazel-compilation-database, it ends up generating lots of entries for headers and other template files like 'def' files in LLVM. However, those cannot actually be semantically analyzed without a translation unit, so skip them immediately after parsing.