diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c0f5f412f49..0b04d15a2a7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: exclude: .md5$|^external/|^tools/|Testing/Tools/cxxtest - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.7 + rev: v20.1.0 hooks: - id: clang-format exclude: Testing/Tools/cxxtest|tools|qt/icons/resources/ @@ -59,7 +59,7 @@ repos: )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.10 + rev: v0.11.2 # ruff must appear before black in the list of hooks hooks: - id: ruff diff --git a/Framework/CurveFitting/src/Functions/GramCharlierComptonProfile.cpp b/Framework/CurveFitting/src/Functions/GramCharlierComptonProfile.cpp index fe8ff65773ae..d1f211005d61 100644 --- a/Framework/CurveFitting/src/Functions/GramCharlierComptonProfile.cpp +++ b/Framework/CurveFitting/src/Functions/GramCharlierComptonProfile.cpp @@ -272,7 +272,7 @@ void GramCharlierComptonProfile::addMassProfile(double *result, const unsigned i const double hermiteCoeff = getParameter(os.str()); const double factorial = gsl_sf_fact(npoly / 2); // Intel compiler doesn't overload pow for unsigned types - const double denom = ((std::pow(2.0, static_cast(npoly)))*factorial); + const double denom = std::pow(2.0, static_cast(npoly)) * factorial; for (int j = 0; j < NFINE_Y; ++j) { const double y = m_yfine[j] / M_SQRT2 / wg; diff --git a/Framework/DataHandling/inc/MantidDataHandling/LoadStlFactory.h b/Framework/DataHandling/inc/MantidDataHandling/LoadStlFactory.h index 91448d951f5f..f28e70578521 100644 --- a/Framework/DataHandling/inc/MantidDataHandling/LoadStlFactory.h +++ b/Framework/DataHandling/inc/MantidDataHandling/LoadStlFactory.h @@ -13,7 +13,7 @@ namespace Mantid { namespace DataHandling { -class MANTID_DATAHANDLING_DLL LoadStlFactory{ +class MANTID_DATAHANDLING_DLL LoadStlFactory { // clang-format off public : @@ -29,7 +29,7 @@ static std::unique_ptr createReader(const std::string &filename, ScaleU } return reader; } -// clang-format on + // clang-format on }; // namespace Mantid diff --git a/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLBuilder.h b/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLBuilder.h index fd15655bfdfd..70f5d16c0063 100644 --- a/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLBuilder.h +++ b/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLBuilder.h @@ -109,8 +109,11 @@ template class MANTID_GEOMETRY_DLL MDGeometryBui @date May 2011 @version 1.0 */ -struct MANTID_GEOMETRY_DLL StrictDimensionPolicy{public : StrictDimensionPolicy(){} void operator()( - // clang-format off +struct MANTID_GEOMETRY_DLL StrictDimensionPolicy { +public: + StrictDimensionPolicy() {} + void operator()( + // clang-format off const IMDDimension &item) { if (true == item.getIsIntegrated()) { std::string message = "StrictDimensionPolicy bans the use of integrated IMDDimensions mapped to x, y, z " @@ -129,9 +132,8 @@ struct MANTID_GEOMETRY_DLL StrictDimensionPolicy{public : StrictDimensionPolicy( @date May 2011 */ struct MANTID_GEOMETRY_DLL NoDimensionPolicy { - void - operator()(const IMDDimension &){ - // Do nothing. + void operator()(const IMDDimension &) { + // Do nothing. } }; } // namespace Geometry diff --git a/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLDefinitions.h b/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLDefinitions.h index 594f4eee8912..fb5c54a6d43d 100644 --- a/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLDefinitions.h +++ b/Framework/Geometry/inc/MantidGeometry/MDGeometry/MDGeometryXMLDefinitions.h @@ -21,8 +21,7 @@ namespace Geometry { @author Owen Arnold, Tessella plc @date 16/12/2010*/ -class MANTID_GEOMETRY_DLL -MDGeometryXMLDefinitions{// clang-format off +class MANTID_GEOMETRY_DLL MDGeometryXMLDefinitions { // clang-format off public : // XML schema tag definitions for generating xml. static const std::string workspaceNameXMLTagStart(){ return ""; } diff --git a/Framework/Geometry/test/ParameterMapTest.h b/Framework/Geometry/test/ParameterMapTest.h index dcb91bb719c7..eaf1b5ac5bac 100644 --- a/Framework/Geometry/test/ParameterMapTest.h +++ b/Framework/Geometry/test/ParameterMapTest.h @@ -246,53 +246,48 @@ class ParameterMapTest : public CxxTest::TestSuite { boost::function faddDouble; - faddDouble = (void(ParameterMap::*)(const IComponent *, const std::string &, double, const std::string *const, - const std::string &)) & - ParameterMap::addDouble; + faddDouble = (void (ParameterMap::*)(const IComponent *, const std::string &, double, const std::string *const, + const std::string &))&ParameterMap::addDouble; doCopyAndUpdateTestUsingAddHelpers(faddDouble, "name", 5.0, 4.0); // int boost::function faddInt; - faddInt = (void(ParameterMap::*)(const IComponent *, const std::string &, int, const std::string *const, - const std::string &)) & - ParameterMap::addInt; + faddInt = (void (ParameterMap::*)(const IComponent *, const std::string &, int, const std::string *const, + const std::string &))&ParameterMap::addInt; doCopyAndUpdateTestUsingAddHelpers(faddInt, "name", 3, 5); // bool boost::function faddBool; - faddBool = (void(ParameterMap::*)(const IComponent *, const std::string &, bool, const std::string *const, - const std::string &)) & - ParameterMap::addBool; + faddBool = (void (ParameterMap::*)(const IComponent *, const std::string &, bool, const std::string *const, + const std::string &))&ParameterMap::addBool; doCopyAndUpdateTestUsingAddHelpers(faddBool, "name", true, false); // string boost::function faddStr; - faddStr = (void(ParameterMap::*)(const IComponent *, const std::string &, const std::string &, - const std::string *const, const std::string &)) & - ParameterMap::addString; + faddStr = (void (ParameterMap::*)(const IComponent *, const std::string &, const std::string &, + const std::string *const, const std::string &))&ParameterMap::addString; doCopyAndUpdateTestUsingAddHelpers(faddStr, "name", std::string("first"), std::string("second")); // V3D boost::function faddV3D; - faddV3D = (void(ParameterMap::*)(const IComponent *, const std::string &, const V3D &, const std::string *const)) & - ParameterMap::addV3D; + faddV3D = (void (ParameterMap::*)(const IComponent *, const std::string &, const V3D &, + const std::string *const))&ParameterMap::addV3D; doCopyAndUpdateTestUsingAddHelpersPositions(faddV3D, "V3D", V3D(1, 2, 3), V3D(4, 5, 6)); // Quat boost::function faddQuat; - faddQuat = - (void(ParameterMap::*)(const IComponent *, const std::string &, const Quat &, const std::string *const)) & - ParameterMap::addQuat; + faddQuat = (void (ParameterMap::*)(const IComponent *, const std::string &, const Quat &, + const std::string *const))&ParameterMap::addQuat; doCopyAndUpdateTestUsingAddHelpersPositions(faddQuat, "Quat", Quat(), Quat(45.0, V3D(0, 0, 1))); } @@ -304,23 +299,20 @@ class ParameterMapTest : public CxxTest::TestSuite { // double AddFuncHelper faddDouble; - faddDouble = (void(ParameterMap::*)(const IComponent *, const std::string &, const std::string &, - const std::string *const, const std::string &)) & - ParameterMap::addDouble; + faddDouble = (void (ParameterMap::*)(const IComponent *, const std::string &, const std::string &, + const std::string *const, const std::string &))&ParameterMap::addDouble; doCopyAndUpdateTestUsingAddHelpersAsStrings(faddDouble, "name", 5.0, 4.0); // int AddFuncHelper faddInt; - faddInt = (void(ParameterMap::*)(const IComponent *, const std::string &, const std::string &, - const std::string *const, const std::string &)) & - ParameterMap::addInt; + faddInt = (void (ParameterMap::*)(const IComponent *, const std::string &, const std::string &, + const std::string *const, const std::string &))&ParameterMap::addInt; doCopyAndUpdateTestUsingAddHelpersAsStrings(faddInt, "name", 3, 5); // bool AddFuncHelper faddBool; - faddBool = (void(ParameterMap::*)(const IComponent *, const std::string &, const std::string &, - const std::string *const, const std::string &)) & - ParameterMap::addBool; + faddBool = (void (ParameterMap::*)(const IComponent *, const std::string &, const std::string &, + const std::string *const, const std::string &))&ParameterMap::addBool; doCopyAndUpdateTestUsingAddHelpersAsStrings(faddBool, "name", true, false); } diff --git a/Framework/HistogramData/src/Interpolate.cpp b/Framework/HistogramData/src/Interpolate.cpp index 4e2905583a4b..f650de965679 100644 --- a/Framework/HistogramData/src/Interpolate.cpp +++ b/Framework/HistogramData/src/Interpolate.cpp @@ -128,7 +128,7 @@ void interpolateYCSplineInplace(const Mantid::HistogramData::Histogram &input, } } } - double xsMaxEpsilon = *(std::max_element(xs.begin(), xs.end()))*std::numeric_limits::epsilon(); + double xsMaxEpsilon = *(std::max_element(xs.begin(), xs.end())) * std::numeric_limits::epsilon(); // elements with i=j will have the largest value double hMaxEpsilon = xsMaxEpsilon * 2 / 3; diff --git a/Framework/Kernel/inc/MantidKernel/RegistrationHelper.h b/Framework/Kernel/inc/MantidKernel/RegistrationHelper.h index 4a351de19265..b9a6debdc049 100644 --- a/Framework/Kernel/inc/MantidKernel/RegistrationHelper.h +++ b/Framework/Kernel/inc/MantidKernel/RegistrationHelper.h @@ -19,7 +19,7 @@ namespace Kernel { * * The MANTID_KERNEL_DLL needs to be available where this helper is imported and used. */ -class MANTID_KERNEL_DLL RegistrationHelper{// clang-format off +class MANTID_KERNEL_DLL RegistrationHelper { // clang-format off public: /** Constructor. Does nothing. * @param i :: Takes an int and does nothing with it diff --git a/Framework/PythonInterface/core/inc/MantidPythonInterface/core/StlExportDefinitions.h b/Framework/PythonInterface/core/inc/MantidPythonInterface/core/StlExportDefinitions.h index d80fa0561550..0d343ceba5df 100644 --- a/Framework/PythonInterface/core/inc/MantidPythonInterface/core/StlExportDefinitions.h +++ b/Framework/PythonInterface/core/inc/MantidPythonInterface/core/StlExportDefinitions.h @@ -141,7 +141,7 @@ template struct std_set_exporter { .def("append", insert_element, (arg("self"), arg("element"))) .def("insert", insert_set, (arg("self"), arg("set"))) .def("extend", insert_set, (arg("self"), arg("set"))) - .def("erase", (std::size_t(w_t::*)(e_t const &))&w_t::erase, (arg("self"), arg("index"))) + .def("erase", (std::size_t (w_t::*)(e_t const &))&w_t::erase, (arg("self"), arg("index"))) .def("clear", &w_t::clear, arg("self")) .enable_pickling() diff --git a/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp b/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp index 0a7750bdf82e..2bb829c6601d 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/ExperimentInfo.cpp @@ -100,7 +100,7 @@ void export_ExperimentInfo() { .def("mutableRun", &ExperimentInfo::mutableRun, return_value_policy(), args("self"), "Return a modifiable :class:`~mantid.api.Run` object.") .def("getRunNumber", &ExperimentInfo::getRunNumber, args("self"), "Returns the run identifier for this run.") - .def("getEFixed", (double(ExperimentInfo::*)(const Mantid::detid_t) const) & ExperimentInfo::getEFixed, + .def("getEFixed", (double (ExperimentInfo::*)(const Mantid::detid_t) const) & ExperimentInfo::getEFixed, args("self", "detId")) .def("setEFixed", &ExperimentInfo::setEFixed, args("self", "detId", "value")) .def("getEMode", &ExperimentInfo::getEMode, args("self"), "Returns the energy mode.") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp index 31e4aa2ba1cd..e03232ae3cf6 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IEventList.cpp @@ -57,7 +57,7 @@ void export_IEventList() { .def("getMemorySize", &IEventList::getMemorySize, args("self"), "Returns the memory size in bytes") .def("integrate", &IEventList::integrate, args("self", "minX", "maxX", "entireRange"), "Integrate the events between a range of X values, or all events.") - .def("convertTof", (void(IEventList::*)(const double, const double)) & IEventList::convertTof, + .def("convertTof", (void (IEventList::*)(const double, const double))&IEventList::convertTof, args("self", "factor", "offset"), "Convert the time of flight by tof'=tof*factor+offset") .def("scaleTof", &IEventList::scaleTof, args("self", "factor"), "Convert the tof units by scaling by a multiplier.") @@ -72,11 +72,11 @@ void export_IEventList() { "Mask out events that have a tof between tofMin and tofMax " "(inclusively)") .def("maskCondition", &maskCondition, args("self", "mask"), "Mask out events by the condition vector") - .def("getTofs", (std::vector(IEventList::*)() const) & IEventList::getTofs, args("self"), + .def("getTofs", (std::vector (IEventList::*)() const) & IEventList::getTofs, args("self"), return_clone_numpy(), "Get a vector of the TOFs of the events") - .def("getWeights", (std::vector(IEventList::*)() const) & IEventList::getWeights, args("self"), + .def("getWeights", (std::vector (IEventList::*)() const) & IEventList::getWeights, args("self"), return_clone_numpy(), "Get a vector of the weights of the events") - .def("getWeightErrors", (std::vector(IEventList::*)() const) & IEventList::getWeightErrors, args("self"), + .def("getWeightErrors", (std::vector (IEventList::*)() const) & IEventList::getWeightErrors, args("self"), return_clone_numpy(), "Get a vector of the weights of the events") .def("getPulseTimes", &IEventList::getPulseTimes, args("self"), "Get a vector of the pulse times of the events") .def("getPulseTimesAsNumpy", @@ -88,12 +88,12 @@ void export_IEventList() { "The minimum pulse time for the list of the events.") .def("getTofMin", &IEventList::getTofMin, args("self"), "The minimum tof value for the list of the events.") .def("getTofMax", &IEventList::getTofMax, args("self"), "The maximum tof value for the list of the events.") - .def("multiply", (void(IEventList::*)(const double, const double)) & IEventList::multiply, + .def("multiply", (void (IEventList::*)(const double, const double))&IEventList::multiply, args("self", "value", "error"), "Multiply the weights in this event " "list by a scalar variable with an " "error; though the error can be 0.0") - .def("divide", (void(IEventList::*)(const double, const double)) & IEventList::divide, + .def("divide", (void (IEventList::*)(const double, const double))&IEventList::divide, args("self", "value", "error"), "Divide the weights in this event " "list by a scalar with an " diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp index a1ac0cae973d..e88b68cdba2d 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IFunction.cpp @@ -214,13 +214,13 @@ void export_IFunction() { .def("isExplicitlySet", &IFunction::isExplicitlySet, (arg("self"), arg("i")), "Return whether the ith parameter needs to be explicitely set") - .def("getParameterValue", (double(IFunction::*)(size_t) const) & IFunction::getParameter, (arg("self"), arg("i")), - "Get the value of the ith parameter") + .def("getParameterValue", (double (IFunction::*)(size_t) const) & IFunction::getParameter, + (arg("self"), arg("i")), "Get the value of the ith parameter") - .def("getParameterValue", (double(IFunction::*)(const std::string &) const) & IFunction::getParameter, + .def("getParameterValue", (double (IFunction::*)(const std::string &) const) & IFunction::getParameter, (arg("self"), arg("name")), "Get the value of the named parameter") - .def("__getitem__", (double(IFunction::*)(const std::string &) const) & IFunction::getParameter, + .def("__getitem__", (double (IFunction::*)(const std::string &) const) & IFunction::getParameter, (arg("self"), arg("name")), "Get the value of the named parameter") .def("setParameter", (setParameterType1)&IFunction::setParameter, @@ -297,10 +297,10 @@ void export_IFunction() { .def("addTies", &IFunction::addTies, addTies_Overloads((arg("self"), arg("ties"), arg("isDefault")), "Add several ties to an IFunction.")) - .def("removeTie", (bool(IFunction::*)(size_t)) & IFunction::removeTie, (arg("self"), arg("i")), + .def("removeTie", (bool (IFunction::*)(size_t))&IFunction::removeTie, (arg("self"), arg("i")), "Remove the tie of the ith parameter") - .def("removeTie", (void(IFunction::*)(const std::string &)) & IFunction::removeTie, (arg("self"), arg("name")), + .def("removeTie", (void (IFunction::*)(const std::string &))&IFunction::removeTie, (arg("self"), arg("name")), "Remove the tie of the named parameter") .def("getTies", &IFunction::writeTies, arg("self"), "Returns the list of current ties as a string") @@ -344,7 +344,7 @@ void export_IFunction() { "Return a description of the ith parameter") .def("getParamExplicit", &IFunction::isExplicitlySet, (arg("self"), arg("i")), "Return whether the ith parameter needs to be explicitely set") - .def("getParamValue", (double(IFunction::*)(std::size_t) const) & IFunction::getParameter, + .def("getParamValue", (double (IFunction::*)(std::size_t) const) & IFunction::getParameter, (arg("self"), arg("i")), "Get the value of the ith parameter") .def("getParameterIndex", &IFunction::parameterIndex, (arg("self"), arg("name")), "Returns the index of the provided parameter.") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp index e18e7ab9226a..da280e4dacb1 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IMDEventWorkspace.cpp @@ -28,7 +28,7 @@ void export_IMDEventWorkspace() { "Returns the number of dimensions in this " ":class:`~mantid.api.Workspace`") - .def("getBoxController", (BoxController_sptr(IMDEventWorkspace::*)())&IMDEventWorkspace::getBoxController, + .def("getBoxController", (BoxController_sptr (IMDEventWorkspace::*)())&IMDEventWorkspace::getBoxController, arg("self"), "Returns the :class:`~mantid.api.BoxController` used in this " ":class:`~mantid.api.Workspace`") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp index c3eea994db0e..fd28896be345 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IMDHistoWorkspace.cpp @@ -226,17 +226,17 @@ void export_IMDHistoWorkspace() { .def("getInverseVolume", &IMDHistoWorkspace::getInverseVolume, arg("self"), return_value_policy(), "Return the inverse of volume of EACH cell in the workspace.") - .def("getLinearIndex", (size_t(IMDHistoWorkspace::*)(size_t, size_t) const)&IMDHistoWorkspace::getLinearIndex, + .def("getLinearIndex", (size_t (IMDHistoWorkspace::*)(size_t, size_t) const) & IMDHistoWorkspace::getLinearIndex, (arg("self"), arg("index1"), arg("index2")), return_value_policy(), "Get the 1D linear index from the 2D array") .def("getLinearIndex", - (size_t(IMDHistoWorkspace::*)(size_t, size_t, size_t) const)&IMDHistoWorkspace::getLinearIndex, + (size_t (IMDHistoWorkspace::*)(size_t, size_t, size_t) const) & IMDHistoWorkspace::getLinearIndex, (arg("self"), arg("index1"), arg("index2"), arg("index3")), return_value_policy(), "Get the 1D linear index from the 3D array") .def("getLinearIndex", - (size_t(IMDHistoWorkspace::*)(size_t, size_t, size_t, size_t) const)&IMDHistoWorkspace::getLinearIndex, + (size_t (IMDHistoWorkspace::*)(size_t, size_t, size_t, size_t) const) & IMDHistoWorkspace::getLinearIndex, (arg("self"), arg("index1"), arg("index2"), arg("index3"), arg("index4")), return_value_policy(), "Get the 1D linear index from the 4D array") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IMaskWorkspace.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IMaskWorkspace.cpp index f631decdc603..b8a36152d1d9 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IMaskWorkspace.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IMaskWorkspace.cpp @@ -36,7 +36,7 @@ void export_IMaskWorkspace() { class_("IMaskWorkspace", no_init) .def("getNumberMasked", &IMaskWorkspace::getNumberMasked, arg("self"), "Returns the number of masked pixels in the workspace") - .def("isMasked", (bool(IMaskWorkspace::*)(const Mantid::detid_t) const) & IMaskWorkspace::isMasked, + .def("isMasked", (bool (IMaskWorkspace::*)(const Mantid::detid_t) const) & IMaskWorkspace::isMasked, (arg("self"), arg("detector_id")), "Returns whether the given detector ID is masked") .def("isMasked", isMaskedFromList, (arg("self"), arg("detector_id_list")), "Returns whether all of the given detector ID list are masked"); diff --git a/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp b/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp index fefe440bcecc..4ba3c72fa5e5 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/IPeak.cpp @@ -82,13 +82,13 @@ void export_IPeak() { .def("setIntHKL", &IPeak::setIntHKL, (arg("self"), arg("hkl")), "Set the integer HKL for this peak") .def("getSamplePos", &IPeak::getSamplePos, arg("self"), "Get the cached samplePos as a :class:`~mantid.kernel.V3D` object") - .def("setHKL", (void(IPeak::*)(double, double, double)) & IPeak::setHKL, + .def("setHKL", (void (IPeak::*)(double, double, double))&IPeak::setHKL, (arg("self"), arg("h"), arg("k"), arg("l")), "Set the HKL values of this peak") - .def("setSamplePos", (void(IPeak::*)(double, double, double)) & IPeak::setSamplePos, + .def("setSamplePos", (void (IPeak::*)(double, double, double))&IPeak::setSamplePos, (arg("self"), arg("samX"), arg("samY"), arg("samZ")), "Set the samplePos value of this peak. It does not set the " "instrument sample position.") - .def("setSamplePos", (void(IPeak::*)(const Mantid::Kernel::V3D &)) & IPeak::setSamplePos, + .def("setSamplePos", (void (IPeak::*)(const Mantid::Kernel::V3D &))&IPeak::setSamplePos, (arg("self"), arg("newPos")), "Set the samplePos value of this peak. It does not set the " "instrument sample position.") @@ -185,7 +185,7 @@ void export_IPeak() { .def("setPeakShape", setPeakShape, (arg("self"), arg("shape")), "Set the peak shape") .def("getAbsorptionWeightedPathLength", &IPeak::getAbsorptionWeightedPathLength, arg("self"), "Get the absorption weighted path length") - .def("getReferenceFrame", (std::shared_ptr(IPeak::*)()) & IPeak::getReferenceFrame, + .def("getReferenceFrame", (std::shared_ptr (IPeak::*)())&IPeak::getReferenceFrame, arg("self"), return_value_policy(), "Returns the :class:`~mantid.geometry.ReferenceFrame` attached that " "defines the instrument axes") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp b/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp index 6453ae81661c..b142ac707987 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp @@ -368,7 +368,7 @@ void export_MatrixWorkspace() { "Get a pointer to a workspace axis") .def("isHistogramData", &MatrixWorkspace::isHistogramData, arg("self"), "Returns ``True`` if this is considered to be binned data.") - .def("isDistribution", (bool(MatrixWorkspace::*)() const) & MatrixWorkspace::isDistribution, arg("self"), + .def("isDistribution", (bool (MatrixWorkspace::*)() const) & MatrixWorkspace::isDistribution, arg("self"), "Returns the status of the distribution flag") .def("YUnit", &MatrixWorkspace::YUnit, arg("self"), "Returns the current Y unit for the data (Y axis) in the workspace") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp b/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp index 1070cf595bb1..e206f3e1b7a4 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp @@ -32,9 +32,10 @@ void addExperimentInfo(MultipleExperimentInfos &self, const boost::python::objec void export_MultipleExperimentInfos() { class_("MultipleExperimentInfos", no_init) - .def("getExperimentInfo", - (ExperimentInfo_sptr(MultipleExperimentInfos::*)(const uint16_t))&MultipleExperimentInfos::getExperimentInfo, - (arg("self"), arg("expInfoIndex")), "Return the experiment info at the given index.") + .def( + "getExperimentInfo", + (ExperimentInfo_sptr (MultipleExperimentInfos::*)(const uint16_t))&MultipleExperimentInfos::getExperimentInfo, + (arg("self"), arg("expInfoIndex")), "Return the experiment info at the given index.") .def("addExperimentInfo", addExperimentInfo, (arg("self"), arg("ExperimentalInfo")), "Add a new :class:`~mantid.api.ExperimentInfo` to this " ":class:`~mantid.api.IMDWorkspace`") diff --git a/Framework/PythonInterface/mantid/api/src/Exports/SpectrumInfo.cpp b/Framework/PythonInterface/mantid/api/src/Exports/SpectrumInfo.cpp index 37bf99251030..79e5a23577ea 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/SpectrumInfo.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/SpectrumInfo.cpp @@ -84,6 +84,6 @@ void export_SpectrumInfo() { .def("difcUncalibrated", &SpectrumInfo::difcUncalibrated, (arg("self"), arg("index")), "Return the uncalibrated difc diffractometer constant") .def("diffractometerConstants", - (UnitParametersMap(SpectrumInfo::*)(const size_t) const)&SpectrumInfo::diffractometerConstants, + (UnitParametersMap (SpectrumInfo::*)(const size_t) const) & SpectrumInfo::diffractometerConstants, (arg("self"), arg("index")), "Return the diffractometer constants"); } diff --git a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp index 6cd5eff3309b..ec3b887d59cd 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceGroup.cpp @@ -92,7 +92,7 @@ void export_WorkspaceGroup() { .def("getNumberOfEntries", &WorkspaceGroup::getNumberOfEntries, arg("self"), "Returns the number of entries in the group") .def("getNames", &WorkspaceGroup::getNames, arg("self"), "Returns the names of the entries in the group") - .def("contains", (bool(WorkspaceGroup::*)(const std::string &wsName) const) & WorkspaceGroup::contains, + .def("contains", (bool (WorkspaceGroup::*)(const std::string &wsName) const) & WorkspaceGroup::contains, (arg("self"), arg("workspace")), "Returns true if the given name is in the group") .def("sortByName", &WorkspaceGroup::sortByName, (arg("self")), "Sort members by name") .def("add", addItem, (arg("self"), arg("workspace_name")), "Add a name to the group") @@ -105,7 +105,7 @@ void export_WorkspaceGroup() { // ------------ Operators -------------------------------- .def("__len__", &WorkspaceGroup::getNumberOfEntries, arg("self"), "Gets the number of entries in the workspace group") - .def("__contains__", (bool(WorkspaceGroup::*)(const std::string &wsName) const) & WorkspaceGroup::contains, + .def("__contains__", (bool (WorkspaceGroup::*)(const std::string &wsName) const) & WorkspaceGroup::contains, (arg("self"), arg("workspace name")), "Does this group contain the named workspace?") .def("__getitem__", getItem, (arg("self"), arg("index"))) .def("__iter__", range>(&group_begin, &group_end)); diff --git a/Framework/PythonInterface/mantid/dataobjects/src/Exports/SpecialWorkspace2D.cpp b/Framework/PythonInterface/mantid/dataobjects/src/Exports/SpecialWorkspace2D.cpp index 7eee6f92137c..ac5aef6af6b2 100644 --- a/Framework/PythonInterface/mantid/dataobjects/src/Exports/SpecialWorkspace2D.cpp +++ b/Framework/PythonInterface/mantid/dataobjects/src/Exports/SpecialWorkspace2D.cpp @@ -46,10 +46,10 @@ void export_SpecialWorkspace2D() { class_, boost::noncopyable>("SpecialWorkspace2D") .def("__init__", make_constructor(&createSWS2DWithWS, default_call_policies(), (arg("workspace")))) .def("getValue", - (double(SpecialWorkspace2D::*)(const detid_t, const double) const) & SpecialWorkspace2D::getValue, + (double (SpecialWorkspace2D::*)(const detid_t, const double) const) & SpecialWorkspace2D::getValue, SpecialWorkspace2D_getValue((arg("self"), arg("detectorID")))) .def("setValue", - (void(SpecialWorkspace2D::*)(const detid_t, const double, const double)) & SpecialWorkspace2D::setValue, + (void (SpecialWorkspace2D::*)(const detid_t, const double, const double))&SpecialWorkspace2D::setValue, SpecialWorkspace2D_setValue((arg("self"), arg("detectorID"), arg("value"), arg("error")), "Set the value of the data for a given detector ID")) .def("getDetectorIDs", &SpecialWorkspace2D::getDetectorIDs, (arg("self,"), arg("workspaceIndex"))); diff --git a/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp b/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp index 54f326517504..a30fd29bce22 100644 --- a/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp +++ b/Framework/PythonInterface/mantid/geometry/src/Exports/BoundingBox.cpp @@ -41,7 +41,8 @@ void export_BoundingBox() { "Returns true if the given point is inside the object. See " "mantid.kernel.V3D") - .def("doesLineIntersect", (bool(BoundingBox::*)(const V3D &, const V3D &) const) & BoundingBox::doesLineIntersect, + .def("doesLineIntersect", + (bool (BoundingBox::*)(const V3D &, const V3D &) const) & BoundingBox::doesLineIntersect, (arg("self"), arg("startPoint"), arg("lineDir")), "Returns true if the line given by the starting point & direction " "vector passes through the box"); diff --git a/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp b/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp index 0d13d6b717d8..c10121c651e6 100644 --- a/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp +++ b/Framework/PythonInterface/mantid/geometry/src/Exports/Instrument.cpp @@ -48,21 +48,20 @@ void export_Instrument() { .def("getComponentByName", // cppcheck-suppress cstyleCast - (std::shared_ptr(Instrument::*)(const std::string &, int) const) & + (std::shared_ptr (Instrument::*)(const std::string &, int) const) & Instrument::getComponentByName, (arg("self"), arg("cname"), arg("nlevels") = 0), "Returns the named :class:`~mantid.geometry.Component`") .def("getDetector", // cppcheck-suppress cstyleCast - (std::shared_ptr(Instrument::*)(const detid_t &) const) & Instrument::getDetector, + (std::shared_ptr (Instrument::*)(const detid_t &) const) & Instrument::getDetector, (arg("self"), arg("detector_id")), "Returns the :class:`~mantid.geometry.Detector` with the given ID") .def("getNumberDetectors", &Instrument::getNumberDetectors, Instrument_getNumberDetectors((arg("self"), arg("skipMonitors") = false))) - .def("getReferenceFrame", - (std::shared_ptr(Instrument::*)()) & Instrument::getReferenceFrame, arg("self"), - return_value_policy(), + .def("getReferenceFrame", (std::shared_ptr (Instrument::*)())&Instrument::getReferenceFrame, + arg("self"), return_value_policy(), "Returns the :class:`~mantid.geometry.ReferenceFrame` attached that " "defines the instrument " "axes") diff --git a/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp b/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp index a7a5e0344f44..6617154db245 100644 --- a/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp +++ b/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp @@ -89,119 +89,119 @@ void export_UnitCell() { "degrees or radians). The optional parameter ``Unit`` controls the " "units for the angles, and can have the value of ``Degrees`` or " "``Radians``. By default ``Unit`` = ``Degrees``.")) - .def("a", (double(UnitCell::*)() const) & UnitCell::a, arg("self"), + .def("a", (double (UnitCell::*)() const) & UnitCell::a, arg("self"), "Returns the length of the :math:`a` direction of the unit cell in " ":math:`\\rm{\\AA}`.") - .def("a1", (double(UnitCell::*)() const) & UnitCell::a1, arg("self"), + .def("a1", (double (UnitCell::*)() const) & UnitCell::a1, arg("self"), "Returns the length of the :math:`a_{1} = a` direction of the unit " "cell. " "This is an alias for :func:`~mantid.geometry.UnitCell.a`. ") - .def("a2", (double(UnitCell::*)() const) & UnitCell::a2, arg("self"), + .def("a2", (double (UnitCell::*)() const) & UnitCell::a2, arg("self"), "Returns the length of the :math:`a_{2} = b` direction of the unit " "cell. " "This is an alias for :func:`~mantid.geometry.UnitCell.b`. ") - .def("a3", (double(UnitCell::*)() const) & UnitCell::a3, arg("self"), + .def("a3", (double (UnitCell::*)() const) & UnitCell::a3, arg("self"), "Returns the length of the :math:`a_{2} = c` direction of the unit " "cell. " "This is an alias for :func:`~mantid.geometry.UnitCell.c`. ") - .def("alpha", (double(UnitCell::*)() const) & UnitCell::alpha, arg("self"), + .def("alpha", (double (UnitCell::*)() const) & UnitCell::alpha, arg("self"), "Returns the :math:`\\alpha` angle for this unit cell in degrees.") - .def("alpha1", (double(UnitCell::*)() const) & UnitCell::alpha1, arg("self"), + .def("alpha1", (double (UnitCell::*)() const) & UnitCell::alpha1, arg("self"), "Returns the :math:`\\alpha_{1} = \\alpha` angle of the unit cell " "in radians. " "See also :func:`~mantid.geometry.UnitCell.alpha`. ") - .def("alpha2", (double(UnitCell::*)() const) & UnitCell::alpha2, arg("self"), + .def("alpha2", (double (UnitCell::*)() const) & UnitCell::alpha2, arg("self"), "Returns the :math:`\\alpha_{2} = \\beta` angle of the unit cell in " "radians. " "See also :func:`~mantid.geometry.UnitCell.beta`. ") - .def("alpha3", (double(UnitCell::*)() const) & UnitCell::alpha3, arg("self"), + .def("alpha3", (double (UnitCell::*)() const) & UnitCell::alpha3, arg("self"), "Returns the :math:`\\alpha_{3} = \\gamma` angle of the unit cell " "in radians. " "See also :func:`~mantid.geometry.UnitCell.gamma`. ") - .def("alphastar", (double(UnitCell::*)() const) & UnitCell::alphastar, arg("self"), + .def("alphastar", (double (UnitCell::*)() const) & UnitCell::alphastar, arg("self"), "Returns the reciprocal :math:`\\alpha` angle for this unit cell in " "degrees.") - .def("astar", (double(UnitCell::*)() const) & UnitCell::astar, arg("self"), + .def("astar", (double (UnitCell::*)() const) & UnitCell::astar, arg("self"), "Returns the length of the reciprocal :math:`a` direction for this " "unit cell in reciprocal :math:`\\rm{\\AA}`.") - .def("b", (double(UnitCell::*)() const) & UnitCell::b, arg("self"), + .def("b", (double (UnitCell::*)() const) & UnitCell::b, arg("self"), "Returns the length of the :math:`b` direction of the unit cell in " ":math:`\\rm{\\AA}`.") - .def("b1", (double(UnitCell::*)() const) & UnitCell::b1, arg("self"), + .def("b1", (double (UnitCell::*)() const) & UnitCell::b1, arg("self"), "Returns the length of the :math:`b_{1} = a^{*}` direction of the " "unit " "cell. This is an alias for " ":func:`~mantid.geometry.UnitCell.astar`. ") - .def("b2", (double(UnitCell::*)() const) & UnitCell::b2, arg("self"), + .def("b2", (double (UnitCell::*)() const) & UnitCell::b2, arg("self"), "Returns the length of the :math:`b_{2} = b^{*}` direction of the " "unit " "cell. This is an alias for " ":func:`~mantid.geometry.UnitCell.bstar`. ") - .def("b3", (double(UnitCell::*)() const) & UnitCell::b3, arg("self"), + .def("b3", (double (UnitCell::*)() const) & UnitCell::b3, arg("self"), "Returns the length of the :math:`b_{3} = c^{*}` direction of the " "unit " "cell. This is an alias for " ":func:`~mantid.geometry.UnitCell.cstar`. ") - .def("beta", (double(UnitCell::*)() const) & UnitCell::beta, arg("self"), + .def("beta", (double (UnitCell::*)() const) & UnitCell::beta, arg("self"), "Returns the :math:`\\beta` angle for this unit cell in degrees.") - .def("beta1", (double(UnitCell::*)() const) & UnitCell::beta1, arg("self"), + .def("beta1", (double (UnitCell::*)() const) & UnitCell::beta1, arg("self"), "Returns the :math:`\\beta_{1} = \\alpha^{*}` angle of the unit " "cell in " "radians. See also :func:`~mantid.geometry.UnitCell.alphastar`. ") - .def("beta2", (double(UnitCell::*)() const) & UnitCell::beta2, arg("self"), + .def("beta2", (double (UnitCell::*)() const) & UnitCell::beta2, arg("self"), "Returns the :math:`\\beta_{2} = \\beta^{*}` angle of the unit cell " "in radians. " "See also :func:`~mantid.geometry.UnitCell.betastar`. ") - .def("beta3", (double(UnitCell::*)() const) & UnitCell::beta3, arg("self"), + .def("beta3", (double (UnitCell::*)() const) & UnitCell::beta3, arg("self"), "Returns the :math:`\\beta_{3} = \\gamma^{*}` angle of the unit " "cell in " "radians. See also :func:`~mantid.geometry.UnitCell.gammastar`. ") - .def("betastar", (double(UnitCell::*)() const) & UnitCell::betastar, arg("self"), + .def("betastar", (double (UnitCell::*)() const) & UnitCell::betastar, arg("self"), "Returns the :math:`\\beta^{*}` angle for this unit cell in " "degrees.") - .def("bstar", (double(UnitCell::*)() const) & UnitCell::bstar, arg("self"), + .def("bstar", (double (UnitCell::*)() const) & UnitCell::bstar, arg("self"), "Returns the length of the :math:`b^{*}` direction for this " "unit cell in reciprocal :math:`\\rm{\\AA}`.") - .def("c", (double(UnitCell::*)() const) & UnitCell::c, arg("self"), + .def("c", (double (UnitCell::*)() const) & UnitCell::c, arg("self"), "Returns the length of the :math:`c` direction of the unit cell in " ":math:`\\rm{\\AA}`.") - .def("cstar", (double(UnitCell::*)() const) & UnitCell::cstar, arg("self"), + .def("cstar", (double (UnitCell::*)() const) & UnitCell::cstar, arg("self"), "Returns the length of the :math:`c^{*}` direction for this " "unit cell in reciprocal :math:`\\rm{\\AA}`.") - .def("d", (double(UnitCell::*)(double, double, double) const) & UnitCell::d, + .def("d", (double (UnitCell::*)(double, double, double) const) & UnitCell::d, (arg("self"), arg("h"), arg("k"), arg("l")), "Returns :math:`d`-spacing for a given H, K, L coordinate in " ":math:`\\rm{\\AA}`.") // cppcheck-suppress cstyleCast - .def("d", (double(UnitCell::*)(const V3D &) const) & UnitCell::d, (arg("self"), arg("hkl")), + .def("d", (double (UnitCell::*)(const V3D &) const) & UnitCell::d, (arg("self"), arg("hkl")), "Returns :math:`d`-spacing for a given H, K, L coordinate in " ":math:`\\rm{\\AA}`.") - .def("dstar", (double(UnitCell::*)(double, double, double) const) & UnitCell::dstar, + .def("dstar", (double (UnitCell::*)(double, double, double) const) & UnitCell::dstar, (arg("self"), arg("h"), arg("k"), arg("l")), "Returns :math:`d^{*} = 1/d` for a given H, K, L coordinate in " ":math:`\\rm{\\AA}^{3}`.") - .def("errora", (double(UnitCell::*)() const) & UnitCell::errora, arg("self"), + .def("errora", (double (UnitCell::*)() const) & UnitCell::errora, arg("self"), "Returns the error in the :math:`a` unit cell length.") - .def("errorb", (double(UnitCell::*)() const) & UnitCell::errorb, arg("self"), + .def("errorb", (double (UnitCell::*)() const) & UnitCell::errorb, arg("self"), "Returns the error in the :math:`b` unit cell length.") - .def("errorc", (double(UnitCell::*)() const) & UnitCell::errorc, arg("self"), + .def("errorc", (double (UnitCell::*)() const) & UnitCell::errorc, arg("self"), "Returns the error in the :math:`c` unit cell length.") - .def("erroralpha", (double(UnitCell::*)(int const) const) & UnitCell::erroralpha, + .def("erroralpha", (double (UnitCell::*)(int const) const) & UnitCell::erroralpha, (arg("self"), arg("Unit") = static_cast(angDegrees)), "Returns the error in the :math:`\\alpha` angle of the unit cell.") - .def("errorbeta", (double(UnitCell::*)(int const) const) & UnitCell::errorbeta, + .def("errorbeta", (double (UnitCell::*)(int const) const) & UnitCell::errorbeta, (arg("self"), arg("Unit") = static_cast(angDegrees)), "Returns the error in :math:`\\beta` angle of the unit cell.") - .def("errorgamma", (double(UnitCell::*)(int const) const) & UnitCell::errorgamma, + .def("errorgamma", (double (UnitCell::*)(int const) const) & UnitCell::errorgamma, (arg("self"), arg("Unit") = static_cast(angDegrees)), "Returns the error in :math:`\\gamma` angle of the unit cell.") - .def("gamma", (double(UnitCell::*)() const) & UnitCell::gamma, arg("self"), + .def("gamma", (double (UnitCell::*)() const) & UnitCell::gamma, arg("self"), "Returns the :math:`\\gamma` angle for this unit cell in degrees.") - .def("gammastar", (double(UnitCell::*)() const) & UnitCell::gammastar, arg("self"), + .def("gammastar", (double (UnitCell::*)() const) & UnitCell::gammastar, arg("self"), "Returns the :math:`\\gamma^{*}` angle for this unit cell in " "degrees.") .def("recAngle", - (double(UnitCell::*)(double, double, double, double, double, double, int const) const) & UnitCell::recAngle, + (double (UnitCell::*)(double, double, double, double, double, double, int const) const) & UnitCell::recAngle, (arg("self"), arg("h1"), arg("k1"), arg("l1"), arg("h2"), arg("k2"), arg("l2"), arg("Unit") = static_cast(angDegrees)), "Returns the angle in reciprocal space between vectors given by " @@ -209,71 +209,71 @@ void export_UnitCell() { "degrees or radians). The optional parameter ``Unit`` controls " "the units for the angles, and can have the value of ``Degrees`` or " "``Radians``. By default Unit = Degrees") - .def("recVolume", (double(UnitCell::*)() const) & UnitCell::recVolume, arg("self"), + .def("recVolume", (double (UnitCell::*)() const) & UnitCell::recVolume, arg("self"), "Return the volume of the reciprocal unit cell (in " ":math:`\\rm{\\AA}^{-3}`)") - .def("set", (void(UnitCell::*)(double, double, double, double, double, double, int const)) & UnitCell::set, + .def("set", (void (UnitCell::*)(double, double, double, double, double, double, int const))&UnitCell::set, (arg("self"), arg("_a"), arg("_b"), arg("_c"), arg("_alpha"), arg("_beta"), arg("_gamma"), arg("Unit") = static_cast(angDegrees)), "Set the parameters of the unit cell. Angles can be set in either" "degrees or radians using the ``Unit`` parameter (0 = degrees, " "1 = radians)") - .def("seta", (void(UnitCell::*)(double))(&UnitCell::seta), (arg("self"), arg("_a")), + .def("seta", (void (UnitCell::*)(double))(&UnitCell::seta), (arg("self"), arg("_a")), "Set the length of the :math:`a` direction of the unit cell.") - .def("setalpha", (void(UnitCell::*)(double, int const))(&UnitCell::setalpha), + .def("setalpha", (void (UnitCell::*)(double, int const))(&UnitCell::setalpha), (arg("self"), arg("_alpha"), arg("Unit") = static_cast(angDegrees)), "Set the :math:`\\alpha` angle of the unit cell. The angle can be " "set " "either in degrees or radians using the ``Unit`` parameter.") - .def("setb", (void(UnitCell::*)(double))(&UnitCell::setb), (arg("self"), arg("_b")), + .def("setb", (void (UnitCell::*)(double))(&UnitCell::setb), (arg("self"), arg("_b")), "Set the length of the :math:`b` direction of the unit cell.") - .def("setbeta", (void(UnitCell::*)(double, int const))(&UnitCell::setbeta), + .def("setbeta", (void (UnitCell::*)(double, int const))(&UnitCell::setbeta), (arg("self"), arg("_beta"), arg("Unit") = static_cast(angDegrees)), "Set the :math:`\\beta` angle of the unit cell. The angle can be " "set " "either in degrees or radians using the ``Unit`` parameter.") - .def("setc", (void(UnitCell::*)(double))(&UnitCell::setc), (arg("self"), arg("_c")), + .def("setc", (void (UnitCell::*)(double))(&UnitCell::setc), (arg("self"), arg("_c")), "Set the length of the :math:`c` direction of the unit cell.") - .def("setgamma", (void(UnitCell::*)(double, int const))(&UnitCell::setgamma), + .def("setgamma", (void (UnitCell::*)(double, int const))(&UnitCell::setgamma), (arg("self"), arg("_gamma"), arg("Unit") = static_cast(angDegrees)), "Set the :math:`\\gamma` angle of the unit cell. The angle can be " "set " "either in degrees or radians using the ``Unit`` parameter.") .def("setError", - (void(UnitCell::*)(double, double, double, double, double, double, int const)) & UnitCell::setError, + (void (UnitCell::*)(double, double, double, double, double, double, int const))&UnitCell::setError, (arg("self"), arg("_aerr"), arg("_berr"), arg("_cerr"), arg("_alphaerr"), arg("_betaerr"), arg("_gammaerr"), arg("Unit") = static_cast(angDegrees)), "Set the errors in the unit cell parameters.") - .def("setErrora", (void(UnitCell::*)(double))(&UnitCell::setErrora), (arg("self"), arg("_aerr")), + .def("setErrora", (void (UnitCell::*)(double))(&UnitCell::setErrora), (arg("self"), arg("_aerr")), "Set the error in the length of the :math:`a` direction of the unit " "cell.") - .def("setErroralpha", (void(UnitCell::*)(double, int const))(&UnitCell::setErroralpha), + .def("setErroralpha", (void (UnitCell::*)(double, int const))(&UnitCell::setErroralpha), (arg("self"), arg("_alphaerr"), arg("Unit") = static_cast(angDegrees)), "Set the error in the :math:`\\alpha` angle of the unit cell.") - .def("setErrorb", (void(UnitCell::*)(double))(&UnitCell::setErrorb), (arg("self"), arg("_berr")), + .def("setErrorb", (void (UnitCell::*)(double))(&UnitCell::setErrorb), (arg("self"), arg("_berr")), "Set the error in the length of the :math:`b` direction of the unit " "cell.") - .def("setErrorbeta", (void(UnitCell::*)(double, int const))(&UnitCell::setErrorbeta), + .def("setErrorbeta", (void (UnitCell::*)(double, int const))(&UnitCell::setErrorbeta), (arg("self"), arg("_betaerr"), arg("Unit") = static_cast(angDegrees)), "Set the error in the :math:`\\beta` angle of the unit cell using " "the " "``Unit`` parameter.") - .def("setErrorc", (void(UnitCell::*)(double))(&UnitCell::setErrorc), (arg("self"), arg("_cerr")), + .def("setErrorc", (void (UnitCell::*)(double))(&UnitCell::setErrorc), (arg("self"), arg("_cerr")), "Set the error in the length of the :math:`c` direction of the unit " "cell.") - .def("setErrorgamma", (void(UnitCell::*)(double, int const))(&UnitCell::setErrorgamma), + .def("setErrorgamma", (void (UnitCell::*)(double, int const))(&UnitCell::setErrorgamma), (arg("self"), arg("_gammaerr"), arg("Unit") = static_cast(angDegrees)), "Set the error in the :math:`\\gamma` angle of the unit cell using " "the " "``Unit`` parameter.") - .def("setModVec1", (void(UnitCell::*)(const V3D &)) & UnitCell::setModVec1, (arg("self"), arg("vec")), + .def("setModVec1", (void (UnitCell::*)(const V3D &))&UnitCell::setModVec1, (arg("self"), arg("vec")), "Set the first modulated structure vector") - .def("setModVec2", (void(UnitCell::*)(const V3D &)) & UnitCell::setModVec2, (arg("self"), arg("vec")), + .def("setModVec2", (void (UnitCell::*)(const V3D &))&UnitCell::setModVec2, (arg("self"), arg("vec")), "Set the second modulated structure vector") - .def("setModVec3", (void(UnitCell::*)(const V3D &)) & UnitCell::setModVec3, (arg("self"), arg("vec")), + .def("setModVec3", (void (UnitCell::*)(const V3D &))&UnitCell::setModVec3, (arg("self"), arg("vec")), "Set the third modulated structure vector") .def("setMaxOrder", &UnitCell::setMaxOrder, "Set the maximum order of modulated vectors searched") - .def("volume", (double(UnitCell::*)() const) & UnitCell::volume, arg("self"), + .def("volume", (double (UnitCell::*)() const) & UnitCell::volume, arg("self"), "Return the volume of the unit cell (in :math:`\\rm{\\AA}{^3}`)") .def("getG", &UnitCell::getG, arg("self"), return_readonly_numpy(), "Returns the metric tensor for the unit cell. This will return a " diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp index 44b1d909b200..95c3e789ac39 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/CompositeValidator.cpp @@ -44,6 +44,6 @@ void export_CompositeValidator() { class_, boost::noncopyable>("CompositeValidator") .def("__init__", make_constructor(&createCompositeValidator, default_call_policies(), (arg("validators"), arg("relation") = CompositeRelation::AND))) - .def("add", (void(CompositeValidator::*)(const IValidator_sptr &)) & CompositeValidator::add, + .def("add", (void (CompositeValidator::*)(const IValidator_sptr &))&CompositeValidator::add, (arg("self"), arg("other")), "Add another validator to the list"); } diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp index dc370e99b8dc..68d850579d90 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/ConfigService.cpp @@ -149,10 +149,10 @@ void export_ConfigService() { "filename") .def("getLogLevel", &ConfigServiceImpl::getLogLevel, arg("self"), "Return the string value for the log representation") - .def("setLogLevel", (void(ConfigServiceImpl::*)(int, bool)) & ConfigServiceImpl::setLogLevel, + .def("setLogLevel", (void (ConfigServiceImpl::*)(int, bool))&ConfigServiceImpl::setLogLevel, (arg("self"), arg("logLevel"), arg("quiet") = false), "Sets the log level priority for all the log channels, logLevel 1 = Fatal, 6 = information, 7 = Debug") - .def("setLogLevel", (void(ConfigServiceImpl::*)(std::string const &, bool)) & ConfigServiceImpl::setLogLevel, + .def("setLogLevel", (void (ConfigServiceImpl::*)(std::string const &, bool))&ConfigServiceImpl::setLogLevel, (arg("self"), arg("logLevel"), arg("quiet") = false), "Sets the log level priority for all the log channels. Allowed values are fatal, critical, error, warning, " "notice, information, debug, and trace.") diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp index 0af7a28ddb66..2d13df7963b3 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/FacilityInfo.cpp @@ -44,7 +44,7 @@ void export_FacilityInfo() { "Facilities.xml file") .def("instruments", // cppcheck-suppress cstyleCast - (std::vector(FacilityInfo::*)(const std::string &) const) & FacilityInfo::instruments, + (std::vector (FacilityInfo::*)(const std::string &) const) & FacilityInfo::instruments, (arg("self"), arg("technique")), "Returns a list of instruments of given technique") .def("instrument", &FacilityInfo::instrument, (arg("self"), arg("instrumentName")), return_value_policy(), "Returns the instrument with the given name"); diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp index 9264d68a4824..3f755d8fd132 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Material.cpp @@ -75,54 +75,54 @@ void export_Material() { .add_property("pressure", make_function(&Material::pressure), "Pressure") .add_property("totalAtoms", make_function(&Material::totalAtoms), "Total number of atoms") .def("__bool__", &toBool, "Returns True if any of the scattering values are non-zero") - .def("cohScatterXSection", (double(Material::*)() const)(&Material::cohScatterXSection), (arg("self")), + .def("cohScatterXSection", (double (Material::*)() const)(&Material::cohScatterXSection), (arg("self")), "Coherent Scattering Cross-Section for the given wavelength in " "barns") - .def("incohScatterXSection", (double(Material::*)() const)(&Material::incohScatterXSection), (arg("self")), + .def("incohScatterXSection", (double (Material::*)() const)(&Material::incohScatterXSection), (arg("self")), "Incoherent Scattering Cross-Section for the given wavelength in " "barns") - .def("totalScatterXSection", (double(Material::*)() const)(&Material::totalScatterXSection), (arg("self")), + .def("totalScatterXSection", (double (Material::*)() const)(&Material::totalScatterXSection), (arg("self")), "Total Scattering Cross-Section for the given wavelength in barns") - .def("absorbXSection", (double(Material::*)(double) const)(&Material::absorbXSection), + .def("absorbXSection", (double (Material::*)(double) const)(&Material::absorbXSection), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Absorption Cross-Section for the given wavelength in barns") - .def("cohScatterLength", (double(Material::*)(double) const)(&Material::cohScatterLength), + .def("cohScatterLength", (double (Material::*)(double) const)(&Material::cohScatterLength), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Coherent Scattering Length for the given wavelength in fm") - .def("incohScatterLength", (double(Material::*)(double) const)(&Material::incohScatterLength), + .def("incohScatterLength", (double (Material::*)(double) const)(&Material::incohScatterLength), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Incoherent Scattering Length for the given wavelength in fm") - .def("totalScatterLength", (double(Material::*)(double) const)(&Material::totalScatterLength), + .def("totalScatterLength", (double (Material::*)(double) const)(&Material::totalScatterLength), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Total Scattering Length for the given wavelength in fm") - .def("cohScatterLengthReal", (double(Material::*)(double) const)(&Material::cohScatterLengthReal), + .def("cohScatterLengthReal", (double (Material::*)(double) const)(&Material::cohScatterLengthReal), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Real part of Coherent Scattering Length for the given wavelength " "in fm") - .def("cohScatterLengthImg", (double(Material::*)(double) const)(&Material::cohScatterLengthImg), + .def("cohScatterLengthImg", (double (Material::*)(double) const)(&Material::cohScatterLengthImg), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Imaginary part of Coherent Scattering Length for the given " "wavelength " "in fm") - .def("incohScatterLengthReal", (double(Material::*)(double) const)(&Material::incohScatterLengthReal), + .def("incohScatterLengthReal", (double (Material::*)(double) const)(&Material::incohScatterLengthReal), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Real part of Incoherent Scattering Length for the given wavelength " "in fm") - .def("incohScatterLengthImg", (double(Material::*)(double) const)(&Material::incohScatterLengthImg), + .def("incohScatterLengthImg", (double (Material::*)(double) const)(&Material::incohScatterLengthImg), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Imaginary part of Incoherent Scattering Length for the given " "wavelength " "in fm") - .def("cohScatterLengthSqrd", (double(Material::*)(double) const)(&Material::cohScatterLengthSqrd), + .def("cohScatterLengthSqrd", (double (Material::*)(double) const)(&Material::cohScatterLengthSqrd), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Coherent Scattering Length Squared ^2 for the given wavelength " "in fm^2") - .def("incohScatterLengthSqrd", (double(Material::*)(double) const)(&Material::incohScatterLengthSqrd), + .def("incohScatterLengthSqrd", (double (Material::*)(double) const)(&Material::incohScatterLengthSqrd), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Incoherent Scattering Length Squared ^2 for the given " "wavelength in fm^2") - .def("totalScatterLengthSqrd", (double(Material::*)(double) const)(&Material::totalScatterLengthSqrd), + .def("totalScatterLengthSqrd", (double (Material::*)(double) const)(&Material::totalScatterLengthSqrd), (arg("self"), arg("lambda") = static_cast(NeutronAtom::ReferenceLambda)), "Total Scattering Length Squared for the given wavelength in " "fm^2") diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp index c91dc0787ca7..4fc5c6bc6106 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/ProgressBase.cpp @@ -12,19 +12,19 @@ using namespace boost::python; void export_ProgressBase() { class_("ProgressBase", no_init) - .def("report", (void(ProgressBase::*)()) & ProgressBase::report, arg("self"), + .def("report", (void (ProgressBase::*)())&ProgressBase::report, arg("self"), "Increment the progress by 1 and report with no message") - .def("report", (void(ProgressBase::*)(const std::string &)) & ProgressBase::report, (arg("self"), arg("msg")), + .def("report", (void (ProgressBase::*)(const std::string &))&ProgressBase::report, (arg("self"), arg("msg")), "Increment the progress by 1 and report along with " "the given message") - .def("report", (void(ProgressBase::*)(int64_t, const std::string &)) & ProgressBase::report, + .def("report", (void (ProgressBase::*)(int64_t, const std::string &))&ProgressBase::report, (arg("self"), arg("i"), arg("msg")), "Set the progress to given amount and " "report along with the given message") - .def("reportIncrement", (void(ProgressBase::*)(size_t, const std::string &)) & ProgressBase::reportIncrement, + .def("reportIncrement", (void (ProgressBase::*)(size_t, const std::string &))&ProgressBase::reportIncrement, (arg("self"), arg("i"), arg("msg")), "Increment the progress by given amount and " "report along with the given message") diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp index fd4734d7e91c..5c69952ea24a 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Quat.cpp @@ -61,7 +61,7 @@ void export_Quat() { .def("__imul__", &Quat::operator*=, boost::python::return_self<>(), (arg("self"), arg("other"))) .def("__eq__", &Quat::operator==, (arg("self"), arg("other"))) .def("__ne__", &Quat::operator!=, (arg("self"), arg("other"))) - .def("__getitem__", (double(Quat::*)(int) const) & Quat::operator[], (arg("self"), arg("index"))) + .def("__getitem__", (double (Quat::*)(int) const) & Quat::operator[], (arg("self"), arg("index"))) .def("__str__", &Quat::toString, arg("self")); //.def(boost::python::self_ns::str(self)); } diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/TimeROI.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/TimeROI.cpp index 82d544738a20..2a271814ebea 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/TimeROI.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/TimeROI.cpp @@ -28,10 +28,10 @@ void export_TimeROI() { register_ptr_to_python(); class_("TimeROI", no_init) - .def("durationInSeconds", (double(TimeROI::*)() const) & TimeROI::durationInSeconds, arg("self"), + .def("durationInSeconds", (double (TimeROI::*)() const) & TimeROI::durationInSeconds, arg("self"), "Duration of the whole TimeROI") .def("durationInSeconds", - (double(TimeROI::*)(const DateAndTime &, const DateAndTime &) const) & TimeROI::durationInSeconds, + (double (TimeROI::*)(const DateAndTime &, const DateAndTime &) const) & TimeROI::durationInSeconds, (arg("self"), arg("startTime"), arg("stopTime")), "Duration of the TimeROI between startTime and stopTime") .def("update_union", &TimeROI::update_union, (arg("self"), arg("other")), return_value_policy(), diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp index 869377417a45..15c086619f3c 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/TimeSeriesProperty.cpp @@ -91,19 +91,19 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(timeAverageValue_Overloads, timeAverageVa .add_property("times", make_function(&Mantid::Kernel::TimeSeriesProperty::timesAsVector, \ return_value_policy())) \ .add_property("filtered_value", \ - make_function((std::vector(TimeSeriesProperty::*)() const) & \ + make_function((std::vector (TimeSeriesProperty::*)() const) & \ Mantid::Kernel::TimeSeriesProperty::filteredValuesAsVector, \ return_value_policy())) \ .add_property("filtered_times", \ - make_function((std::vector(TimeSeriesProperty::*)() const) & \ + make_function((std::vector (TimeSeriesProperty::*)() const) & \ Mantid::Kernel::TimeSeriesProperty::filteredTimesAsVector, \ return_value_policy())) \ .def("addValue", \ - (void(TimeSeriesProperty::*)(const DateAndTime &, const TYPE &)) & \ + (void (TimeSeriesProperty::*)(const DateAndTime &, const TYPE &)) & \ TimeSeriesProperty::addValue, \ (arg("self"), arg("time"), arg("value"))) \ .def("addValue", \ - (void(TimeSeriesProperty::*)(const std::string &, const TYPE &)) & \ + (void (TimeSeriesProperty::*)(const std::string &, const TYPE &)) & \ TimeSeriesProperty::addValue, \ (arg("self"), arg("time"), arg("value"))) \ .def("addValue", &addPyTimeValue, (arg("self"), arg("time"), arg("value"))) \ @@ -112,10 +112,10 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(timeAverageValue_Overloads, timeAverageVa .def("size", &TimeSeriesProperty::size, arg("self")) \ .def("firstTime", &TimeSeriesProperty::firstTime, arg("self"), \ "returns :class:`mantid.kernel.DateAndTime`") \ - .def("firstValue", (TYPE(TimeSeriesProperty::*)() const) & TimeSeriesProperty::firstValue, \ + .def("firstValue", (TYPE (TimeSeriesProperty::*)() const) & TimeSeriesProperty::firstValue, \ arg("self")) \ .def("lastTime", &TimeSeriesProperty::lastTime, arg("self"), "returns :class:`mantid.kernel.DateAndTime`") \ - .def("lastValue", (TYPE(TimeSeriesProperty::*)() const) & TimeSeriesProperty::lastValue, \ + .def("lastValue", (TYPE (TimeSeriesProperty::*)() const) & TimeSeriesProperty::lastValue, \ arg("self")) \ .def("nthValue", &TimeSeriesProperty::nthValue, (arg("self"), arg("index"))) \ .def("nthTime", &TimeSeriesProperty::nthTime, (arg("self"), arg("index")), \ diff --git a/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp b/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp index 2e99b35eae94..db13019945ce 100644 --- a/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp +++ b/Framework/PythonInterface/mantid/kernel/src/Exports/Units.cpp @@ -33,7 +33,7 @@ void export_Label() { .def("setLabel", &setLabelFromStdString, (arg("self"), arg("caption"), arg("label")), "Set the caption (e.g.Temperature) & label (K) on the unit") - .def("setLabel", (void(Label::*)(const std::string &, const UnitLabel &)) & Label::setLabel, + .def("setLabel", (void (Label::*)(const std::string &, const UnitLabel &))&Label::setLabel, (arg("self"), arg("caption"), arg("label")), "Set the caption (e.g.Temperature) " "& label (K) on the unit, See the " diff --git a/Framework/PythonInterface/test/testhelpers/WorkspaceCreationHelper/WorkspaceCreationHelperModule.cpp b/Framework/PythonInterface/test/testhelpers/WorkspaceCreationHelper/WorkspaceCreationHelperModule.cpp index 3e682fe3f800..48c3f4561f0d 100644 --- a/Framework/PythonInterface/test/testhelpers/WorkspaceCreationHelper/WorkspaceCreationHelperModule.cpp +++ b/Framework/PythonInterface/test/testhelpers/WorkspaceCreationHelper/WorkspaceCreationHelperModule.cpp @@ -68,24 +68,24 @@ BOOST_PYTHON_MODULE(_WorkspaceCreationHelper) { def("create2DWorkspace123WithMaskedBin", reinterpret_cast(&create2DWorkspace123WithMaskedBin)); def("create2DWorkspaceWithGeographicalDetectors", - (Workspace2D_sptr(*)(const int, const int, const double, const int, const double, const double, - const std::string &, const std::string &))create2DWorkspaceWithGeographicalDetectors, + (Workspace2D_sptr (*)(const int, const int, const double, const int, const double, const double, + const std::string &, const std::string &))create2DWorkspaceWithGeographicalDetectors, create2DWorkspaceWithGeographicalDetectors_overloads()[return_value_policy>()]); //=================================== Event Workspaces //=================================== - def("createEventWorkspace", (EventWorkspace_sptr(*)())createEventWorkspace, + def("createEventWorkspace", (EventWorkspace_sptr (*)())createEventWorkspace, return_value_policy>()); def("createEventWorkspace2", &createEventWorkspace2, return_value_policy>()); def("createEventWorkspaceWithNonUniformInstrument", - (EventWorkspace_sptr(*)(const int, const bool))createEventWorkspaceWithNonUniformInstrument, + (EventWorkspace_sptr (*)(const int, const bool))createEventWorkspaceWithNonUniformInstrument, return_value_policy>()); //=================================== Peak Workspaces //=================================== - def("createPeaksWorkspace", (PeaksWorkspace_sptr(*)(const int, const bool))createPeaksWorkspace, + def("createPeaksWorkspace", (PeaksWorkspace_sptr (*)(const int, const bool))createPeaksWorkspace, (arg("numPeaks") = 2, arg("createOrientedLattice") = false), return_value_policy>()); //=================================== MD Workspaces diff --git a/buildconfig/CMake/CppCheck_Suppressions.txt.in b/buildconfig/CMake/CppCheck_Suppressions.txt.in index 1c78a5ba4e60..85952cbe4d01 100644 --- a/buildconfig/CMake/CppCheck_Suppressions.txt.in +++ b/buildconfig/CMake/CppCheck_Suppressions.txt.in @@ -545,7 +545,7 @@ cstyleCast:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/ unusedScopedObject:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/IMaskWorkspace.cpp:45 unusedScopedObject:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/ISplittersWorkspace.cpp:25 cstyleCast:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/MDGeometry.cpp:96 -cstyleCast:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp:36 +cstyleCast:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/MultipleExperimentInfos.cpp:37 syntaxError:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/Run.cpp:258 syntaxError:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/Sample.cpp:81 syntaxError:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/api/src/Exports/SpectrumDefinition.cpp:40