Skip to content
Snippets Groups Projects
Commit a24db83c authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Refs #13872 Disbale clang format for diagnostic-off

parent cc53bf6b
No related merge requests found
...@@ -11,6 +11,9 @@ MDFramesToSpecialCoordinateSystem::MDFramesToSpecialCoordinateSystem() {} ...@@ -11,6 +11,9 @@ MDFramesToSpecialCoordinateSystem::MDFramesToSpecialCoordinateSystem() {}
MDFramesToSpecialCoordinateSystem::~MDFramesToSpecialCoordinateSystem() {} MDFramesToSpecialCoordinateSystem::~MDFramesToSpecialCoordinateSystem() {}
// Need to turn off the warnings because of boost optional being used. // Need to turn off the warnings because of boost optional being used.
// clang-format off
GCC_DIAG_OFF(cast-qual)
// clang-format on
GCC_DIAG_OFF(maybe-uninitialized) GCC_DIAG_OFF(maybe-uninitialized)
/** /**
* Get the Special Coordinate System based on the MDFrame information. * Get the Special Coordinate System based on the MDFrame information.
...@@ -61,6 +64,9 @@ boost::optional<Mantid::Kernel::SpecialCoordinateSystem> ...@@ -61,6 +64,9 @@ boost::optional<Mantid::Kernel::SpecialCoordinateSystem>
return output; return output;
} }
GCC_DIAG_ON(maybe-uninitialized) GCC_DIAG_ON(maybe-uninitialized)
// clang-format off
GCC_DIAG_ON(cast-qual)
// clang-format on
/** /**
* Make sure that the QFrame types are the same. * Make sure that the QFrame types are the same.
......
...@@ -1214,10 +1214,12 @@ uint64_t MDHistoWorkspace::sumNContribEvents() const { ...@@ -1214,10 +1214,12 @@ uint64_t MDHistoWorkspace::sumNContribEvents() const {
return sum; return sum;
} }
/** /**
* Get the Q frame system (if any) to use. * Get the Q frame system (if any) to use.
*/ */
// clang-format off
GCC_DIAG_OFF(cast-qual)
// clang-format on
GCC_DIAG_OFF(strict-aliasing) GCC_DIAG_OFF(strict-aliasing)
Kernel::SpecialCoordinateSystem Kernel::SpecialCoordinateSystem
MDHistoWorkspace::getSpecialCoordinateSystem() const { MDHistoWorkspace::getSpecialCoordinateSystem() const {
...@@ -1231,7 +1233,9 @@ MDHistoWorkspace::getSpecialCoordinateSystem() const { ...@@ -1231,7 +1233,9 @@ MDHistoWorkspace::getSpecialCoordinateSystem() const {
return coordinates; return coordinates;
} }
GCC_DIAG_ON(strict-aliasing) GCC_DIAG_ON(strict-aliasing)
// clang-format off
GCC_DIAG_ON(cast-qual)
// clang-format on
/** /**
Set the special coordinate system (if any) to use. Set the special coordinate system (if any) to use.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment