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
Enable misc-definitions-in-headers clang-tidy check #33365
Enable misc-definitions-in-headers clang-tidy check #33365
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33365/21954
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages: .clang-tidy @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
To include the
with comma and semicolon separators and with and without an "empty element". |
@makortel , build rules now properly process the changes suggested by this check. How should we proceed? I can make PRs ( one per category) to apply this check on full cmssw. Only 66 header files are changed due to this check but over all there are around 250 files which still needs clang tidy/format checks. https://cmssdt.cern.ch/jenkins/view/Jenkins%20Tests/job/jenkins-test-code-format/71/console job ran clang-tidy/format of full cmssw. |
I think the usual "PR per category" would be good way to go. Should we try to include the |
yes we should add I will open PRs next week with tidy/formt changes for full cmssw |
Should I add
to |
yes please |
To find non-extern non-inline function definitions.
d277296
to
e4a1c20
Compare
Done. (but note that I did not test now this exact version of the file) |
No, worries @makortel . I am going to use this PR to apply clang-tidy changes . |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33365/23120
|
Pull request #33365 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again. |
@makortel , looks like my last set of PRs has missed to include this change. That is whjy there are no fixes proposed by the check for those PRs. Once the currect set of PRs merged then I will do another round ( should be a small change set as by then the rest of cmssw should be all clean) with this change |
Sounds good, thanks! |
please test |
Sounds good, thanks! |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b5b01e/16212/summary.html Comparison SummaryThe workflows 140.53 have different files in step1_dasquery.log than the ones found in the baseline. You may want to check and retrigger the tests if necessary. You can check it in the "files" directory in the results of the comparisons Summary:
|
+core |
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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR suggests to enable
misc-definitions-in-headers
clang-tidy check to find and fix non-inline function definitions in headers (based on a recent encounter of one slipping through #33319 (comment)).PR validation:
Tested that a header defining a function without
inline
gets flagged and fixed. The impact on the entire CMSSW (excludingtest
,macros
,bin
directories) is shown in #33366.