Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
f044de9c
Commit
f044de9c
authored
Nov 20, 2019
by
Martyn Gigg
Browse files
Reformat codebase with clang-format 6.0
parent
1e924cdb
Changes
219
Hide whitespace changes
Inline
Side-by-side
Framework/API/inc/MantidAPI/FileProperty.h
View file @
f044de9c
...
...
@@ -126,7 +126,7 @@ private:
#pragma warning( \
pop) // Re-enable the warning about multiple assignment operators
#endif
}
}
// namespace API
}
// namespace Mantid
#endif // MANTID_API_FILEPROPERTY_H_
Framework/API/inc/MantidAPI/SpectrumInfoItem.h
View file @
f044de9c
...
...
@@ -12,8 +12,8 @@
#include
"MantidTypes/SpectrumDefinition.h"
#include
<type_traits>
using
Mantid
::
Kernel
::
V3D
;
using
Mantid
::
SpectrumDefinition
;
using
Mantid
::
Kernel
::
V3D
;
namespace
Mantid
{
namespace
API
{
...
...
Framework/API/src/SpectrumInfo.cpp
View file @
f044de9c
...
...
@@ -99,12 +99,12 @@ double SpectrumInfo::signedTwoTheta(const size_t index) const {
return
signedTwoTheta
/
static_cast
<
double
>
(
spectrumDefinition
(
index
).
size
());
}
/** Returns the out-of-plane angle in radians (angle w.r.t. to
vecPointingHorizontal
* direction).
/** Returns the out-of-plane angle in radians (angle w.r.t. to
*
vecPointingHorizontal
direction).
*
* Throws an exception if the spectrum is a monitor.
*/
double
SpectrumInfo
::
azimuthal
(
const
size_t
index
)
const
{
*/
double
SpectrumInfo
::
azimuthal
(
const
size_t
index
)
const
{
double
phi
{
0.0
};
for
(
const
auto
&
detIndex
:
checkAndGetSpectrumDefinition
(
index
))
phi
+=
m_detectorInfo
.
azimuthal
(
detIndex
);
...
...
Framework/API/src/WorkspaceHistory.cpp
View file @
f044de9c
...
...
@@ -23,8 +23,8 @@
#include
"Poco/DateTime.h"
#include
<Poco/DateTimeParser.h>
using
Mantid
::
Kernel
::
EnvironmentHistory
;
using
boost
::
algorithm
::
split
;
using
Mantid
::
Kernel
::
EnvironmentHistory
;
namespace
Mantid
{
namespace
API
{
...
...
Framework/API/test/FunctionParameterDecoratorTest.h
View file @
f044de9c
...
...
@@ -23,8 +23,8 @@
using
namespace
Mantid
::
API
;
using
namespace
Mantid
::
Kernel
;
using
::
testing
::
Mock
;
using
::
testing
::
_
;
using
::
testing
::
Mock
;
class
FunctionParameterDecoratorTest
;
...
...
Framework/API/test/ILatticeFunctionTest.h
View file @
f044de9c
...
...
@@ -19,9 +19,9 @@ using Mantid::Kernel::V3D;
using
namespace
Mantid
::
API
;
using
::
testing
::
_
;
using
::
testing
::
Mock
;
using
::
testing
::
Return
;
using
::
testing
::
_
;
class
ILatticeFunctionTest
:
public
CxxTest
::
TestSuite
{
public:
...
...
Framework/API/test/LatticeDomainTest.h
View file @
f044de9c
...
...
@@ -13,8 +13,8 @@
#include
"MantidKernel/Exception.h"
using
Mantid
::
API
::
LatticeDomain
;
using
Mantid
::
Kernel
::
Exception
::
IndexError
;
using
Mantid
::
Kernel
::
V3D
;
using
Mantid
::
Kernel
::
Exception
::
IndexError
;
using
namespace
Mantid
::
API
;
...
...
Framework/API/test/PropertyManagerHelper.h
View file @
f044de9c
...
...
@@ -16,8 +16,8 @@ class PropertyManagerHelper : public Mantid::Kernel::PropertyManager {
public:
PropertyManagerHelper
()
:
PropertyManager
()
{}
using
IPropertyManager
::
TypedValue
;
using
IPropertyManager
::
getValue
;
using
IPropertyManager
::
TypedValue
;
using
PropertyManager
::
declareProperty
;
using
PropertyManager
::
setProperty
;
};
...
...
Framework/Algorithms/src/ChangeTimeZero.cpp
View file @
f044de9c
...
...
@@ -29,8 +29,8 @@ DECLARE_ALGORITHM(ChangeTimeZero)
using
namespace
Mantid
::
Kernel
;
using
namespace
Mantid
::
API
;
using
Types
::
Core
::
DateAndTime
;
using
std
::
size_t
;
using
Types
::
Core
::
DateAndTime
;
namespace
{
/**
...
...
Framework/Algorithms/src/LineProfile.cpp
View file @
f044de9c
...
...
@@ -34,9 +34,9 @@ using Mantid::API::MatrixWorkspace;
using
Mantid
::
API
::
MatrixWorkspace_const_sptr
;
using
Mantid
::
API
::
MatrixWorkspace_sptr
;
using
Mantid
::
API
::
WorkspaceProperty
;
using
Mantid
::
DataObjects
::
create
;
using
Mantid
::
DataObjects
::
Workspace2D
;
using
Mantid
::
DataObjects
::
Workspace2D_sptr
;
using
Mantid
::
DataObjects
::
create
;
using
Mantid
::
HistogramData
::
HistogramBuilder
;
using
Mantid
::
Kernel
::
BoundedValidator
;
using
Mantid
::
Kernel
::
CompositeValidator
;
...
...
Framework/Algorithms/src/Rebin.cpp
View file @
f044de9c
...
...
@@ -31,10 +31,10 @@ using DataObjects::EventWorkspace;
using
DataObjects
::
EventWorkspace_const_sptr
;
using
DataObjects
::
EventWorkspace_sptr
;
using
HistogramData
::
BinEdges
;
using
HistogramData
::
Exception
::
InvalidBinEdgesError
;
using
HistogramData
::
Frequencies
;
using
HistogramData
::
FrequencyStandardDeviations
;
using
HistogramData
::
Histogram
;
using
HistogramData
::
Exception
::
InvalidBinEdgesError
;
//---------------------------------------------------------------------------------------------
// Public static methods
...
...
Framework/Algorithms/src/RebinToWorkspace.cpp
View file @
f044de9c
...
...
@@ -18,8 +18,8 @@ namespace Algorithms {
using
namespace
API
;
using
DataObjects
::
EventWorkspace
;
using
DataObjects
::
EventWorkspace_const_sptr
;
using
HistogramData
::
CountStandardDeviations
;
using
HistogramData
::
Counts
;
using
HistogramData
::
CountStandardDeviations
;
// Register the algorithm into the AlgorithmFactory
DECLARE_ALGORITHM
(
RebinToWorkspace
)
...
...
Framework/Algorithms/src/SampleCorrections/MayersSampleCorrectionStrategy.cpp
View file @
f044de9c
...
...
@@ -17,9 +17,9 @@
using
Mantid
::
Kernel
::
ChebyshevPolyFit
;
using
Mantid
::
Kernel
::
ChebyshevSeries
;
using
Mantid
::
Kernel
::
getStatistics
;
using
Mantid
::
Kernel
::
MersenneTwister
;
using
Mantid
::
Kernel
::
StatOptions
;
using
Mantid
::
Kernel
::
getStatistics
;
using
std
::
pow
;
namespace
{
...
...
Framework/Algorithms/src/SofQWNormalisedPolygon.cpp
View file @
f044de9c
...
...
@@ -28,8 +28,8 @@
#include
<boost/math/special_functions/pow.hpp>
using
Mantid
::
Geometry
::
rad2deg
;
using
boost
::
math
::
pow
;
using
Mantid
::
Geometry
::
rad2deg
;
namespace
{
/**
...
...
Framework/Algorithms/src/UpdateScriptRepository.cpp
View file @
f044de9c
...
...
@@ -41,8 +41,8 @@ void UpdateScriptRepository::init() {}
void
UpdateScriptRepository
::
exec
()
{
// TODO Auto-generated execute stub
using
Mantid
::
API
::
ScriptRepository
;
using
Mantid
::
API
::
ScriptRepositoryFactory
;
using
Mantid
::
API
::
ScriptRepository_sptr
;
using
Mantid
::
API
::
ScriptRepositoryFactory
;
auto
repo_ptr
=
ScriptRepositoryFactory
::
Instance
().
create
(
"ScriptRepositoryImpl"
);
...
...
Framework/Algorithms/test/CalculateDynamicRangeTest.h
View file @
f044de9c
...
...
@@ -19,13 +19,13 @@
#include
<boost/cast.hpp>
using
Mantid
::
Algorithms
::
CalculateDynamicRange
;
using
Mantid
::
Algorithms
::
CreateSampleWorkspace
;
using
Mantid
::
API
::
FrameworkManager
;
using
Mantid
::
API
::
MatrixWorkspace
;
using
Mantid
::
API
::
MatrixWorkspace_sptr
;
using
Mantid
::
API
::
Workspace
;
using
Mantid
::
API
::
Workspace_sptr
;
using
Mantid
::
Algorithms
::
CalculateDynamicRange
;
using
Mantid
::
Algorithms
::
CreateSampleWorkspace
;
using
Mantid
::
DataHandling
::
MaskDetectorsInShape
;
using
Mantid
::
DataHandling
::
MoveInstrumentComponent
;
...
...
Framework/Algorithms/test/CalculatePlaczekSelfScatteringTest.h
View file @
f044de9c
...
...
@@ -18,11 +18,11 @@
#include
"MantidTestHelpers/WorkspaceCreationHelper.h"
#include
<cxxtest/TestSuite.h>
using
Mantid
::
API
::
AlgorithmManager
;
using
Mantid
::
MantidVec
;
using
Mantid
::
Algorithms
::
CalculatePlaczekSelfScattering
;
using
Mantid
::
API
::
Algorithm_sptr
;
using
Mantid
::
API
::
AlgorithmManager
;
using
Mantid
::
API
::
MatrixWorkspace_sptr
;
using
Mantid
::
Algorithms
::
CalculatePlaczekSelfScattering
;
using
Mantid
::
MantidVec
;
// generate incident spectrum data
std
::
vector
<
double
>
...
...
Framework/Algorithms/test/ClearMaskFlagTest.h
View file @
f044de9c
...
...
@@ -21,12 +21,12 @@
using
namespace
Mantid
::
API
;
using
namespace
Mantid
::
DataObjects
;
using
namespace
Mantid
::
Geometry
;
using
Mantid
::
MantidVecPtr
;
using
Mantid
::
Algorithms
::
ClearMaskFlag
;
using
Mantid
::
HistogramData
::
BinEdges
;
using
Mantid
::
HistogramData
::
CountStandardDeviations
;
using
Mantid
::
HistogramData
::
Counts
;
using
Mantid
::
HistogramData
::
CountStandardDeviations
;
using
Mantid
::
HistogramData
::
LinearGenerator
;
using
Mantid
::
MantidVecPtr
;
class
ClearMaskFlagTest
:
public
CxxTest
::
TestSuite
{
public:
...
...
Framework/Algorithms/test/ConvertToHistogramTest.h
View file @
f044de9c
...
...
@@ -13,16 +13,16 @@
#include
"MantidTestHelpers/WorkspaceCreationHelper.h"
using
Mantid
::
MantidVecPtr
;
using
Mantid
::
Algorithms
::
ConvertToHistogram
;
using
Mantid
::
API
::
IAlgorithm_sptr
;
using
Mantid
::
API
::
MatrixWorkspace
;
using
Mantid
::
API
::
MatrixWorkspace_sptr
;
using
Mantid
::
Algorithms
::
ConvertToHistogram
;
using
Mantid
::
DataObjects
::
Workspace2D_sptr
;
using
Mantid
::
HistogramData
::
HistogramDx
;
using
Mantid
::
HistogramData
::
LinearGenerator
;
using
Mantid
::
HistogramData
::
Points
;
using
Mantid
::
Kernel
::
make_cow
;
using
Mantid
::
MantidVecPtr
;
class
ConvertToHistogramTest
:
public
CxxTest
::
TestSuite
{
...
...
Framework/Algorithms/test/ConvertToPointDataTest.h
View file @
f044de9c
...
...
@@ -14,10 +14,10 @@
#include
"MantidKernel/Unit.h"
#include
"MantidKernel/UnitFactory.h"
#include
"MantidTestHelpers/WorkspaceCreationHelper.h"
using
Mantid
::
Algorithms
::
ConvertToPointData
;
using
Mantid
::
API
::
IAlgorithm_sptr
;
using
Mantid
::
API
::
MatrixWorkspace
;
using
Mantid
::
API
::
MatrixWorkspace_sptr
;
using
Mantid
::
Algorithms
::
ConvertToPointData
;
using
Mantid
::
DataObjects
::
Workspace2D_sptr
;
class
ConvertToPointDataTest
:
public
CxxTest
::
TestSuite
{
...
...
Prev
1
2
3
4
5
…
11
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment