File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3351,7 +3351,7 @@ bool Tokenizer::simplifyUsing()
33513351 // function pointer
33523352 Token* const dest = tok1->tokAt (tok1->strAt (2 ) == " const" ? 3 : 2 );
33533353 Token* const copyEndArgs = TokenList::copyTokens (dest, fpArgList, usingEnd->previous ());
3354- Token* const copyEndRet = TokenList::copyTokens (tok1, start, fpArgList->previous ());
3354+ Token* const copyEndRet = TokenList::copyTokens (tok1, start, fpArgList->previous ());
33553355 Token* const leftPar = copyEndRet->insertToken (" (" );
33563356 Token* const rightPar = copyEndArgs->link ()->tokAt (-1 )->insertToken (" )" );
33573357 Token::createMutualLinks (leftPar, rightPar);
Original file line number Diff line number Diff line change @@ -893,8 +893,8 @@ class TestSimplifyUsing : public TestFixture {
893893 ASSERT_EQUALS (" " , errout_str ());
894894
895895 const char code2[] = " using f_t = int(int);\n "
896- " f_t* fp1;\n "
897- " f_t* const fp2;\n " ;
896+ " f_t* fp1;\n "
897+ " f_t* const fp2;\n " ;
898898 const char expected2[] = " int ( * fp1 ) ( int ) ; int ( * const fp2 ) ( int ) ;" ;
899899 ASSERT_EQUALS (expected2, tok (code2));
900900 ASSERT_EQUALS (" " , errout_str ());
You can’t perform that action at this time.
0 commit comments