File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -491,9 +491,9 @@ class ParseTreeAnalyzer {
491491 void Post (const parser::MainProgram &mainProgram) {
492492 // Uppercase the name of the main program, so that its symbol name
493493 // would be unique from similarly named non-main-program symbols.
494- auto upperCaseCharBlock = [](const parser::CharBlock& cb) {
495- char * ch = const_cast <char *>(cb.begin ());
496- char * endCh = ch + cb.size ();
494+ auto upperCaseCharBlock = [](const parser::CharBlock & cb) {
495+ char * ch = const_cast <char *>(cb.begin ());
496+ char * endCh = ch + cb.size ();
497497 while (ch != endCh) {
498498 *ch++ = parser::ToUpperCaseLetter (*ch);
499499 }
@@ -507,9 +507,8 @@ class ParseTreeAnalyzer {
507507 if (progName) {
508508 upperCaseCharBlock (*progName);
509509 }
510- const parser::CharBlock *
511- endName{GetStmtName (std::get<parser::Statement<parser::EndProgramStmt>>(
512- mainProgram.t ))};
510+ const parser::CharBlock *endName{GetStmtName (
511+ std::get<parser::Statement<parser::EndProgramStmt>>(mainProgram.t ))};
513512 if (endName) {
514513 upperCaseCharBlock (*endName);
515514 if (progName) {
You can’t perform that action at this time.
0 commit comments