Skip to content

Commit f5dd85b

Browse files
codebyteredanielleadams
authored andcommitted
src: remove more extra semis from member fns
PR-URL: #38744 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent 96fa387 commit f5dd85b

18 files changed

+47
-47
lines changed

src/crypto/crypto_aes.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ struct AESCipherConfig final : public MemoryRetainer {
5252
AESCipherConfig& operator=(AESCipherConfig&& other) noexcept;
5353

5454
void MemoryInfo(MemoryTracker* tracker) const override;
55-
SET_MEMORY_INFO_NAME(AESCipherConfig);
56-
SET_SELF_SIZE(AESCipherConfig);
55+
SET_MEMORY_INFO_NAME(AESCipherConfig)
56+
SET_SELF_SIZE(AESCipherConfig)
5757
};
5858

5959
struct AESCipherTraits final {

src/crypto/crypto_dh.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ using DHKeyExportJob = KeyExportJob<DHKeyExportTraits>;
114114
struct DHBitsConfig final : public MemoryRetainer {
115115
std::shared_ptr<KeyObjectData> private_key;
116116
std::shared_ptr<KeyObjectData> public_key;
117-
SET_NO_MEMORY_INFO();
118-
SET_MEMORY_INFO_NAME(DHBitsConfig);
119-
SET_SELF_SIZE(DHBitsConfig);
117+
SET_NO_MEMORY_INFO()
118+
SET_MEMORY_INFO_NAME(DHBitsConfig)
119+
SET_SELF_SIZE(DHBitsConfig)
120120
};
121121

122122
struct DHBitsTraits final {

src/crypto/crypto_dsa.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ struct DsaKeyPairParams final : public MemoryRetainer {
1616
unsigned int modulus_bits;
1717
int divisor_bits;
1818
SET_NO_MEMORY_INFO()
19-
SET_MEMORY_INFO_NAME(DsaKeyPairParams);
20-
SET_SELF_SIZE(DsaKeyPairParams);
19+
SET_MEMORY_INFO_NAME(DsaKeyPairParams)
20+
SET_SELF_SIZE(DsaKeyPairParams)
2121
};
2222

2323
using DsaKeyPairGenConfig = KeyPairGenConfig<DsaKeyPairParams>;
@@ -38,9 +38,9 @@ struct DsaKeyGenTraits final {
3838
using DsaKeyPairGenJob = KeyGenJob<KeyPairGenTraits<DsaKeyGenTraits>>;
3939

4040
struct DSAKeyExportConfig final : public MemoryRetainer {
41-
SET_NO_MEMORY_INFO();
42-
SET_MEMORY_INFO_NAME(DSAKeyExportConfig);
43-
SET_SELF_SIZE(DSAKeyExportConfig);
41+
SET_NO_MEMORY_INFO()
42+
SET_MEMORY_INFO_NAME(DSAKeyExportConfig)
43+
SET_SELF_SIZE(DSAKeyExportConfig)
4444
};
4545

4646
struct DSAKeyExportTraits final {

src/crypto/crypto_ec.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ struct ECDHBitsConfig final : public MemoryRetainer {
6060
std::shared_ptr<KeyObjectData> public_;
6161

6262
void MemoryInfo(MemoryTracker* tracker) const override;
63-
SET_MEMORY_INFO_NAME(ECDHBitsConfig);
64-
SET_SELF_SIZE(ECDHBitsConfig);
63+
SET_MEMORY_INFO_NAME(ECDHBitsConfig)
64+
SET_SELF_SIZE(ECDHBitsConfig)
6565
};
6666

6767
struct ECDHBitsTraits final {

src/crypto/crypto_hash.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ struct HashConfig final : public MemoryRetainer {
5252
HashConfig& operator=(HashConfig&& other) noexcept;
5353

5454
void MemoryInfo(MemoryTracker* tracker) const override;
55-
SET_MEMORY_INFO_NAME(HashConfig);
56-
SET_SELF_SIZE(HashConfig);
55+
SET_MEMORY_INFO_NAME(HashConfig)
56+
SET_SELF_SIZE(HashConfig)
5757
};
5858

5959
struct HashTraits final {

src/crypto/crypto_hkdf.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ struct HKDFConfig final : public MemoryRetainer {
2929
HKDFConfig& operator=(HKDFConfig&& other) noexcept;
3030

3131
void MemoryInfo(MemoryTracker* tracker) const override;
32-
SET_MEMORY_INFO_NAME(HKDFConfig);
33-
SET_SELF_SIZE(HKDFConfig);
32+
SET_MEMORY_INFO_NAME(HKDFConfig)
33+
SET_SELF_SIZE(HKDFConfig)
3434
};
3535

3636
struct HKDFTraits final {

src/crypto/crypto_hmac.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ struct HmacConfig final : public MemoryRetainer {
5454
HmacConfig& operator=(HmacConfig&& other) noexcept;
5555

5656
void MemoryInfo(MemoryTracker* tracker) const override;
57-
SET_MEMORY_INFO_NAME(HmacConfig);
58-
SET_SELF_SIZE(HmacConfig);
57+
SET_MEMORY_INFO_NAME(HmacConfig)
58+
SET_SELF_SIZE(HmacConfig)
5959
};
6060

6161
struct HmacTraits final {

src/crypto/crypto_keygen.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class KeyGenJob final : public CryptoJob<KeyGenTraits> {
112112
return v8::Just(errors->ToException(env).ToLocal(err));
113113
}
114114

115-
SET_SELF_SIZE(KeyGenJob);
115+
SET_SELF_SIZE(KeyGenJob)
116116

117117
private:
118118
KeyGenJobStatus status_ = KeyGenJobStatus::FAILED;

src/crypto/crypto_keys.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class KeyObjectData : public MemoryRetainer {
149149
size_t GetSymmetricKeySize() const;
150150

151151
void MemoryInfo(MemoryTracker* tracker) const override;
152-
SET_MEMORY_INFO_NAME(KeyObjectData);
153-
SET_SELF_SIZE(KeyObjectData);
152+
SET_MEMORY_INFO_NAME(KeyObjectData)
153+
SET_SELF_SIZE(KeyObjectData)
154154

155155
private:
156156
explicit KeyObjectData(ByteSource symmetric_key);

src/crypto/crypto_pbkdf2.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ struct PBKDF2Config final : public MemoryRetainer {
3939
PBKDF2Config& operator=(PBKDF2Config&& other) noexcept;
4040

4141
void MemoryInfo(MemoryTracker* tracker) const override;
42-
SET_MEMORY_INFO_NAME(PBKDF2Config);
43-
SET_SELF_SIZE(PBKDF2Config);
42+
SET_MEMORY_INFO_NAME(PBKDF2Config)
43+
SET_SELF_SIZE(PBKDF2Config)
4444
};
4545

4646
struct PBKDF2Traits final {

src/crypto/crypto_random.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ namespace crypto {
1616
struct RandomBytesConfig final : public MemoryRetainer {
1717
unsigned char* buffer;
1818
size_t size;
19-
SET_NO_MEMORY_INFO();
20-
SET_MEMORY_INFO_NAME(RandomBytesConfig);
21-
SET_SELF_SIZE(RandomBytesConfig);
19+
SET_NO_MEMORY_INFO()
20+
SET_MEMORY_INFO_NAME(RandomBytesConfig)
21+
SET_SELF_SIZE(RandomBytesConfig)
2222
};
2323

2424
struct RandomBytesTraits final {
@@ -54,8 +54,8 @@ struct RandomPrimeConfig final : public MemoryRetainer {
5454
int bits;
5555
bool safe;
5656
void MemoryInfo(MemoryTracker* tracker) const override;
57-
SET_MEMORY_INFO_NAME(RandomPrimeConfig);
58-
SET_SELF_SIZE(RandomPrimeConfig);
57+
SET_MEMORY_INFO_NAME(RandomPrimeConfig)
58+
SET_SELF_SIZE(RandomPrimeConfig)
5959
};
6060

6161
struct RandomPrimeTraits final {
@@ -89,8 +89,8 @@ struct CheckPrimeConfig final : public MemoryRetainer {
8989
int checks = 1;
9090

9191
void MemoryInfo(MemoryTracker* tracker) const override;
92-
SET_MEMORY_INFO_NAME(CheckPrimeConfig);
93-
SET_SELF_SIZE(CheckPrimeConfig);
92+
SET_MEMORY_INFO_NAME(CheckPrimeConfig)
93+
SET_SELF_SIZE(CheckPrimeConfig)
9494
};
9595

9696
struct CheckPrimeTraits final {

src/crypto/crypto_rsa.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ struct RsaKeyPairParams final : public MemoryRetainer {
3131
int saltlen = 0;
3232

3333
SET_NO_MEMORY_INFO()
34-
SET_MEMORY_INFO_NAME(RsaKeyPairParams);
35-
SET_SELF_SIZE(RsaKeyPairParams);
34+
SET_MEMORY_INFO_NAME(RsaKeyPairParams)
35+
SET_SELF_SIZE(RsaKeyPairParams)
3636
};
3737

3838
using RsaKeyPairGenConfig = KeyPairGenConfig<RsaKeyPairParams>;
@@ -88,8 +88,8 @@ struct RSACipherConfig final : public MemoryRetainer {
8888
RSACipherConfig(RSACipherConfig&& other) noexcept;
8989

9090
void MemoryInfo(MemoryTracker* tracker) const override;
91-
SET_MEMORY_INFO_NAME(RSACipherConfig);
92-
SET_SELF_SIZE(RSACipherConfig);
91+
SET_MEMORY_INFO_NAME(RSACipherConfig)
92+
SET_SELF_SIZE(RSACipherConfig)
9393
};
9494

9595
struct RSACipherTraits final {

src/crypto/crypto_scrypt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ struct ScryptConfig final : public MemoryRetainer {
4141
ScryptConfig& operator=(ScryptConfig&& other) noexcept;
4242

4343
void MemoryInfo(MemoryTracker* tracker) const override;
44-
SET_MEMORY_INFO_NAME(ScryptConfig);
45-
SET_SELF_SIZE(ScryptConfig);
44+
SET_MEMORY_INFO_NAME(ScryptConfig)
45+
SET_SELF_SIZE(ScryptConfig)
4646
};
4747

4848
struct ScryptTraits final {

src/crypto/crypto_sig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ struct SignConfiguration final : public MemoryRetainer {
127127
SignConfiguration& operator=(SignConfiguration&& other) noexcept;
128128

129129
void MemoryInfo(MemoryTracker* tracker) const override;
130-
SET_MEMORY_INFO_NAME(SignConfiguration);
131-
SET_SELF_SIZE(SignConfiguration);
130+
SET_MEMORY_INFO_NAME(SignConfiguration)
131+
SET_SELF_SIZE(SignConfiguration)
132132
};
133133

134134
struct SignTraits final {

src/crypto/crypto_util.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ struct CryptoErrorStore final : public MemoryRetainer {
188188
v8::Local<v8::String> exception_string = v8::Local<v8::String>()) const;
189189

190190
SET_NO_MEMORY_INFO()
191-
SET_MEMORY_INFO_NAME(CryptoErrorStore);
192-
SET_SELF_SIZE(CryptoErrorStore);
191+
SET_MEMORY_INFO_NAME(CryptoErrorStore)
192+
SET_SELF_SIZE(CryptoErrorStore)
193193

194194
private:
195195
std::vector<std::string> errors_;
@@ -502,7 +502,7 @@ class DeriveBitsJob final : public CryptoJob<DeriveBitsTraits> {
502502
return v8::Just(errors->ToException(env).ToLocal(err));
503503
}
504504

505-
SET_SELF_SIZE(DeriveBitsJob);
505+
SET_SELF_SIZE(DeriveBitsJob)
506506
void MemoryInfo(MemoryTracker* tracker) const override {
507507
tracker->TrackFieldWithSize("out", out_.size());
508508
CryptoJob<DeriveBitsTraits>::MemoryInfo(tracker);

src/crypto/crypto_x509.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ class X509Certificate : public BaseObject {
9898
X509* get() { return cert_->get(); }
9999

100100
void MemoryInfo(MemoryTracker* tracker) const override;
101-
SET_MEMORY_INFO_NAME(X509Certificate);
102-
SET_SELF_SIZE(X509Certificate);
101+
SET_MEMORY_INFO_NAME(X509Certificate)
102+
SET_SELF_SIZE(X509Certificate)
103103

104104
class X509CertificateTransferData : public worker::TransferData {
105105
public:

src/node_blob.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class Blob : public BaseObject {
4646
}
4747

4848
void MemoryInfo(MemoryTracker* tracker) const override;
49-
SET_MEMORY_INFO_NAME(Blob);
50-
SET_SELF_SIZE(Blob);
49+
SET_MEMORY_INFO_NAME(Blob)
50+
SET_SELF_SIZE(Blob)
5151

5252
// Copies the contents of the Blob into an ArrayBuffer.
5353
v8::MaybeLocal<v8::Value> GetArrayBuffer(Environment* env);

src/node_sockaddr.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ class SocketAddressBase : public BaseObject {
173173
}
174174

175175
void MemoryInfo(MemoryTracker* tracker) const override;
176-
SET_MEMORY_INFO_NAME(SocketAddressBase);
177-
SET_SELF_SIZE(SocketAddressBase);
176+
SET_MEMORY_INFO_NAME(SocketAddressBase)
177+
SET_SELF_SIZE(SocketAddressBase)
178178

179179
TransferMode GetTransferMode() const override {
180180
return TransferMode::kCloneable;

0 commit comments

Comments
 (0)