[nolint] add cert-dcl37-c,cert-dcl51-cpp

This commit is contained in:
akallabeth 2024-09-03 10:30:30 +02:00
parent 852e0c1450
commit 72ae7fb54f
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
6 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@
#pragma clang diagnostic ignored "-Wreserved-id-macro" #pragma clang diagnostic ignored "-Wreserved-id-macro"
#endif #endif
#define _GNU_SOURCE // NOLINT(bugprone-reserved-identifier) #define _GNU_SOURCE // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
#if defined(__clang__) #if defined(__clang__)
#pragma clang diagnostic pop #pragma clang diagnostic pop

View File

@ -23,7 +23,7 @@
WINPR_PRAGMA_DIAG_PUSH WINPR_PRAGMA_DIAG_PUSH
WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO
#define _FILE_OFFSET_BITS 64 // NOLINT(bugprone-reserved-identifier) #define _FILE_OFFSET_BITS 64 // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
WINPR_PRAGMA_DIAG_POP WINPR_PRAGMA_DIAG_POP

View File

@ -23,7 +23,7 @@
WINPR_PRAGMA_DIAG_PUSH WINPR_PRAGMA_DIAG_PUSH
WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO
#define _NO_KSECDD_IMPORT_ 1 // NOLINT(bugprone-reserved-identifier) #define _NO_KSECDD_IMPORT_ 1 // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
WINPR_PRAGMA_DIAG_POP WINPR_PRAGMA_DIAG_POP

View File

@ -40,7 +40,7 @@ WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO
#ifdef WINPR_HAVE_UNISTD_H #ifdef WINPR_HAVE_UNISTD_H
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500 // NOLINT(bugprone-reserved-identifier) #define _XOPEN_SOURCE 500 // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
#endif #endif
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@ -15,7 +15,7 @@
* http://www.codingunit.com/printf-format-specifiers-format-conversions-and-formatted-output * http://www.codingunit.com/printf-format-specifiers-format-conversions-and-formatted-output
*/ */
#define _printf printf // NOLINT(bugprone-reserved-identifier) #define _printf printf // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
static BOOL test_bin_tohex_string(void) static BOOL test_bin_tohex_string(void)
{ {

View File

@ -19,7 +19,7 @@
*/ */
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE // NOLINT(bugprone-reserved-identifier) #define _GNU_SOURCE // NOLINT(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp)
#endif #endif
#include <assert.h> #include <assert.h>