Skip to content

Commit a571131

Browse files
Replace #pragma once with include guards
1 parent 472d2b3 commit a571131

Some content is hidden

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

41 files changed

+170
-48
lines changed

include/ReadoutCard/Driver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6+
#ifndef ALICEO2_INCLUDE_READOUTCARD_DRIVER_H_
7+
#define ALICEO2_INCLUDE_READOUTCARD_DRIVER_H_
8+
69
namespace AliceO2 {
710
namespace roc {
811
namespace driver {
@@ -20,3 +23,5 @@ void freeUnusedChannelBuffers();
2023
} // namespace driver
2124
} // namespace roc
2225
} // namespace AliceO2
26+
27+
#endif // ALICEO2_INCLUDE_READOUTCARD_DRIVER_H_

include/ReadoutCard/MemoryMappedFile.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_INCLUDE_READOUTCARD_MEMORYMAPPEDFILE_H_
7+
#define ALICEO2_INCLUDE_READOUTCARD_MEMORYMAPPEDFILE_H_
78

89
#include <string>
910
#include <memory>
@@ -37,3 +38,5 @@ class MemoryMappedFile
3738

3839
} // namespace roc
3940
} // namespace AliceO2
41+
42+
#endif // ALICEO2_INCLUDE_READOUTCARD_MEMORYMAPPEDFILE_H_

src/BarInterfaceBase.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_SRC_READOUTCARD_BARINTERFACEBASE_H_
7+
#define ALICEO2_SRC_READOUTCARD_BARINTERFACEBASE_H_
78

89
#include <memory>
910
#include "RocPciDevice.h"
@@ -56,3 +57,5 @@ class BarInterfaceBase: public BarInterface
5657

5758
} // namespace roc
5859
} // namespace AliceO2
60+
61+
#endif // ALICEO2_SRC_READOUTCARD_BARINTERFACEBASE_H_

src/CardDescriptor.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_SRC_READOUTCARD_CARDDESCRIPTOR_H_
7+
#define ALICEO2_SRC_READOUTCARD_CARDDESCRIPTOR_H_
78

89
#include <boost/optional.hpp>
910
#include "ReadoutCard/CardType.h"
@@ -24,3 +25,5 @@ struct CardDescriptor
2425

2526
} // namespace roc
2627
} // namespace AliceO2
28+
29+
#endif // ALICEO2_SRC_READOUTCARD_CARDDESCRIPTOR_H_

src/ChannelPaths.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_SRC_READOUTCARD_CHANNELPATHS_H_
7+
#define ALICEO2_SRC_READOUTCARD_CHANNELPATHS_H_
78

89
#include <string>
910
#include "ReadoutCard/ParameterTypes/PciAddress.h"
@@ -43,3 +44,5 @@ class ChannelPaths
4344

4445
} // namespace roc
4546
} // namespace AliceO2
47+
48+
#endif // ALICEO2_SRC_READOUTCARD_CHANNELPATHS_H_

src/CommandLineUtilities/BarHammer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_READOUTCARD_BARHAMMER_H
7+
#define ALICEO2_READOUTCARD_BARHAMMER_H
78

89
#include <atomic>
910
#include "Common/BasicThread.h"
@@ -55,3 +56,5 @@ class BarHammer : public AliceO2::Common::BasicThread
5556
} // namespace CommandLineUtilities
5657
} // namespace roc
5758
} // namespace AliceO2
59+
60+
#endif // ALICEO2_READOUTCARD_BARHAMMER_H

src/CommandLineUtilities/Common.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_READOUTCARD_COMMON_H
7+
#define ALICEO2_READOUTCARD_COMMON_H
78

89
#include <boost/program_options.hpp>
910

@@ -28,3 +29,5 @@ std::string makeRegisterString(int address, uint32_t value);
2829
} // namespace CommandLineUtilities
2930
} // namespace roc
3031
} // namespace AliceO2
32+
33+
#endif // ALICEO2_READOUTCARD_COMMON_H

src/CommandLineUtilities/Options.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
///
66
/// \author Pascal Boeschoten ([email protected])
77

8-
#pragma once
8+
#ifndef ALICEO2_READOUTCARD_OPTIONS_H
9+
#define ALICEO2_READOUTCARD_OPTIONS_H
910

1011
#include <boost/program_options.hpp>
1112
#include "ReadoutCard/Exception.h"
@@ -37,3 +38,5 @@ int getOptionRegisterRange(const boost::program_options::variables_map& map);
3738
} // namespace CommandLineUtilities
3839
} // namespace roc
3940
} // namespace AliceO2
41+
42+
#endif // ALICEO2_READOUTCARD_OPTIONS_H

src/CommandLineUtilities/Program.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
///
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_READOUTCARD_PROGRAM_H
7+
#define ALICEO2_READOUTCARD_PROGRAM_H
78

89
#include <atomic>
910
#include <boost/program_options.hpp>
@@ -49,3 +50,5 @@ class Program : public AliceO2::Common::Program
4950
} // namespace CommandLineUtilities
5051
} // namespace roc
5152
} // namespace AliceO2
53+
54+
#endif // ALICEO2_READOUTCARD_PROGRAM_H

src/Crorc/Constants.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
/// Based on ddl_def.h and rorc.h
44
/// \author Pascal Boeschoten ([email protected])
55

6-
#pragma once
6+
#ifndef ALICEO2_SRC_READOUTCARD_CRORC_CONSTANTS_H_
7+
#define ALICEO2_SRC_READOUTCARD_CRORC_CONSTANTS_H_
78

89
namespace AliceO2
910
{
@@ -332,3 +333,5 @@ constexpr int POR = 0x00000000; ///< SIU in Power On Reset state
332333
} // namespace Siu
333334
} // namespace roc
334335
} // namespace AliceO2
336+
337+
#endif // ALICEO2_SRC_READOUTCARD_CRORC_CONSTANTS_H_

0 commit comments

Comments
 (0)