We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cfa0e0 commit 828e81bCopy full SHA for 828e81b
1 file changed
cpp2rust/cpp_rule_preprocessor.cpp
@@ -698,6 +698,9 @@ class ActionFactory : public clang::tooling::FrontendActionFactory {
698
699
void HandleTranslationUnit(clang::ASTContext &ctx) override {
700
auto &DE = CI_->getDiagnostics();
701
+ if (DE.hasErrorOccurred()) {
702
+ std::exit(EXIT_FAILURE);
703
+ }
704
DE.setSuppressAllDiagnostics(true);
705
DE.setClient(new clang::IgnoringDiagConsumer(), true);
706
CB_->init(CI_->getSema());
0 commit comments