@@ -249,35 +249,35 @@ class CPPCHECKLIB Token {
249249 * For example index 1 would return next token, and 2
250250 * would return next from that one.
251251 */
252- const Token *tokAt (int index ) const
252+ const Token *tokAt (int idx ) const
253253 {
254- return tokAtImpl (this , index );
254+ return tokAtImpl (this , idx );
255255 }
256- Token *tokAt (int index )
256+ Token *tokAt (int idx )
257257 {
258- return tokAtImpl (this , index );
258+ return tokAtImpl (this , idx );
259259 }
260260
261261 /* *
262262 * @return the link to the token in given index, related to this token.
263263 * For example index 1 would return the link to next token.
264264 */
265- const Token *linkAt (int index ) const
265+ const Token *linkAt (int idx ) const
266266 {
267- return linkAtImpl (this , index );
267+ return linkAtImpl (this , idx );
268268 }
269- Token *linkAt (int index )
269+ Token *linkAt (int idx )
270270 {
271- return linkAtImpl (this , index );
271+ return linkAtImpl (this , idx );
272272 }
273273
274274 /* *
275275 * @return String of the token in given index, related to this token.
276276 * If that token does not exist, an empty string is being returned.
277277 */
278- const std::string &strAt (int index ) const
278+ const std::string &strAt (int idx ) const
279279 {
280- const Token *tok = this ->tokAt (index );
280+ const Token *tok = this ->tokAt (idx );
281281 return tok ? tok->mStr : mEmptyString ;
282282 }
283283
@@ -604,11 +604,11 @@ class CPPCHECKLIB Token {
604604 bool hasAttributeCleanup () const {
605605 return !mImpl ->mAttributeCleanup .empty ();
606606 }
607- void setCppcheckAttribute (CppcheckAttributesType type , MathLib::bigint value) {
608- mImpl ->setCppcheckAttribute (type , value);
607+ void setCppcheckAttribute (CppcheckAttributesType attrType , MathLib::bigint value) {
608+ mImpl ->setCppcheckAttribute (attrType , value);
609609 }
610- bool getCppcheckAttribute (CppcheckAttributesType type , MathLib::bigint &value) const {
611- return mImpl ->getCppcheckAttribute (type , value);
610+ bool getCppcheckAttribute (CppcheckAttributesType attrType , MathLib::bigint &value) const {
611+ return mImpl ->getCppcheckAttribute (attrType , value);
612612 }
613613 // cppcheck-suppress unusedFunction
614614 bool hasCppcheckAttributes () const {
@@ -899,15 +899,15 @@ class CPPCHECKLIB Token {
899899
900900private:
901901 template <class T , REQUIRES (" T must be a Token class" , std::is_convertible<T*, const Token*> )>
902- static T *tokAtImpl(T *tok, int index )
902+ static T *tokAtImpl(T *tok, int idx )
903903 {
904- while (index > 0 && tok) {
904+ while (idx > 0 && tok) {
905905 tok = tok->next ();
906- --index ;
906+ --idx ;
907907 }
908- while (index < 0 && tok) {
908+ while (idx < 0 && tok) {
909909 tok = tok->previous ();
910- ++index ;
910+ ++idx ;
911911 }
912912 return tok;
913913 }
@@ -916,9 +916,9 @@ class CPPCHECKLIB Token {
916916 * @throws InternalError thrown if index is out of range
917917 */
918918 template <class T , REQUIRES (" T must be a Token class" , std::is_convertible<T*, const Token*> )>
919- static T *linkAtImpl(T *thisTok, int index )
919+ static T *linkAtImpl(T *thisTok, int idx )
920920 {
921- T *tok = thisTok->tokAt (index );
921+ T *tok = thisTok->tokAt (idx );
922922 if (!tok) {
923923 throw InternalError (thisTok, " Internal error. Token::linkAt called with index outside the tokens range." );
924924 }
0 commit comments