Changeset View
Changeset View
Standalone View
Standalone View
formatters/astyle/lib/ASFormatter.cpp
Show First 20 Lines • Show All 576 Lines • ▼ Show 20 Line(s) | 576 | { | |||
---|---|---|---|---|---|
577 | isInPreprocessor = true; | 577 | isInPreprocessor = true; | ||
578 | // check for horstmann run-in | 578 | // check for horstmann run-in | ||
579 | if (formattedLine.length() > 0 && formattedLine[0] == '{') | 579 | if (formattedLine.length() > 0 && formattedLine[0] == '{') | ||
580 | { | 580 | { | ||
581 | isInLineBreak = true; | 581 | isInLineBreak = true; | ||
582 | isInHorstmannRunIn = false; | 582 | isInHorstmannRunIn = false; | ||
583 | } | 583 | } | ||
584 | processPreprocessor(); | 584 | processPreprocessor(); | ||
585 | // need to fall thru here to reset the variables | 585 | // need to fall through here to reset the variables | ||
586 | } | 586 | } | ||
587 | 587 | | |||
588 | /* not in preprocessor ... */ | 588 | /* not in preprocessor ... */ | ||
589 | 589 | | |||
590 | if (isImmediatelyPostComment) | 590 | if (isImmediatelyPostComment) | ||
591 | { | 591 | { | ||
592 | caseHeaderFollowsComments = false; | 592 | caseHeaderFollowsComments = false; | ||
593 | isImmediatelyPostComment = false; | 593 | isImmediatelyPostComment = false; | ||
▲ Show 20 Lines • Show All 503 Lines • ▼ Show 20 Line(s) | 1087 | { | |||
1097 | appendSequence(*newHeader); | 1097 | appendSequence(*newHeader); | ||
1098 | goForward(newHeader->length() - 1); | 1098 | goForward(newHeader->length() - 1); | ||
1099 | 1099 | | |||
1100 | continue; | 1100 | continue; | ||
1101 | } | 1101 | } | ||
1102 | else if ((newHeader = findHeader(preCommandHeaders)) != NULL) | 1102 | else if ((newHeader = findHeader(preCommandHeaders)) != NULL) | ||
1103 | { | 1103 | { | ||
1104 | foundPreCommandHeader = true; | 1104 | foundPreCommandHeader = true; | ||
1105 | // fall thru here for a 'const' that is not a precommand header | 1105 | // fall through here for a 'const' that is not a precommand header | ||
1106 | } | 1106 | } | ||
1107 | else if ((newHeader = findHeader(castOperators)) != NULL) | 1107 | else if ((newHeader = findHeader(castOperators)) != NULL) | ||
1108 | { | 1108 | { | ||
1109 | foundCastOperator = true; | 1109 | foundCastOperator = true; | ||
1110 | appendSequence(*newHeader); | 1110 | appendSequence(*newHeader); | ||
1111 | goForward(newHeader->length() - 1); | 1111 | goForward(newHeader->length() - 1); | ||
1112 | continue; | 1112 | continue; | ||
1113 | } | 1113 | } | ||
▲ Show 20 Lines • Show All 5477 Lines • Show Last 20 Lines |