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

Method isUnaryOperator

astyle/src/ASFormatter.cpp:2831–2841  ·  view source on GitHub ↗

* check if the currently reached '+' or '-' character is a unary operator * this method takes for granted that the current character * is a '+' or '-'. * * @return whether the current '+' or '-' is a unary operator. */

Source from the content-addressed store, hash-verified

2829 * @return whether the current '+' or '-' is a unary operator.
2830 */
2831bool ASFormatter::isUnaryOperator() const
2832{
2833 assert(currentChar == '+' || currentChar == '-');
2834
2835 return ((isCharImmediatelyPostReturn || !isLegalNameChar(previousCommandChar))
2836 && previousCommandChar != '.'
2837 && previousCommandChar != '\"'
2838 && previousCommandChar != '\''
2839 && previousCommandChar != ')'
2840 && previousCommandChar != ']');
2841}
2842
2843/**
2844 * check if the currently reached comment is in a 'switch' statement

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected