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

Method formatCommentBody

astyle/src/ASFormatter.cpp:4734–4754  ·  view source on GitHub ↗

* format comment body * the calling function should have a continue statement after calling this method */

Source from the content-addressed store, hash-verified

4732 * the calling function should have a continue statement after calling this method
4733 */
4734void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected