Skip to content

Fing clang-tidy issues in hist classes#7596

Merged
linev merged 6 commits intoroot-project:masterfrom
linev:tidy_hist
Mar 19, 2021
Merged

Fing clang-tidy issues in hist classes#7596
linev merged 6 commits intoroot-project:masterfrom
linev:tidy_hist

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Mar 18, 2021

Fixes #7532

linev added 6 commits March 18, 2021 17:56
TF3 was never casted if tried to use old function
Second if operation may be dangerous even it should never be true
One can use reference and const specifier to ensure that parameters
list not changed
While it handled in static variable, initialize it
and verify if it there when access it.
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

Copy link
Copy Markdown
Member

@lmoneta lmoneta left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you Sergei for these various fixes.
The one in HFitImpl, is maybe a typo but it is a serious bug, probably causing crash. Not noticed so far probably because it is rare to fit a TH3 object.

@linev linev merged commit a535c26 into root-project:master Mar 19, 2021
@linev linev deleted the tidy_hist branch March 19, 2021 16:55
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.

[hist] Clang-Tidy Clazy warnings

3 participants