-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add ability to conditionally apply [[deprecated]] #35390
Conversation
This allows SCRAM to control under what circumstances the messages should be emitted.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35390/25491
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test NOTE the conditional is off so will not show up in the test |
Effectively implements #31021, even if still turned off. |
What about legacy |
When I did a very quick check on that file, I didn't find it. I'm not sure we have legacy OutputModules anymore. |
Ah right, was removed already in #29633. |
@@ -258,6 +244,26 @@ namespace edm { | |||
bool requireTokens() const { return requireTokens_; } | |||
|
|||
private: | |||
template <typename HolderT> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just the old get
call renamed. I did this to avoid having multiple "deprecated" messages happening in the case someone called a deprecated function that then called the deprecated get
. In that case you'd get one warning at the callers site and a second one in EventSetupRecord.h
itself. Moving the implementation to a private function that isn't annotated avoids that.
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d68ae9/18875/summary.html The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: Found compilation warnings Comparison SummarySummary:
|
@smuzaffar Do you have any comments? The changes look good to me. |
@makortel looks good, with [a]
|
Hmh, that makes me wonder if warnings from FWCore headers (as opposed to user code) that needs to use legacy module types (until we actually remove the support) could cause more confusion than help in getting code migrated. |
My thinking is to see how it goes and if it is causing an issue, we can try to do a bit of code rearranging to see if they can be avoided for compliant code. [I did a bit of that already.] |
Also, I separated the esConsumes from the legacy module into two different commits so we could easily undo to the legacy one if it proves to be to verbose. |
@makortel @smuzaffar so what is the verdict? |
Let's try it out. Anyway this PR alone doesn't change behavior even in the dev areas. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
CMS_DEPRECATED
macro which is only turned on ifUSE_CMS_DEPRECATED
is setPR validation:
Code was compiles with and without USE_CMS_DEPRECATED set. When deprecations are turned on, expected warnings were generated.