| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a8ae3b9 commit 6b0926e
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,7 +66,10 @@ namespace ncrypto { | |||
| 66 | 66 | #define NCRYPTO_STR(x) #x | |
| 67 | 67 | #define NCRYPTO_REQUIRE(EXPR) \ | |
| 68 | 68 | { \ | |
| 69 | - if (!(EXPR) { abort(); }) } | ||
| 69 | + if (!(EXPR)) { \ | ||
| 70 | + abort(); \ | ||
| 71 | + } \ | ||
| 72 | + } | ||
| 70 | 73 | ||
| 71 | 74 | #define NCRYPTO_FAIL(MESSAGE) \ | |
| 72 | 75 | do { \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -556,7 +556,9 @@ Maybe<void> Decorate(Environment* env, | |||
| 556 | 556 | #define V(name) case ERR_LIB_##name: lib = #name "_"; break; | |
| 557 | 557 | const char* lib = ""; | |
| 558 | 558 | const char* prefix = "OSSL_"; | |
| 559 | - switch (ERR_GET_LIB(err)) { OSSL_ERROR_CODES_MAP(V) } | ||
| 559 | + switch (ERR_GET_LIB(err)) { /* NOLINT(whitespace/newline) */ | ||
| 560 | + OSSL_ERROR_CODES_MAP(V) | ||
| 561 | + } | ||
| 560 | 562 | #undef V | |
| 561 | 563 | #undef OSSL_ERROR_CODES_MAP | |
| 562 | 564 | // Don't generate codes like "ERR_OSSL_SSL_". | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -150,6 +150,8 @@ void AsyncHooks::push_async_context( | |||
| 150 | 150 | ||
| 151 | 151 | // When this call comes from JS (as a way of increasing the stack size), | |
| 152 | 152 | // `resource` will be empty, because JS caches these values anyway. | |
| 153 | + // False positive: https://github.com/cpplint/cpplint/issues/410 | ||
| 154 | + // NOLINTNEXTLINE(whitespace/newline) | ||
| 153 | 155 | if (std::visit([](auto* ptr) { return ptr != nullptr; }, resource)) { | |
| 154 | 156 | native_execution_async_resources_.resize(offset + 1); | |
| 155 | 157 | // Caveat: This is a v8::Local<>* assignment, we do not keep a v8::Global<>! | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -206,6 +206,8 @@ static bool IsIPAddress(const std::string& host) { | |||
| 206 | 206 | // (other than ::/128) that represent non-routable IPv4 addresses. However, | |
| 207 | 207 | // this translation assumes that the host is interpreted as an IPv6 address | |
| 208 | 208 | // in the first place, at which point DNS rebinding should not be an issue. | |
| 209 | + // False positive: https://github.com/cpplint/cpplint/issues/410 | ||
| 210 | + // NOLINTNEXTLINE(whitespace/newline) | ||
| 209 | 211 | if (std::ranges::all_of(ipv6, [](auto b) { return b == 0; })) { | |
| 210 | 212 | return false; | |
| 211 | 213 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,8 @@ | |||
| 5 | 5 | ||
| 6 | 6 | typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env, | |
| 7 | 7 | napi_value exports); | |
| 8 | + // False positive: https://github.com/cpplint/cpplint/issues/409 | ||
| 9 | + // NOLINTNEXTLINE (readability/casting) | ||
| 8 | 10 | typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void); | |
| 9 | 11 | ||
| 10 | 12 | typedef struct napi_callback_scope__* napi_callback_scope; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -161,7 +161,9 @@ constexpr std::string to_string(ngtcp2_cc_algo cc_algorithm) { | |||
| 161 | 161 | #define V(name, label) \ | |
| 162 | 162 | case NGTCP2_CC_ALGO_##name: \ | |
| 163 | 163 | return #label; | |
| 164 | - switch (cc_algorithm) { CC_ALGOS(V) } | ||
| 164 | + switch (cc_algorithm) { /* NOLINT(whitespace/newline) */ | ||
| 165 | + CC_ALGOS(V) | ||
| 166 | + } | ||
| 165 | 167 | return "<unknown>"; | |
| 166 | 168 | #undef V | |
| 167 | 169 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments