Commit f044de9c authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Reformat codebase with clang-format 6.0

parent 1e924cdb
......@@ -30,9 +30,9 @@ using namespace Mantid::Algorithms;
using namespace Mantid::DataObjects;
using namespace Mantid::Geometry;
using Mantid::HistogramData::BinEdges;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::CountVariances;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::Points;
namespace {
......
......@@ -19,9 +19,9 @@
#include "MantidTestHelpers/WorkspaceCreationHelper.h"
#include <cmath>
using Mantid::Algorithms::CreateUserDefinedBackground;
using Mantid::API::ITableWorkspace_sptr;
using Mantid::API::MatrixWorkspace_sptr;
using Mantid::Algorithms::CreateUserDefinedBackground;
namespace {
// Gaussian
......
......@@ -13,10 +13,10 @@
#include "MantidAlgorithms/CreateSampleWorkspace.h"
#include "MantidAlgorithms/DeadTimeCorrection.h"
using Mantid::API::FrameworkManager;
using Mantid::API::MatrixWorkspace_sptr;
using Mantid::Algorithms::CreateSampleWorkspace;
using Mantid::Algorithms::DeadTimeCorrection;
using Mantid::API::FrameworkManager;
using Mantid::API::MatrixWorkspace_sptr;
namespace {
MatrixWorkspace_sptr createWorkspace(const int nPixelsPerBank = 3,
......
......@@ -33,8 +33,8 @@ using namespace Mantid::API;
using namespace Mantid::Algorithms;
using namespace Mantid::DataObjects;
using Mantid::HistogramData::BinEdges;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
class DetectorEfficiencyVariationTest : public CxxTest::TestSuite {
public:
......@@ -118,13 +118,12 @@ public:
BinEdges x(NXs, HistogramData::LinearGenerator(0.0, 1000.0));
// random numbers that will be copied into the workspace spectra
const short ySize = NXs - 1;
double yArray[ySize] = {0.2, 4, 50, 14, 0.001, 0, 0,
0, 1, 0, 1e-3, 15, 4, 0,
9, 0.001, 2e-10, 1, 0, 8, 0,
7, 1e-4, 1, 7, 11, 101, 6,
53, 0.345324, 3444, 13958, 0.8}; // NXs = 34 so
// we need that
// many numbers
double yArray[ySize] = {
0.2, 4, 50, 14, 0.001, 0, 0, 0, 1, 0, 1e-3, 15,
4, 0, 9, 0.001, 2e-10, 1, 0, 8, 0, 7, 1e-4, 1,
7, 11, 101, 6, 53, 0.345324, 3444, 13958, 0.8}; // NXs = 34 so
// we need that
// many numbers
// the error values aren't used and aren't tested so we'll use some basic
// data
......
......@@ -24,8 +24,8 @@ using namespace Mantid::Kernel;
using namespace Mantid::Algorithms;
using namespace Mantid::DataObjects;
using namespace Mantid::Geometry;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
class FindDeadDetectorsTest : public CxxTest::TestSuite {
public:
......
......@@ -23,8 +23,8 @@ using namespace Mantid::API;
using namespace Mantid::DataObjects;
using namespace Mantid::Geometry;
using namespace Mantid::Kernel;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::Types::Core::DateAndTime;
using Mantid::Types::Event::TofEvent;
......
......@@ -30,8 +30,8 @@ using namespace Mantid::DataObjects;
using namespace std;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Points;
class FindPeaksTest : public CxxTest::TestSuite {
......
......@@ -26,8 +26,8 @@ using namespace Mantid::DataObjects;
using namespace std;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Points;
class FitPeakTest : public CxxTest::TestSuite {
......
......@@ -29,8 +29,8 @@ using namespace Mantid::DataObjects;
using namespace std;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Points;
class FitPeaksTest : public CxxTest::TestSuite {
......
......@@ -19,9 +19,9 @@
using namespace Mantid::Kernel;
using namespace Mantid::API;
using Mantid::MantidVecPtr;
using Mantid::HistogramData::BinEdges;
using Mantid::HistogramData::LinearGenerator;
using Mantid::MantidVecPtr;
namespace GetEiTestHelper {
IAlgorithm_sptr runGetEiUsingTestMonitors(const std::string &inputWS,
......
......@@ -19,9 +19,9 @@
using namespace Mantid::Kernel;
using namespace Mantid::API;
using Mantid::MantidVecPtr;
using Mantid::HistogramData::BinEdges;
using Mantid::HistogramData::LinearGenerator;
using Mantid::MantidVecPtr;
class GetEiV1Test : public CxxTest::TestSuite {
public:
......
......@@ -38,9 +38,9 @@ public:
}
void testInit() {
using Mantid::Algorithms::GroupWorkspaces;
using Mantid::API::WorkspaceGroup;
using Mantid::API::WorkspaceProperty;
using Mantid::Algorithms::GroupWorkspaces;
GroupWorkspaces alg;
TS_ASSERT_THROWS_NOTHING(alg.initialize());
......
......@@ -27,8 +27,8 @@ using namespace Mantid::DataObjects;
using namespace Mantid::DataHandling;
using namespace std;
using Mantid::HistogramData::BinEdges;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
namespace He3TubeEffeciencyHelper {
void createWorkspace2DInADS(const std::string inputWS) {
......
......@@ -15,10 +15,10 @@
#include "MantidAlgorithms/CreateWorkspace.h"
#include "MantidAlgorithms/MaskBinsIf.h"
using Mantid::API::MatrixWorkspace_sptr;
using Mantid::Algorithms::CreateSampleWorkspace;
using Mantid::Algorithms::CreateWorkspace;
using Mantid::Algorithms::MaskBinsIf;
using Mantid::API::MatrixWorkspace_sptr;
class MaskBinsIfTest : public CxxTest::TestSuite {
private:
......
......@@ -15,9 +15,9 @@
#include <boost/make_shared.hpp>
#include <cmath>
using Mantid::Algorithms::MaxentSpace_sptr;
using Mantid::Algorithms::MaxentSpaceComplex;
using Mantid::Algorithms::MaxentSpaceReal;
using Mantid::Algorithms::MaxentSpace_sptr;
using Mantid::Algorithms::MaxentTransformFourier;
class MaxentTransformFourierTest : public CxxTest::TestSuite {
......
......@@ -16,10 +16,10 @@
#include <boost/shared_ptr.hpp>
#include <cmath>
using Mantid::Algorithms::MaxentSpace_sptr;
using Mantid::Algorithms::MaxentSpaceComplex;
using Mantid::Algorithms::MaxentSpaceComplex_sptr;
using Mantid::Algorithms::MaxentSpaceReal;
using Mantid::Algorithms::MaxentSpace_sptr;
using Mantid::Algorithms::MaxentTransformFourier;
using Mantid::Algorithms::MaxentTransformMultiFourier;
......
......@@ -19,10 +19,10 @@
#include "MantidTestHelpers/WorkspaceCreationHelper.h"
using namespace Mantid::API;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::MantidVec;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Points;
using Mantid::MantidVec;
/**
* This is a test class that exists to test the method validateInputs()
......
......@@ -16,9 +16,9 @@
#include "MantidTestHelpers/ComponentCreationHelper.h"
#include "MantidTestHelpers/WorkspaceCreationHelper.h"
using Mantid::Algorithms::MayersSampleCorrection;
using Mantid::API::IAlgorithm_sptr;
using Mantid::API::MatrixWorkspace_sptr;
using Mantid::Algorithms::MayersSampleCorrection;
class MayersSampleCorrectionTest : public CxxTest::TestSuite {
public:
......
......@@ -27,8 +27,8 @@ using namespace Mantid::API;
using namespace Mantid::Algorithms;
using namespace Mantid::DataObjects;
using Mantid::HistogramData::BinEdges;
using Mantid::HistogramData::CountStandardDeviations;
using Mantid::HistogramData::Counts;
using Mantid::HistogramData::CountStandardDeviations;
const int THEMASKED(40);
const int SAVEDBYERRORBAR(143);
......
......@@ -354,8 +354,8 @@ private:
}
Mantid::API::IAlgorithm_sptr createAlgorithm() {
using Mantid::API::IAlgorithm;
using Mantid::Algorithms::MonteCarloAbsorption;
using Mantid::API::IAlgorithm;
auto alg = boost::make_shared<MonteCarloAbsorption>();
alg->initialize();
alg->setRethrows(true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment