astyle formatting

[ci skip]
This commit is contained in:
versat 2019-08-23 10:19:29 +02:00
parent 0e15fd3140
commit 50c6af5e5d
2 changed files with 11 additions and 11 deletions

View File

@ -1330,7 +1330,7 @@ void CheckUninitVar::valueFlowUninit()
continue;
uninitvarError(tok, tok->str(), v->errorPath);
const Token * nextTok = tok;
while(Token::simpleMatch(nextTok->astParent(), "."))
while (Token::simpleMatch(nextTok->astParent(), "."))
nextTok = nextTok->astParent();
nextTok = nextAfterAstRightmostLeaf(nextTok);
tok = nextTok ? nextTok : tok;

View File

@ -303,15 +303,15 @@ private:
void final_class_x() {
const char code[] = "class __declspec(dllexport) x final { };";
{
errout.str("");
Tokenizer tokenizer(&settings, this);
std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp");
tokenizer.simplifyTokenList2();
ASSERT_EQUALS("", errout.str());
}
const char code[] = "class __declspec(dllexport) x final { };";
{
errout.str("");
Tokenizer tokenizer(&settings, this);
std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp");
tokenizer.simplifyTokenList2();
ASSERT_EQUALS("", errout.str());
}
}
void wrong_syntax1() {