MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / main

Function main

other_src/astyle/src/astyle_main.cpp:3163–3187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3161// ************************* main function ****************************************************
3162
3163int main(int argc, char** argv)
3164{
3165 // create objects
3166 ASFormatter formatter;
3167 g_console = new ASConsole(formatter);
3168
3169 // process command line and options file
3170 // build the vectors fileNameVector, optionsVector, and fileOptionsVector
3171 vector<string> argvOptions;
3172 argvOptions = g_console->getArgvOptions(argc, argv);
3173 g_console->processOptions(argvOptions);
3174
3175 // if no files have been given, use cin for input and cout for output
3176 if (g_console->fileNameVectorIsEmpty())
3177 {
3178 g_console->formatCinToCout();
3179 return EXIT_SUCCESS;
3180 }
3181
3182 // process entries in the fileNameVector
3183 g_console->processFiles();
3184
3185 delete g_console;
3186 return EXIT_SUCCESS;
3187}
3188
3189#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