Error out on invalid input.

In this CL we make sure that:

* we do not visit AST if it has errors
* we return nonzero exit code if the input headers had errors
* we delete output files if the input headers had errors (this is the behavior of Clang as well)

We do not need to be able to process partially incorrect headers, we assume all input it valid C++. In case of errors Clang will print errors to stderr, so the user will be informed about the cause of the failure.

PiperOrigin-RevId: 391482623
4 files changed
tree: bc02c1f7fa2d40b05aac7b94bf46ff2d9c592f77
  1. rs_bindings_from_cc/
  2. CODE_OF_CONDUCT
  3. CONTRIBUTING
  4. LICENSE
  5. README.md
README.md

Crubit: C++/Rust Bidirectional Interop Tool

Extremely experimental interop tooling for C++ and Rust.

Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.