| 3675 | //---------------------------------------------------------------------------- |
| 3676 | |
| 3677 | int main(int argc, char** argv) |
| 3678 | { |
| 3679 | // create objects |
| 3680 | ASFormatter formatter; |
| 3681 | g_console = new ASConsole(formatter); |
| 3682 | |
| 3683 | // process command line and options file |
| 3684 | // build the vectors fileNameVector, optionsVector, and fileOptionsVector |
| 3685 | vector<string> argvOptions; |
| 3686 | argvOptions = g_console->getArgvOptions(argc, argv); |
| 3687 | g_console->processOptions(argvOptions); |
| 3688 | |
| 3689 | // if no files have been given, use cin for input and cout for output |
| 3690 | if (g_console->fileNameVectorIsEmpty()) |
| 3691 | { |
| 3692 | g_console->formatCinToCout(); |
| 3693 | return EXIT_SUCCESS; |
| 3694 | } |
| 3695 | |
| 3696 | // process entries in the fileNameVector |
| 3697 | g_console->processFiles(); |
| 3698 | |
| 3699 | delete g_console; |
| 3700 | return EXIT_SUCCESS; |
| 3701 | } |
| 3702 | |
| 3703 | #endif // ASTYLE_LIB |
nothing calls this directly
no test coverage detected