Skip to content

Commit d1f3db4

Browse files
Barthelemyknopers8
authored andcommitted
C++17 nested namespaces (#130)
* Change nested namespaces to C++17 style * Change nested namespaces to C++17 style * Formatting
1 parent 5fcb9ee commit d1f3db4

69 files changed

Lines changed: 148 additions & 554 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Framework/include/QualityControl/Activity.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
#ifndef QC_CORE_ACTIVITY_H
77
#define QC_CORE_ACTIVITY_H
88

9-
namespace o2
10-
{
11-
namespace quality_control
12-
{
13-
namespace core
9+
namespace o2::quality_control::core
1410
{
1511

1612
/// \brief Dummy class that should be removed when there is the official one.
@@ -36,8 +32,6 @@ class Activity
3632
int mType{ 0 };
3733
};
3834

39-
} // namespace core
40-
} // namespace quality_control
41-
} // namespace o2
35+
} // namespace o2::quality_control::core
4236

4337
#endif // QC_CORE_ACTIVITY_H

Framework/include/QualityControl/CcdbDatabase.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919
#include "CCDB/CcdbApi.h"
2020
#include "QualityControl/DatabaseInterface.h"
2121

22-
namespace o2
23-
{
24-
namespace quality_control
25-
{
26-
namespace repository
22+
namespace o2::quality_control::repository
2723
{
2824

2925
/*
@@ -82,8 +78,6 @@ class CcdbDatabase : public DatabaseInterface
8278
std::string mUrl;
8379
};
8480

85-
} // namespace repository
86-
} // namespace quality_control
87-
} // namespace o2
81+
} // namespace o2::quality_control::repository
8882

8983
#endif // QC_REPOSITORY_CCDBDATABASE_H

Framework/include/QualityControl/CheckInterface.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111

1212
using namespace o2::quality_control::core;
1313

14-
namespace o2
15-
{
16-
namespace quality_control
17-
{
18-
namespace checker
14+
namespace o2::quality_control::checker
1915
{
2016

2117
/// \brief Skeleton of a check.
@@ -77,8 +73,6 @@ class CheckInterface
7773
ClassDef(CheckInterface, 1)
7874
};
7975

80-
} /* namespace checker */
81-
} /* namespace quality_control */
82-
} /* namespace o2 */
76+
} // namespace o2::quality_control::checker
8377

8478
#endif /* QC_CHECKER_CHECKINTERFACE_H */

Framework/include/QualityControl/Checker.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
#include "QualityControl/MonitorObject.h"
2222
#include "QualityControl/QcInfoLogger.h"
2323

24-
namespace o2
25-
{
26-
namespace quality_control
27-
{
28-
namespace checker
24+
namespace o2::quality_control::checker
2925
{
3026

3127
/// \brief The class in charge of running the checks on a MonitorObject.
@@ -125,8 +121,6 @@ class Checker : public framework::Task
125121
AliceO2::Common::Timer timer;
126122
};
127123

128-
} /* namespace checker */
129-
} /* namespace quality_control */
130-
} /* namespace o2 */
124+
} // namespace o2::quality_control::checker
131125

132126
#endif // QC_CHECKER_CHECKER_H

Framework/include/QualityControl/CheckerFactory.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
#include "Framework/DataProcessorSpec.h"
99

10-
namespace o2
11-
{
12-
namespace quality_control
13-
{
14-
namespace checker
10+
namespace o2::quality_control::checker
1511
{
1612

1713
/// \brief Factory in charge of creating DataProcessorSpec of QC Checker
@@ -24,8 +20,6 @@ class CheckerFactory
2420
framework::DataProcessorSpec create(std::string checkerName, std::string taskName, std::string configurationSource);
2521
};
2622

27-
} // namespace checker
28-
} // namespace quality_control
29-
} // namespace o2
23+
} // namespace o2::quality_control::checker
3024

3125
#endif // QC_CHECKERFACTORY_H

Framework/include/QualityControl/DataDumpGui.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919

2020
#include "FairMQDevice.h"
2121

22-
namespace o2
23-
{
24-
namespace quality_control
25-
{
26-
namespace core
22+
namespace o2::quality_control::core
2723
{
2824

2925
/**
@@ -76,8 +72,6 @@ class DataDumpGui : public FairMQDevice
7672
private:
7773
void assignDataToChunk(void* data, size_t size, Chunk& chunk);
7874
};
79-
} // namespace core
80-
} // namespace quality_control
81-
} // namespace o2
75+
} // namespace o2::quality_control::core
8276

8377
#endif // QC_CORE_DATADUMP_H

Framework/include/QualityControl/DatabaseFactory.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
// QC
1313
#include "QualityControl/DatabaseInterface.h"
1414

15-
namespace o2
16-
{
17-
namespace quality_control
18-
{
19-
namespace repository
15+
namespace o2::quality_control::repository
2016
{
2117

2218
/// \brief Factory to get a database accessor
@@ -31,8 +27,6 @@ class DatabaseFactory
3127
static std::unique_ptr<DatabaseInterface> create(std::string name);
3228
};
3329

34-
} // namespace repository
35-
} // namespace quality_control
36-
} // namespace o2
30+
} // namespace o2::quality_control::repository
3731

3832
#endif // QC_REPOSITORY_DATABASEFACTORY_H

Framework/include/QualityControl/DatabaseInterface.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
#include <unordered_map>
1212
//#include <bits/unique_ptr.h>
1313

14-
namespace o2
15-
{
16-
namespace quality_control
17-
{
18-
namespace repository
14+
namespace o2::quality_control::repository
1915
{
2016

2117
/// \brief The interface to the MonitorObject's repository.
@@ -81,8 +77,6 @@ class DatabaseInterface
8177
virtual void truncate(std::string taskName, std::string objectName) = 0;
8278
};
8379

84-
} /* namespace repository */
85-
} /* namespace quality_control */
86-
} /* namespace o2 */
80+
} // namespace o2::quality_control::repository
8781

8882
#endif /* QC_REPOSITORY_DATABASEINTERFACE_H */

Framework/include/QualityControl/HistoMerger.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616

1717
#include "QualityControl/MonitorObject.h"
1818

19-
namespace o2
20-
{
21-
namespace quality_control
22-
{
23-
namespace core
19+
namespace o2::quality_control::core
2420
{
2521

2622
/// \brief A crude histogram merger for development purposes.
@@ -64,8 +60,6 @@ class HistoMerger : public framework::Task
6460
o2::framework::OutputSpec mOutputSpec;
6561
};
6662

67-
} // namespace core
68-
} // namespace quality_control
69-
} // namespace o2
63+
} // namespace o2::quality_control::core
7064

7165
#endif // QC_CORE_HISTOMERGER_H

Framework/include/QualityControl/InfrastructureGenerator.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#include <string>
1010
#include <Framework/WorkflowSpec.h>
1111

12-
namespace o2
13-
{
14-
namespace quality_control
12+
namespace o2::quality_control
1513
{
1614
namespace core
1715
{
@@ -96,7 +94,6 @@ inline void generateRemoteInfrastructure(framework::WorkflowSpec& workflow, std:
9694
core::InfrastructureGenerator::generateRemoteInfrastructure(workflow, configurationSource);
9795
}
9896

99-
} // namespace quality_control
100-
} // namespace o2
97+
} // namespace o2::quality_control
10198

10299
#endif //QC_CORE_INFRASTRUCTUREGENERATOR_H

0 commit comments

Comments
 (0)