File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2665,15 +2665,16 @@ auto main(int argc, char* argv[]) -> int
2665
2665
cmdline.process_flags ();
2666
2666
2667
2667
if (cmdline.help_was_requested ()) {
2668
- return 0 ;
2668
+ return EXIT_SUCCESS ;
2669
2669
}
2670
2670
2671
2671
if (cmdline.arguments ().empty ()) {
2672
2672
std::cout << " cppfront: error: no input files\n " ;
2673
- return 0 ;
2673
+ return EXIT_FAILURE ;
2674
2674
}
2675
2675
2676
2676
// For each .cpp2 source file
2677
+ int exit_status = EXIT_SUCCESS;
2677
2678
for (auto const & arg : cmdline.arguments ())
2678
2679
{
2679
2680
std::cout << arg.text << " ..." ;
@@ -2701,6 +2702,7 @@ auto main(int argc, char* argv[]) -> int
2701
2702
std::cout << " \n " ;
2702
2703
c.print_errors ();
2703
2704
std::cout << " \n " ;
2705
+ exit_status = EXIT_FAILURE;
2704
2706
}
2705
2707
2706
2708
// In any case, emit the debug information (during early development this is
@@ -2709,4 +2711,5 @@ auto main(int argc, char* argv[]) -> int
2709
2711
c.debug_print ();
2710
2712
}
2711
2713
}
2714
+ return exit_status;
2712
2715
}
You can’t perform that action at this time.
0 commit comments