Skip to content

Conversation

@peterfpeterson peterfpeterson added the ornl-next A copy of a branch into the ornl-next fork label Apr 1, 2025
@peterfpeterson peterfpeterson changed the title Build fixes - ornl-next Build and cppcheck fixes - ornl-next Apr 1, 2025
RichardWaiteSTFC and others added 5 commits April 1, 2025 12:27
* Cppcheck suppressions set 56

* Remove lines from suppressions and other fixes

Py_RETURN_NONE renamed to Py_NONE and return removed (now to be done manually) as not used anywhere else and was confusing cppcheck with missing return.

Had to make lambda function wrapper if wanted to return const pointer in AlgorithmProperty.cpp

Co-authored-by: Mohamed Almaki <MohamedAlmaki@users.noreply.github.com>

* Not use macro to return

* Replace std::function pointer with a C style function pointer

* Update Framework/PythonInterface/mantid/api/src/Exports/IPeakFunction.cpp

Co-authored-by: Gui Maciel Pereira <80104863+GuiMacielPereira@users.noreply.github.com>

* Update Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp

Co-authored-by: Gui Maciel Pereira <80104863+GuiMacielPereira@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update Framework/PythonInterface/mantid/api/src/Exports/IFunction1D.cpp

Co-authored-by: Gui Maciel Pereira <80104863+GuiMacielPereira@users.noreply.github.com>

* Update Framework/PythonInterface/mantid/api/src/Exports/IPeakFunction.cpp

Co-authored-by: Gui Maciel Pereira <80104863+GuiMacielPereira@users.noreply.github.com>

* Revert constParameterCallback suppression fix

---------

Co-authored-by: Mohamed Almaki <MohamedAlmaki@users.noreply.github.com>
Co-authored-by: Mohammed Almakki <mohammed.almakki@stfc.ac.uk>
Co-authored-by: Gui Maciel Pereira <80104863+GuiMacielPereira@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…ct#39004)

* fix some knownConditionTrueFalse warnings

* fix cascading ccpcheck warnings

* Review suggestions

Co-authored-by: James Clarke <james.clarke@stfc.ac.uk>

---------

Co-authored-by: James Clarke <james.clarke@stfc.ac.uk>
updates:
- [github.com/pre-commit/mirrors-clang-format: v19.1.7 → v20.1.0](pre-commit/mirrors-clang-format@v19.1.7...v20.1.0)
- [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.2](astral-sh/ruff-pre-commit@v0.9.10...v0.11.2)

remove unnecessary brackets

Update cppcheck suppression line number
* Delete unnecessary virtual destructors.

* Fixes for ImportMDHistoWorkspaceBase

The member variable nbins is unused, and was shadowed inside a method.
Also made some variables in that method const.

* AlgorithmDialog missing const in a few places

* Fix some return by reference in FitPropertyBrowser

* Fix several passedByValue Cppcheck warnings

* Further Cppcheck fixes
jhaigh0 and others added 2 commits April 1, 2025 12:45
* some stl related cppchecks

* additional ccpcheck fixes from line numbers moving

* remove fix that I think is causing the test failure

* use std optional to avoid uninitialised warning
@peterfpeterson peterfpeterson enabled auto-merge (squash) April 1, 2025 17:45
@peterfpeterson peterfpeterson merged commit 48acf14 into mantidproject:ornl-next Apr 1, 2025
8 of 10 checks passed
@peterfpeterson peterfpeterson deleted the build_fixes branch April 1, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ornl-next A copy of a branch into the ornl-next fork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants