From 2b77e3591ed5d61eac61fc17ae52b7f5a2c8fbe3 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Wed, 2 Feb 2011 18:57:45 -0600 Subject: [PATCH] Add rules for tokAt(0) and strAt(0), suggested by reif --- rules/token-matching.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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() + +