MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / main

Function main

astyle/src/astyle_main.cpp:3677–3701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3675//----------------------------------------------------------------------------
3676
3677int 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

Callers

nothing calls this directly

Calls 5

getArgvOptionsMethod · 0.80
processOptionsMethod · 0.80
fileNameVectorIsEmptyMethod · 0.80
formatCinToCoutMethod · 0.80
processFilesMethod · 0.80

Tested by

no test coverage detected