This commit improves diagnostics in a few ways:
* All panics apart from panics with no (easy) recovery are converted to
regular errors with source location.
* Some errors were improved slightly to give more information. For
example, show the libclang type kind as a string instead of a
number.
* Improve source location by respecting line directives in the C
preprocessor.
* Refactor to unify error handling between libclang diagnostics and
failures to parse the libclang AST.
|
||
|---|---|---|
| .. | ||
| cgo.go | ||
| libclang.go | ||
| libclang_config.go | ||
| libclang_stubs.c | ||
| sync.go | ||