diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-25 08:34:00 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-25 08:34:00 (GMT) |
commit | 4a0b770b84e251ed00c6b35ff9d11c7a0d7f0ee8 (patch) | |
tree | 77d7d7627002d47c1df93cf2636ce6ca87ea2ca6 /tests/auto/bic | |
parent | f035995584ec384c03465fb3a7f73818eb8da652 (diff) | |
download | Qt-4a0b770b84e251ed00c6b35ff9d11c7a0d7f0ee8.zip Qt-4a0b770b84e251ed00c6b35ff9d11c7a0d7f0ee8.tar.gz Qt-4a0b770b84e251ed00c6b35ff9d11c7a0d7f0ee8.tar.bz2 |
Add Perl code to remove template classes from the listing.
It is possible to export symbols in template classes, but I
don't think we use any such cases now (template specialisation).
It only works properly with C++0x anyway (extern template).
Diffstat (limited to 'tests/auto/bic')
-rwxr-xr-x | tests/auto/bic/gen.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/bic/gen.sh b/tests/auto/bic/gen.sh index 2479a33..31031aa 100755 --- a/tests/auto/bic/gen.sh +++ b/tests/auto/bic/gen.sh @@ -18,5 +18,9 @@ for module in $modules; do echo "#include <$module/$module>" >test.cpp g++ -c -I$QTDIR/include -DQT_NO_STL -DQT3_SUPPORT -fdump-class-hierarchy test.cpp mv test.cpp*.class $module.$2.txt + # Remove template classes from the output + perl -pi -e '$skip = 0 if (/^\n/); + $skip = 1 if (/^(Class|Vtable).*</); + $_ = "" if ($skip);' $module.$2.txt done |