-
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
[clang][c++20] Fixed ambiguous-reversed-operator for PixelModuleName #45492
[clang][c++20] Fixed ambiguous-reversed-operator for PixelModuleName #45492
Conversation
cms-bot internal usage |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45492/40961 Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45492/40962 |
A new Pull Request was created by @smuzaffar for master. It involves the following packages:
@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test for CMSSW_14_1_CLANG_X |
Adding this overload is the right way to fix the "ambiguity", but looking at the implementation of cmssw/DataFormats/TrackerCommon/src/PixelBarrelName.cc Lines 722 to 729 in 1a77414
cmssw/DataFormats/TrackerCommon/src/PixelEndcapName.cc Lines 356 to 363 in 1a77414
it would be better to have the overloads added in this PR to have the actual implementation of the comparison, and then have the "generic" comparison operator to call these overloads depending on PixelModuleName::isBarrel() .
(I somewhat wonder though if the "generic" operator is actually being used after the addition of these overloads) |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45492/40969 Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
f4f9d45
to
45fe07d
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45492/40975 |
Pull request #45492 was updated. @civanch, @cmsbuild, @jfernan2, @mandrenguyen, @mdhildreth can you please check and sign again. |
please test |
please test for CMSSW_14_1_CLANG_X |
+1 Size: This PR adds an extra 28KB to repository
Comparison SummarySummary:
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-504be8/40492/summary.html Comparison SummarySummary:
|
@smuzaffar , is the warning fixed? Why we have too many difference in comparisons? |
@civanch , yes warnings are gone https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-504be8/40492/build-logs/. comparison diff here #45492 (comment) are due to CLANG vs Default IB, so these are expected. |
+1 |
+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. @mandrenguyen, @antoniovilela, @sextonkennedy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
This PR should fix the clang IBs warnings [a].
@makortel @Dr15Jones , I don't know if this is the correct way to fix these warnings ... let me know if there is correct/better way
[a] https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/el8_amd64_gcc12/CMSSW_14_1_CLANG_X_2024-07-17-1700/CondFormats/SiPixelObjects