* format comment body * the calling function should have a continue statement after calling this method */
| 4732 | * the calling function should have a continue statement after calling this method |
| 4733 | */ |
| 4734 | void ASFormatter::formatCommentBody() |
| 4735 | { |
| 4736 | assert(isInComment); |
| 4737 | |
| 4738 | // append the comment |
| 4739 | while (charNum < (int) currentLine.length()) |
| 4740 | { |
| 4741 | currentChar = currentLine[charNum]; |
| 4742 | if (currentLine.compare(charNum, 2, "*/") == 0) |
| 4743 | { |
| 4744 | formatCommentCloser(); |
| 4745 | break; |
| 4746 | } |
| 4747 | if (currentChar == '\t' && shouldConvertTabs) |
| 4748 | convertTabToSpaces(); |
| 4749 | appendCurrentChar(); |
| 4750 | ++charNum; |
| 4751 | } |
| 4752 | if (shouldStripCommentPrefix) |
| 4753 | stripCommentPrefix(); |
| 4754 | } |
| 4755 | |
| 4756 | /** |
| 4757 | * format a comment opener |
nothing calls this directly
no outgoing calls
no test coverage detected