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

Method isPointerOrReferenceVariable

astyle/src/ASFormatter.cpp:2811–2822  ·  view source on GitHub ↗

* Check if a word is a pointer or reference variable type. * * @return whether word is a pointer or reference variable. */

Source from the content-addressed store, hash-verified

2809 * @return whether word is a pointer or reference variable.
2810 */
2811bool ASFormatter::isPointerOrReferenceVariable(string &word) const
2812{
2813 if (word == "char"
2814 || word == "int"
2815 || word == "void"
2816 || (word.length() >= 6 // check end of word for _t
2817 && word.compare(word.length() - 2, 2, "_t") == 0)
2818 || word == "INT"
2819 || word == "VOID")
2820 return true;
2821 return false;
2822}
2823
2824/**
2825 * check if the currently reached '+' or '-' character is a unary operator

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected