Skip to content
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

Clang fixes related to Boost Serialization #5692

Merged
merged 2 commits into from Oct 6, 2014

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Oct 5, 2014

The following fixes a few errors reported by Clang and seen by Boost Serialization script.

David Abdurachmanov added 2 commits October 5, 2014 09:36
According to signature at base class the first argument to function is
passed not as a value, but as a reference. Change it accordingly to
match the signature in base class.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
According to the header, ChamberLocationSpec is not a class, but a
struct. Change forward declarations accordingly.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2014

A new Pull Request was created by @davidlt for CMSSW_7_3_X.

Clang fixes related to Boost Serialization

It involves the following packages:

CalibFormats/SiPixelObjects
CondFormats/RPCObjects

@apfeiffer1, @diguida, @cerminar, @cmsbuild, @nclopezo, @rcastello, @ggovi can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@@ -174,7 +174,7 @@ namespace pos{

virtual void writeASCII(std::string dir="") const;
void writeXML( pos::PixelConfigKey key, int version, std::string path) const {;}
virtual void writeXMLHeader( pos::PixelConfigKey key,
virtual void writeXMLHeader( pos::PixelConfigKey &key,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please make this a "const pos::PixelConfigKey &key" to avoid accidental modification of something which was previously copied ? Even if "key" is actually not used in the method. :)
[also in the corresponding .cc file, of course :) ]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought something similar. But when again this would be hiding overloaded function, I think. If that should be done on a base class are lot more classes would need to be modified, but that would fix quite a number of Clang errors/warnings. There are a lot more files having exact same issue, mis-matching signature and then hiding overloaded method.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

In CalibFormats/SiPixelObjects/interface/PixelCalibConfiguration.h:

@@ -174,7 +174,7 @@ namespace pos{

 virtual void writeASCII(std::string dir="") const;
 void    writeXML(        pos::PixelConfigKey key, int version, std::string path) const {;}
  • virtual void writeXMLHeader( pos::PixelConfigKey key,
  • virtual void writeXMLHeader( pos::PixelConfigKey &key,

I thought something similar. But when again this would be hiding
overloaded function, I think. If that should be done on a base class are
lot more classes would need to be modified, but that would fix quite a
number of Clang errors/warnings. There are a lot more files having exact
same issue, mis-matching signature and then hiding overloaded method.

ah, sorry, did not check for that. agreed then - until we have the time to
attack the base-class and all it's usages. :(

Thanks,
cheers, andreas

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2014

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 5, 2014

@davidlt
Copy link
Contributor Author

davidlt commented Oct 5, 2014

@apfeiffer1 I think, your +1 is not counted it as it's in "inline" comments.

@apfeiffer1
Copy link
Contributor

+1
ah, sorry, overlooked that, here it is again "top level"

On Sun, Oct 5, 2014 at 10:41 PM, davidlt notifications@github.com wrote:

@apfeiffer1 https://github.com/apfeiffer1 I think, your +1 is not
counted it as it's in "inline" comments.


Reply to this email directly or view it on GitHub
#5692 (comment).

Thanks,
cheers, andreas

@diguida
Copy link
Contributor

diguida commented Oct 6, 2014

+1
@davidlt @apfeiffer1 overlooked today :-(

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 6, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). @nclopezo, @ktf can you please take care of it?

ktf added a commit that referenced this pull request Oct 6, 2014
Clang fixes related to Boost Serialization
@ktf ktf merged commit a863880 into cms-sw:CMSSW_7_3_X Oct 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants