File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2670,10 +2670,11 @@ auto main(int argc, char* argv[]) -> int
2670
2670
2671
2671
if (cmdline.arguments ().empty ()) {
2672
2672
std::cout << " cppfront: error: no input files\n " ;
2673
- return 0 ;
2673
+ return - 1 ;
2674
2674
}
2675
2675
2676
2676
// For each .cpp2 source file
2677
+ int ret_status = 0 ;
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
+ ret_status = -2 ;
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 ret_status;
2712
2715
}
You can’t perform that action at this time.
0 commit comments