Fixed cppcheck warning and corrected checkHeaders test

This commit is contained in:
Daniel Marjamäki 2020-11-11 15:28:32 +01:00
parent 7e8839a991
commit bfa8c6fb98
1 changed files with 4 additions and 4 deletions

View File

@ -8625,7 +8625,7 @@ private:
preprocessor.setDirectives(tokens1);
// Tokenizer..
Tokenizer tokenizer(&settings0, this);
Tokenizer tokenizer(&settings, this);
tokenizer.createTokens(std::move(tokens2));
tokenizer.simplifyTokens1("");
@ -8652,9 +8652,9 @@ private:
ASSERT_EQUALS("\n\n##file 1\n"
"1: struct A {\n"
"2: int a ; a = 1 ;\n"
"3: void f ( ) { g<int> ( 1 ) ; }\n"
"4: void g<int> ( int x ) ;\n"
"5: } ; void A :: g<int> ( int x ) { a = 2 ; }\n",
"3: void f ( ) ;\n"
"4:\n"
"5: } ;\n",
checkHeaders(code, false));
}
};