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

Method formatCommentCloser

astyle/src/ASFormatter.cpp:4853–4872  ·  view source on GitHub ↗

* format a comment closer * the comment closer will be appended to the current formattedLine */

Source from the content-addressed store, hash-verified

4851 * the comment closer will be appended to the current formattedLine
4852 */
4853void ASFormatter::formatCommentCloser()
4854{
4855 isInComment = false;
4856 noTrimCommentContinuation = false;
4857 isImmediatelyPostComment = true;
4858 appendSequence(AS_CLOSE_COMMENT);
4859 goForward(1);
4860 if (doesLineStartComment
4861 && (currentLine.find_first_not_of(" \t", charNum + 1) == string::npos))
4862 lineEndsInCommentOnly = true;
4863 if (peekNextChar() == '}'
4864 && previousCommandChar != ';'
4865 && !isBracketType(bracketTypeStack->back(), ARRAY_TYPE)
4866 && !isInPreprocessor
4867 && isOkToBreakBlock(bracketTypeStack->back()))
4868 {
4869 isInLineBreak = true;
4870 shouldBreakLineAtNextChar = true;
4871 }
4872}
4873
4874/**
4875 * format a line comment body

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected