New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary type info calls #6896
Conversation
A new Pull Request was created by @wmtan for CMSSW_7_4_X. Remove unnecessary type info calls It involves the following packages: CommonTools/Utils @nclopezo, @monttj, @cmsbuild, @Dr15Jones, @StoyanStoynev, @slava77, @vadler, @ktf can you please review it and eventually sign? Thanks. |
I request that this pull request not be merged into the 7_4_X_ROOT6 branch, because these changes will be made there independently. This is not critical, because I can clean things up if merging this causes any problems in the 7_4_X_ROOT6 branch. |
+1 |
@ktf - is this hold still needed? |
#7013 takes care of not merging this in ROOT6_X. Hold can go. I'll also bypass the analysis signature. |
Remove unnecessary type info calls
This pull request has two purposes:
In ROOT6, ROOT does not provide type_info information for non-class types, such as enums, pointers, and C-Style arrays. This currently can cause TypeWithDict::typeInfo() to return incorrect information in the ROOT6 IB. The first step to fixing this problem is to remove unnecessary calls to TypeWithDict::typeInfo(). This pull request does this in the framework and in
CommonTools/Utils/src/AnyMethodArgument.h. Since the changed code works equally well in ROOT5, this is being requested in the main 7_4_X branch (ROOT5) for code commonality.
I happened to notice that I had extensively edited several other source files in ComonTools/Utils in the ROOT6 branch to make them more readable (non-substantive formatting changes). These changes should have been made in the main branch as well for code commonality. This pull request makes the same changes in the main 7_4_X branch for code commonality with the ROOT6 IB. All the changes in CommonTools/Utils, except for those in AnyMethodArgument.h, are essentially no-ops.
All unit tests in the affected packages pass and the short relval matrix tests still pass with these changes.
I request that this pull request not be merged into the 7_4_X_ROOT6 branch, because these changes will be made there independently. This is not critical, because I can clean things up if merging this causes any problems in the 7_4_X_ROOT6 branch.