Skip to content

Commit 12de004

Browse files
committed
update existing tests
1 parent 7e36471 commit 12de004

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/testsimplifytypedef.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4608,7 +4608,7 @@ class TestSimplifyTypedef : public TestFixture {
46084608
void typedefInfo1() {
46094609
const std::string xml = dumpTypedefInfo("typedef int A;\nA x;");
46104610
ASSERT_EQUALS(" <typedef-info>\n"
4611-
" <info name=\"A\" file=\"file.c\" line=\"1\" column=\"1\" used=\"1\" isFunctionPointer=\"0\"/>\n"
4611+
" <info name=\"A\" file=\"file.c\" line=\"1\" column=\"13\" used=\"1\" isFunctionPointer=\"0\"/>\n"
46124612
" </typedef-info>\n",
46134613
xml);
46144614
}
@@ -4620,7 +4620,7 @@ class TestSimplifyTypedef : public TestFixture {
46204620
" typedef fp16 ( *pfp16 ) ( void );\n"
46214621
"}\n");
46224622
ASSERT_EQUALS(" <typedef-info>\n"
4623-
" <info name=\"fp16\" file=\"file.c\" line=\"2\" column=\"1\" used=\"1\" isFunctionPointer=\"1\">\n"
4623+
" <info name=\"fp16\" file=\"file.c\" line=\"2\" column=\"17\" used=\"1\" isFunctionPointer=\"1\">\n"
46244624
" <token line=\"2\" column=\"1\" str=\"typedef\"/>\n"
46254625
" <token line=\"2\" column=\"9\" str=\"void\"/>\n"
46264626
" <token line=\"2\" column=\"14\" str=\"(\"/>\n"
@@ -4632,7 +4632,7 @@ class TestSimplifyTypedef : public TestFixture {
46324632
" <token line=\"2\" column=\"33\" str=\"n\"/>\n"
46334633
" <token line=\"2\" column=\"35\" str=\")\"/>\n"
46344634
" </info>\n"
4635-
" <info name=\"int16_t\" file=\"file.c\" line=\"1\" column=\"1\" used=\"1\" isFunctionPointer=\"0\"/>\n"
4635+
" <info name=\"int16_t\" file=\"file.c\" line=\"1\" column=\"22\" used=\"1\" isFunctionPointer=\"0\"/>\n"
46364636
" <info name=\"pfp16\" file=\"file.c\" line=\"4\" column=\"4\" used=\"0\" isFunctionPointer=\"1\">\n"
46374637
" <token line=\"4\" column=\"4\" str=\"typedef\"/>\n"
46384638
" <token line=\"4\" column=\"12\" str=\"void\"/>\n"
@@ -4670,7 +4670,7 @@ class TestSimplifyTypedef : public TestFixture {
46704670
"} coord;\n"
46714671
"coord c;");
46724672
ASSERT_EQUALS(" <typedef-info>\n"
4673-
" <info name=\"coord\" file=\"file.c\" line=\"1\" column=\"1\" tagline=\"1\" tagcolumn=\"16\" used=\"1\" isFunctionPointer=\"0\"/>\n"
4673+
" <info name=\"coord\" originalName=\"coord\" file=\"file.c\" line=\"4\" column=\"3\" tagline=\"1\" tagcolumn=\"16\" used=\"1\" isFunctionPointer=\"0\"/>\n"
46744674
" </typedef-info>\n", xml);
46754675
}
46764676
};

0 commit comments

Comments
 (0)