From 2b211eb8bac6ec65652b1bf4bbbcc196d28773ba Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 28 Apr 2015 11:42:00 -0400 Subject: Output: Drop unused index previously consumed by CvQualifiedType elements Refactoring in the parent commit removed the need to consume a node index when creating a CvQualifiedType element. That commit preserved the behavior artificially in order to minimize differences in expected test output. Now remove this behavior and update the expected test output to account for the now-contiguous indexes. --- src/Output.cxx | 2 -- test/expect/gccxml.any.Class-base-typedef.xml.txt | 10 ++++---- test/expect/gccxml.any.Class-friends.xml.txt | 4 +-- ...cxml.any.Class-implicit-member-bad-base.xml.txt | 10 ++++---- .../gccxml.any.Class-implicit-member-const.xml.txt | 4 +-- ....any.Class-template-Method-return-const.xml.txt | 10 ++++---- .../gccxml.any.Class-template-friends.xml.txt | 6 ++--- ...any.Class-template-member-Typedef-const.xml.txt | 10 ++++---- test/expect/gccxml.any.CvQualifiedType.xml.txt | 4 +-- test/expect/gccxml.any.MethodType-cv.xml.txt | 14 +++++----- test/expect/gccxml.any.OffsetType-cv.xml.txt | 12 ++++----- .../gccxml.any.using-declaration-class.xml.txt | 10 ++++---- test/expect/gccxml.c++11.Class-bases.xml.txt | 30 +++++++++++----------- .../gccxml.c++11.Class-template-bases.xml.txt | 20 +++++++-------- test/expect/gccxml.c++98.Class-bases.xml.txt | 30 +++++++++++----------- .../gccxml.c++98.Class-template-bases.xml.txt | 20 +++++++-------- 16 files changed, 97 insertions(+), 99 deletions(-) diff --git a/src/Output.cxx b/src/Output.cxx index 431f57e..424d523 100644 --- a/src/Output.cxx +++ b/src/Output.cxx @@ -648,8 +648,6 @@ ASTVisitor::DumpId ASTVisitor::AddTypeDumpNode(DumpType dt, bool complete, ASTVisitor::DumpId ASTVisitor::AddQualDumpNode(DumpId id) { DumpNode* dn = this->GetDumpNode(id); if (!dn->Index) { - // Consume a node index for temporary compatibility. - ++this->NodeCount; dn->Index = id; // Always treat CvQualifiedType nodes as complete. dn->Complete = true; diff --git a/test/expect/gccxml.any.Class-base-typedef.xml.txt b/test/expect/gccxml.any.Class-base-typedef.xml.txt index 44f11d9..1c143ad 100644 --- a/test/expect/gccxml.any.Class-base-typedef.xml.txt +++ b/test/expect/gccxml.any.Class-base-typedef.xml.txt @@ -17,15 +17,15 @@ - + - - + + - + - + $ diff --git a/test/expect/gccxml.any.Class-friends.xml.txt b/test/expect/gccxml.any.Class-friends.xml.txt index 8143e8f..ace95cd 100644 --- a/test/expect/gccxml.any.Class-friends.xml.txt +++ b/test/expect/gccxml.any.Class-friends.xml.txt @@ -13,8 +13,8 @@ - + - + $ diff --git a/test/expect/gccxml.any.Class-implicit-member-bad-base.xml.txt b/test/expect/gccxml.any.Class-implicit-member-bad-base.xml.txt index 2bf091b..1fd1e1a 100644 --- a/test/expect/gccxml.any.Class-implicit-member-bad-base.xml.txt +++ b/test/expect/gccxml.any.Class-implicit-member-bad-base.xml.txt @@ -11,15 +11,15 @@ - + - + - - - + + + diff --git a/test/expect/gccxml.any.Class-implicit-member-const.xml.txt b/test/expect/gccxml.any.Class-implicit-member-const.xml.txt index 99d41d8..e1812af 100644 --- a/test/expect/gccxml.any.Class-implicit-member-const.xml.txt +++ b/test/expect/gccxml.any.Class-implicit-member-const.xml.txt @@ -4,12 +4,12 @@ - + - + diff --git a/test/expect/gccxml.any.Class-template-Method-return-const.xml.txt b/test/expect/gccxml.any.Class-template-Method-return-const.xml.txt index 5bf29e2..cbb3c76 100644 --- a/test/expect/gccxml.any.Class-template-Method-return-const.xml.txt +++ b/test/expect/gccxml.any.Class-template-Method-return-const.xml.txt @@ -4,17 +4,17 @@ - + - - + + - + - + $ diff --git a/test/expect/gccxml.any.Class-template-friends.xml.txt b/test/expect/gccxml.any.Class-template-friends.xml.txt index 061a913..837a162 100644 --- a/test/expect/gccxml.any.Class-template-friends.xml.txt +++ b/test/expect/gccxml.any.Class-template-friends.xml.txt @@ -13,10 +13,10 @@ - - + + - + $ diff --git a/test/expect/gccxml.any.Class-template-member-Typedef-const.xml.txt b/test/expect/gccxml.any.Class-template-member-Typedef-const.xml.txt index 3348184..e6e4c73 100644 --- a/test/expect/gccxml.any.Class-template-member-Typedef-const.xml.txt +++ b/test/expect/gccxml.any.Class-template-member-Typedef-const.xml.txt @@ -7,17 +7,17 @@ - + - - + + - + - + $ diff --git a/test/expect/gccxml.any.CvQualifiedType.xml.txt b/test/expect/gccxml.any.CvQualifiedType.xml.txt index a360ee6..7784333 100644 --- a/test/expect/gccxml.any.CvQualifiedType.xml.txt +++ b/test/expect/gccxml.any.CvQualifiedType.xml.txt @@ -1,8 +1,8 @@ ^<\?xml version="1.0"\?> ]*> - + - + $ diff --git a/test/expect/gccxml.any.MethodType-cv.xml.txt b/test/expect/gccxml.any.MethodType-cv.xml.txt index a2f11bd..fb93707 100644 --- a/test/expect/gccxml.any.MethodType-cv.xml.txt +++ b/test/expect/gccxml.any.MethodType-cv.xml.txt @@ -1,13 +1,13 @@ ^<\?xml version="1.0"\?> ]*> - - + + - - - + + + - - + + $ diff --git a/test/expect/gccxml.any.OffsetType-cv.xml.txt b/test/expect/gccxml.any.OffsetType-cv.xml.txt index 16e70a5..9f4b86f 100644 --- a/test/expect/gccxml.any.OffsetType-cv.xml.txt +++ b/test/expect/gccxml.any.OffsetType-cv.xml.txt @@ -1,11 +1,11 @@ ^<\?xml version="1.0"\?> ]*> - - + + - - - - + + + + $ diff --git a/test/expect/gccxml.any.using-declaration-class.xml.txt b/test/expect/gccxml.any.using-declaration-class.xml.txt index 9669b01..1ade161 100644 --- a/test/expect/gccxml.any.using-declaration-class.xml.txt +++ b/test/expect/gccxml.any.using-declaration-class.xml.txt @@ -25,15 +25,15 @@ - + - - + + - + - + $ diff --git a/test/expect/gccxml.c++11.Class-bases.xml.txt b/test/expect/gccxml.c++11.Class-bases.xml.txt index 69666f0..56d391f 100644 --- a/test/expect/gccxml.c++11.Class-bases.xml.txt +++ b/test/expect/gccxml.c++11.Class-bases.xml.txt @@ -19,38 +19,38 @@ - - + + - + - - + + - + - - + + - + - - + + - - + + - - + + diff --git a/test/expect/gccxml.c++11.Class-template-bases.xml.txt b/test/expect/gccxml.c++11.Class-template-bases.xml.txt index aaf6a75..a335a95 100644 --- a/test/expect/gccxml.c++11.Class-template-bases.xml.txt +++ b/test/expect/gccxml.c++11.Class-template-bases.xml.txt @@ -19,26 +19,26 @@ - + - - + + - + - - + + - + - - + + - + $ diff --git a/test/expect/gccxml.c++98.Class-bases.xml.txt b/test/expect/gccxml.c++98.Class-bases.xml.txt index 852b1c1..8d8ade5 100644 --- a/test/expect/gccxml.c++98.Class-bases.xml.txt +++ b/test/expect/gccxml.c++98.Class-bases.xml.txt @@ -21,37 +21,37 @@ - + - - + + - + - - + + - + - - + + - + - - + + - - + + - + $ diff --git a/test/expect/gccxml.c++98.Class-template-bases.xml.txt b/test/expect/gccxml.c++98.Class-template-bases.xml.txt index a683164..3629ddb 100644 --- a/test/expect/gccxml.c++98.Class-template-bases.xml.txt +++ b/test/expect/gccxml.c++98.Class-template-bases.xml.txt @@ -19,26 +19,26 @@ - + - - + + - + - - + + - + - - + + - + $ -- cgit v0.12