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

Method isBeforeComment

astyle/src/ASFormatter.cpp:1941–1952  ·  view source on GitHub ↗

* check if current placement is before a comment * * @return is before a comment. */

Source from the content-addressed store, hash-verified

1939 * @return is before a comment.
1940 */
1941bool ASFormatter::isBeforeComment() const
1942{
1943 bool foundComment = false;
1944 size_t peekNum = currentLine.find_first_not_of(" \t", charNum + 1);
1945
1946 if (peekNum == string::npos)
1947 return foundComment;
1948
1949 foundComment = (currentLine.compare(peekNum, 2, "/*") == 0);
1950
1951 return foundComment;
1952}
1953
1954/**
1955 * check if current placement is before a comment or line-comment

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected