If tok2 comes after tok1
| 1028 | |
| 1029 | /// If tok2 comes after tok1 |
| 1030 | bool precedes(const Token * tok1, const Token * tok2) |
| 1031 | { |
| 1032 | if (tok1 == tok2) |
| 1033 | return false; |
| 1034 | if (!tok1) |
| 1035 | return false; |
| 1036 | if (!tok2) |
| 1037 | return true; |
| 1038 | return tok1->index() < tok2->index(); |
| 1039 | } |
| 1040 | |
| 1041 | /// If tok1 comes after tok2 |
| 1042 | bool succeeds(const Token* tok1, const Token* tok2) |
no outgoing calls
no test coverage detected