Skip to content

Commit 0035f84

Browse files
committed
dft: clang-format
Signed-off-by: Felipe Garay <[email protected]>
1 parent 312c0c3 commit 0035f84

File tree

8 files changed

+29
-20
lines changed

8 files changed

+29
-20
lines changed

src/dft/src/architect/ScanArchitect.hh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,20 @@
3636
#include <memory>
3737
#include <vector>
3838

39+
#include "Macros.hh"
3940
#include "ScanArchitectConfig.hh"
4041
#include "ScanCell.hh"
4142
#include "ScanChain.hh"
4243
#include "utl/Logger.h"
43-
#include "Macros.hh"
4444

4545
namespace dft {
4646

4747
// Contains all the scan cells of the design and maintains them separated based
4848
// on the hash domain.
4949
class ScanCellsBucket
5050
{
51-
DISABLE_COPY_AND_MOVE(ScanCellsBucket);
51+
DISABLE_COPY_AND_MOVE(ScanCellsBucket);
52+
5253
public:
5354
explicit ScanCellsBucket(utl::Logger* logger);
5455

@@ -73,7 +74,8 @@ class ScanCellsBucket
7374
// The Scan Architect. We can implement different algorithms to architect
7475
class ScanArchitect
7576
{
76-
DISABLE_COPY_AND_MOVE(ScanArchitect);
77+
DISABLE_COPY_AND_MOVE(ScanArchitect);
78+
7779
public:
7880
// The limits of a hash domain.
7981
struct HashDomainLimits

src/dft/src/architect/ScanArchitectHeuristic.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
// POSSIBILITY OF SUCH DAMAGE.
3232
#pragma once
3333

34+
#include "Macros.hh"
3435
#include "ScanArchitect.hh"
3536
#include "utl/Logger.h"
36-
#include "Macros.hh"
3737

3838
namespace dft {
3939

@@ -42,7 +42,8 @@ namespace dft {
4242
// the smallest and start adding the biggest cells to each scan chain.
4343
class ScanArchitectHeuristic : public ScanArchitect
4444
{
45-
DISABLE_COPY_AND_MOVE(ScanArchitectHeuristic);
45+
DISABLE_COPY_AND_MOVE(ScanArchitectHeuristic);
46+
4647
public:
4748
ScanArchitectHeuristic(const ScanArchitectConfig& config,
4849
std::unique_ptr<ScanCellsBucket> scan_cells_bucket,

src/dft/src/architect/ScanChain.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
#include <memory>
3535
#include <vector>
3636

37+
#include "Macros.hh"
3738
#include "ScanCell.hh"
3839
#include "utl/Logger.h"
39-
#include "Macros.hh"
4040

4141
namespace dft {
4242

@@ -51,7 +51,8 @@ namespace dft {
5151
// - Find the scan enable of the chain
5252
class ScanChain
5353
{
54-
DISABLE_COPY_AND_MOVE(ScanChain);
54+
DISABLE_COPY_AND_MOVE(ScanChain);
55+
5556
public:
5657
explicit ScanChain(const std::string& name);
5758

src/dft/src/cells/OneBitScanCell.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,20 @@
3131
// POSSIBILITY OF SUCH DAMAGE.
3232
#pragma once
3333

34+
#include "Macros.hh"
3435
#include "ScanCell.hh"
3536
#include "ScanPin.hh"
3637
#include "db_sta/dbNetwork.hh"
3738
#include "odb/db.h"
3839
#include "sta/Liberty.hh"
39-
#include "Macros.hh"
4040

4141
namespace dft {
4242

4343
// A simple single cell with just one bit. Usually one scan FF
4444
class OneBitScanCell : public ScanCell
4545
{
46-
DISABLE_COPY_AND_MOVE(OneBitScanCell);
46+
DISABLE_COPY_AND_MOVE(OneBitScanCell);
47+
4748
public:
4849
OneBitScanCell(const std::string& name,
4950
std::unique_ptr<ClockDomain> clock_domain,

src/dft/src/cells/ScanCell.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
#include <memory>
3636
#include <string>
3737

38+
#include "Macros.hh"
3839
#include "ScanPin.hh"
3940
#include "odb/db.h"
4041
#include "utl/Logger.h"
41-
#include "Macros.hh"
4242

4343
namespace dft {
4444
class ClockDomain;
@@ -52,7 +52,8 @@ class ClockDomain;
5252
// in the future black boxes or CTLs (Core Test Language)
5353
class ScanCell
5454
{
55-
DISABLE_COPY_AND_MOVE(ScanCell);
55+
DISABLE_COPY_AND_MOVE(ScanCell);
56+
5657
public:
5758
ScanCell(const std::string& name,
5859
std::unique_ptr<ClockDomain> clock_domain,

src/dft/src/clock_domain/ClockDomain.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#pragma once
3333

3434
#include <string>
35+
3536
#include "Macros.hh"
3637

3738
namespace dft {
@@ -45,7 +46,8 @@ enum class ClockEdge
4546
// The clock domain of the scan cells based on the clock name and the edge.
4647
class ClockDomain
4748
{
48-
DISABLE_COPY_AND_MOVE(ClockDomain);
49+
DISABLE_COPY_AND_MOVE(ClockDomain);
50+
4951
public:
5052
ClockDomain(const std::string& clock_name, ClockEdge clock_edge);
5153

src/dft/src/stitch/ScanStitch.hh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
#include <type_traits>
3636
#include <vector>
3737

38+
#include "Macros.hh"
3839
#include "ScanChain.hh"
3940
#include "ScanStitchConfig.hh"
4041
#include "Utils.hh"
4142
#include "odb/db.h"
42-
#include "Macros.hh"
4343

4444
namespace dft {
4545

@@ -51,7 +51,8 @@ inline constexpr bool always_false_v = false;
5151
// are going to share the same scan_enable
5252
class ScanStitch
5353
{
54-
DISABLE_COPY_AND_MOVE(ScanStitch);
54+
DISABLE_COPY_AND_MOVE(ScanStitch);
55+
5556
public:
5657
explicit ScanStitch(odb::dbDatabase* db,
5758
utl::Logger* logger,

src/dft/src/utils/macros/Macros.hh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
#pragma once
3333

3434
// Used inside a class of ClassName, will disable all copies and moves
35-
#define DISABLE_COPY_AND_MOVE(ClassName) \
36-
private: \
37-
ClassName(const ClassName&) = delete; \
38-
ClassName& operator=(const ClassName&) = delete; \
39-
ClassName(ClassName&&) = delete; \
40-
ClassName& operator=(ClassName&&) = delete;
35+
#define DISABLE_COPY_AND_MOVE(ClassName) \
36+
private: \
37+
ClassName(const ClassName&) = delete; \
38+
ClassName& operator=(const ClassName&) = delete; \
39+
ClassName(ClassName&&) = delete; \
40+
ClassName& operator=(ClassName&&) = delete;

0 commit comments

Comments
 (0)