File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2825,7 +2825,7 @@ static bool isVariableExpression(const Token* tok)
28252825 if (Token::Match (tok, " %var%" ))
28262826 return true ;
28272827 if (Token::simpleMatch (tok, " ." ))
2828- return isVariableExpression (tok->astOperand1 ()) &&
2828+ return isVariableExpression (tok->astOperand1 ()) &&
28292829 isVariableExpression (tok->astOperand2 ());
28302830 return false ;
28312831}
Original file line number Diff line number Diff line change @@ -7779,7 +7779,7 @@ bool Tokenizer::simplifyRedundantParentheses()
77797779 if (tok->str () != " (" )
77807780 continue ;
77817781
7782- if (isCPP () && Token::simpleMatch (tok->previous (), " } (" ) &&
7782+ if (isCPP () && Token::simpleMatch (tok->previous (), " } (" ) &&
77837783 Token::Match (tok->previous ()->link ()->previous (), " %name%|> {" ))
77847784 continue ;
77857785
Original file line number Diff line number Diff line change @@ -289,13 +289,13 @@ class TestIncompleteStatement : public TestFixture {
289289 void cpp11init3 () {
290290 check (" struct A { void operator()(int); };\n "
291291 " void f() {\n "
292- " A{}(0);\n "
292+ " A{}(0);\n "
293293 " }\n " );
294294 ASSERT_EQUALS (" " , errout.str ());
295295
296296 check (" template<class> struct A { void operator()(int); };\n "
297297 " void f() {\n "
298- " A<int>{}(0);\n "
298+ " A<int>{}(0);\n "
299299 " }\n " );
300300 ASSERT_EQUALS (" " , errout.str ());
301301 }
Original file line number Diff line number Diff line change @@ -7662,7 +7662,7 @@ class TestTokenizer : public TestFixture {
76627662 " template <bool> using c = int;\n "
76637663 " template <bool b> c<b> d;\n "
76647664 " template <> struct a<int> {\n "
7665- " template <typename e> constexpr auto g() { d<0 || e::f>; return 0; }\n "
7665+ " template <typename e> constexpr auto g() { d<0 || e::f>; return 0; }\n "
76667666 " };\n " ))
76677667 }
76687668
You can’t perform that action at this time.
0 commit comments