@@ -562,22 +562,22 @@ class TestToken : public TestFixture {
562562 }
563563
564564 void eraseTokens () const {
565- SimpleTokenList code (" begin ; { this code will be removed } end" , true );
565+ SimpleTokenList code (" begin ; { this code will be removed } end" , Standards::Language::C );
566566 Token::eraseTokens (code.front ()->next (), code.front ()->tokAt (9 ));
567567 ASSERT_EQUALS (" begin ; end" , code.front ()->stringifyList (nullptr , false ));
568568 }
569569
570570
571571 void matchAny () const {
572- const SimpleTokenList varBitOrVar (" abc|def" , true );
572+ const SimpleTokenList varBitOrVar (" abc|def" );
573573 ASSERT_EQUALS (true , Token::Match (varBitOrVar.front (), " %name% %or% %name%" ));
574574
575- const SimpleTokenList varLogOrVar (" abc||def" , true );
575+ const SimpleTokenList varLogOrVar (" abc||def" );
576576 ASSERT_EQUALS (true , Token::Match (varLogOrVar.front (), " %name% %oror% %name%" ));
577577 }
578578
579579 void matchSingleChar () const {
580- const SimpleTokenList singleChar (" a" , true );
580+ const SimpleTokenList singleChar (" a" );
581581 ASSERT_EQUALS (true , Token::Match (singleChar.front (), " [a|bc]" ));
582582 ASSERT_EQUALS (false , Token::Match (singleChar.front (), " [d|ef]" ));
583583
@@ -595,7 +595,7 @@ class TestToken : public TestFixture {
595595 const SimpleTokenList ifSemicolon (" if ;" );
596596 ASSERT_EQUALS (true , Token::Match (ifSemicolon.front (), " if ; !!else" ));
597597
598- const SimpleTokenList ifSemicolonSomething (" if ; something" , true );
598+ const SimpleTokenList ifSemicolonSomething (" if ; something" );
599599 ASSERT_EQUALS (true , Token::Match (ifSemicolonSomething.front (), " if ; !!else" ));
600600
601601 const SimpleTokenList justElse (" else" );
@@ -617,7 +617,7 @@ class TestToken : public TestFixture {
617617 const SimpleTokenList noType1_cpp (" delete" );
618618 ASSERT_EQUALS (false , Token::Match (noType1_cpp.front (), " %type%" ));
619619
620- const SimpleTokenList noType1_c (" delete" , false );
620+ const SimpleTokenList noType1_c (" delete" , Standards::Language::C );
621621 ASSERT_EQUALS (true , Token::Match (noType1_c.front (), " %type%" ));
622622
623623 const SimpleTokenList noType2 (" void delete" );
0 commit comments