diff --git a/rules/token-matching.xml b/rules/token-matching.xml index 47110c4b5..3371f3496 100644 --- a/rules/token-matching.xml +++ b/rules/token-matching.xml @@ -16,3 +16,19 @@ without special pattern requirements. + + \b[\w_]+ \. tokAt \( 0 \) + + TokentokAt0 + error + tok->tokAt(0) is a slow way to say tok. + + + + \b[\w_]+ \. strAt \( 0 \) + + TokenstrAt0 + error + tok->strAt(0) is a slow way to say tok->str() + +