File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949
5050static bool isDereferenceOp (const Token* tok)
5151{
52- if (!tok)
52+ if (!tok)
5353 return false ;
54- if (!tok->astOperand1 ())
54+ if (!tok->astOperand1 ())
5555 return false ;
56- if (tok->str () == " *" )
56+ if (tok->str () == " *" )
5757 return true ;
5858 return tok->str () == " ." && tok->originalName () == " ->" ;
5959}
Original file line number Diff line number Diff line change @@ -12118,11 +12118,11 @@ class TestOther : public TestFixture {
1211812118 void movePointerAlias ()
1211912119 {
1212012120 check (" void f() {\n "
12121- " std::string s;\n "
12122- " std::string s1 = std::move(s);\n "
12123- " const std::string* s_p = &s;\n "
12124- " s_p->size();\n "
12125- " }\n " );
12121+ " std::string s;\n "
12122+ " std::string s1 = std::move(s);\n "
12123+ " const std::string* s_p = &s;\n "
12124+ " s_p->size();\n "
12125+ " }\n " );
1212612126 ASSERT_EQUALS (" [test.cpp:5]: (warning) Access of moved variable '.'.\n " , errout_str ());
1212712127 }
1212812128
You can’t perform that action at this time.
0 commit comments