sourcegraph / scip-clang

Apache License 2.0
55 stars 7 forks source link

fix: Skip non-TU main file command objects #380

Closed varungandhi-src closed 1 year ago

varungandhi-src commented 1 year ago

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.