* Check if a word is a pointer or reference variable type. * * @return whether word is a pointer or reference variable. */
| 2809 | * @return whether word is a pointer or reference variable. |
| 2810 | */ |
| 2811 | bool 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 |
nothing calls this directly
no outgoing calls
no test coverage detected