Skip to content

Commit cc4a9eb

Browse files
committed
Format
1 parent 5bb98e0 commit cc4a9eb

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/vf_analyzers.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949

5050
static 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
}

test/testother.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)