Skip to content

Commit

Permalink
preprocessor.cpp: handle simplecpp::Output::DUI_ERROR:
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 2, 2024
1 parent f078f65 commit fe57ca6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ bool Preprocessor::hasErrors(const simplecpp::Output &output)
case simplecpp::Output::UNHANDLED_CHAR_ERROR:
case simplecpp::Output::EXPLICIT_INCLUDE_NOT_FOUND:
case simplecpp::Output::FILE_NOT_FOUND:
case simplecpp::Output::DUI_ERROR:
return true;
case simplecpp::Output::WARNING:
case simplecpp::Output::MISSING_HEADER:
Expand Down Expand Up @@ -875,6 +876,7 @@ void Preprocessor::reportOutput(const simplecpp::OutputList &outputList, bool sh
break;
case simplecpp::Output::EXPLICIT_INCLUDE_NOT_FOUND:
case simplecpp::Output::FILE_NOT_FOUND:
case simplecpp::Output::DUI_ERROR:
error(emptyString, 0, out.msg);
break;
}
Expand Down

0 comments on commit fe57ca6

Please sign in to comment.