@@ -561,22 +561,22 @@ class TestToken : public TestFixture {
561561 }
562562
563563 void eraseTokens () const {
564- SimpleTokenList code (" begin ; { this code will be removed } end" , true );
564+ SimpleTokenList code (" begin ; { this code will be removed } end" , Standards::Language::C );
565565 Token::eraseTokens (code.front ()->next (), code.front ()->tokAt (9 ));
566566 ASSERT_EQUALS (" begin ; end" , code.front ()->stringifyList (nullptr , false ));
567567 }
568568
569569
570570 void matchAny () const {
571- const SimpleTokenList varBitOrVar (" abc|def" , true );
571+ const SimpleTokenList varBitOrVar (" abc|def" );
572572 ASSERT_EQUALS (true , Token::Match (varBitOrVar.front (), " %name% %or% %name%" ));
573573
574- const SimpleTokenList varLogOrVar (" abc||def" , true );
574+ const SimpleTokenList varLogOrVar (" abc||def" );
575575 ASSERT_EQUALS (true , Token::Match (varLogOrVar.front (), " %name% %oror% %name%" ));
576576 }
577577
578578 void matchSingleChar () const {
579- const SimpleTokenList singleChar (" a" , true );
579+ const SimpleTokenList singleChar (" a" );
580580 ASSERT_EQUALS (true , Token::Match (singleChar.front (), " [a|bc]" ));
581581 ASSERT_EQUALS (false , Token::Match (singleChar.front (), " [d|ef]" ));
582582
@@ -594,7 +594,7 @@ class TestToken : public TestFixture {
594594 const SimpleTokenList ifSemicolon (" if ;" );
595595 ASSERT_EQUALS (true , Token::Match (ifSemicolon.front (), " if ; !!else" ));
596596
597- const SimpleTokenList ifSemicolonSomething (" if ; something" , true );
597+ const SimpleTokenList ifSemicolonSomething (" if ; something" );
598598 ASSERT_EQUALS (true , Token::Match (ifSemicolonSomething.front (), " if ; !!else" ));
599599
600600 const SimpleTokenList justElse (" else" );
@@ -616,7 +616,7 @@ class TestToken : public TestFixture {
616616 const SimpleTokenList noType1_cpp (" delete" );
617617 ASSERT_EQUALS (false , Token::Match (noType1_cpp.front (), " %type%" ));
618618
619- const SimpleTokenList noType1_c (" delete" , false );
619+ const SimpleTokenList noType1_c (" delete" , Standards::Language::C );
620620 ASSERT_EQUALS (true , Token::Match (noType1_c.front (), " %type%" ));
621621
622622 const SimpleTokenList noType2 (" void delete" );
0 commit comments