Skip to content

Commit 6d7759a

Browse files
Merge pull request #568 from crypto-chassis/pragma-once
Change header guard to use pragma once
2 parents 5791ba4 + b62586f commit 6d7759a

115 files changed

Lines changed: 223 additions & 346 deletions

File tree

Some content is hidden

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

include/ccapi_cpp/ccapi_element.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_ELEMENT_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_ELEMENT_H_
1+
#pragma once
2+
33
#include <map>
44
#include <string>
55

@@ -125,4 +125,3 @@ class Element {
125125
};
126126

127127
} /* namespace ccapi */
128-
#endif // INCLUDE_CCAPI_CPP_CCAPI_ELEMENT_H_

include/ccapi_cpp/ccapi_event.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_H_
1+
#pragma once
2+
33
#include <vector>
44

55
#include "ccapi_cpp/ccapi_logger.h"
@@ -115,4 +115,3 @@ class Event {
115115
};
116116

117117
} /* namespace ccapi */
118-
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_H_

include/ccapi_cpp/ccapi_event_dispatcher.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_DISPATCHER_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_DISPATCHER_H_
1+
#pragma once
2+
33
#include <stddef.h>
44

55
#include <atomic>
@@ -104,4 +104,3 @@ class EventDispatcher {
104104
};
105105

106106
} /* namespace ccapi */
107-
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_DISPATCHER_H_

include/ccapi_cpp/ccapi_event_handler.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
1+
#pragma once
2+
33
#include "ccapi_cpp/ccapi_event.h"
44

55
namespace ccapi {
@@ -27,4 +27,3 @@ class EventHandler {
2727
};
2828

2929
} /* namespace ccapi */
30-
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_

include/ccapi_cpp/ccapi_fix_connection.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_FIX_CONNECTION_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_FIX_CONNECTION_H_
1+
#pragma once
2+
33
#include <string>
44
#include <variant>
55

@@ -125,4 +125,3 @@ class FixConnection {
125125
};
126126

127127
} /* namespace ccapi */
128-
#endif // INCLUDE_CCAPI_CPP_CCAPI_FIX_CONNECTION_H_

include/ccapi_cpp/ccapi_hmac.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_HMAC_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_HMAC_H_
1+
#pragma once
32

43
#include <openssl/evp.h>
54
#include <openssl/hmac.h>
@@ -70,4 +69,3 @@ class Hmac {
7069
};
7170

7271
} /* namespace ccapi */
73-
#endif // INCLUDE_CCAPI_CPP_CCAPI_HMAC_H_

include/ccapi_cpp/ccapi_http_connection.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_HTTP_CONNECTION_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_HTTP_CONNECTION_H_
1+
#pragma once
2+
33
#include <string>
44

55
#include "ccapi_cpp/ccapi_logger.h"
@@ -37,4 +37,3 @@ class HttpConnection {
3737
};
3838

3939
} /* namespace ccapi */
40-
#endif // INCLUDE_CCAPI_CPP_CCAPI_HTTP_CONNECTION_H_

include/ccapi_cpp/ccapi_http_retry.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_HTTP_RETRY_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_HTTP_RETRY_H_
1+
#pragma once
2+
33
#include <future>
44
#include <string>
55

@@ -28,4 +28,3 @@ class HttpRetry {
2828
};
2929

3030
} /* namespace ccapi */
31-
#endif // INCLUDE_CCAPI_CPP_CCAPI_HTTP_RETRY_H_

include/ccapi_cpp/ccapi_inflate_stream.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_INFLATE_STREAM_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_INFLATE_STREAM_H_
1+
#pragma once
2+
33
#ifndef CCAPI_DECOMPRESS_BUFFER_SIZE
44
#define CCAPI_DECOMPRESS_BUFFER_SIZE (1 << 20)
55
#endif
@@ -100,4 +100,3 @@ class InflateStream {
100100
};
101101

102102
} /* namespace ccapi */
103-
#endif // INCLUDE_CCAPI_CPP_CCAPI_INFLATE_STREAM_H_

include/ccapi_cpp/ccapi_jwt.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef INCLUDE_CCAPI_CPP_CCAPI_JWT_H_
2-
#define INCLUDE_CCAPI_CPP_CCAPI_JWT_H_
1+
#pragma once
2+
33
#include "ccapi_cpp/ccapi_hmac.h"
44
#include "ccapi_cpp/ccapi_logger.h"
55
#include "ccapi_cpp/ccapi_macro.h"
@@ -30,4 +30,3 @@ class Jwt {
3030
}
3131
};
3232
} // namespace ccapi
33-
#endif // INCLUDE_CCAPI_CPP_CCAPI_JWT_H_

0 commit comments

Comments
 (0)