Merge pull request #10675 from akallabeth/clang-tidy-customize

Clang tidy customize
This commit is contained in:
akallabeth
2024-09-25 09:05:17 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ Checks: >
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-macro-to-enum,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,

View File

@@ -36,7 +36,7 @@
#define WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO \
_Pragma("clang diagnostic ignored \"-Wreserved-id-macro\"")
#define WINPR_PRAGMA_DIAG_IGNORED_UNUSED_MACRO \
_Pragma("clang diagnostic ignored \"-Wunused-macro\"")
_Pragma("clang diagnostic ignored \"-Wunused-macros\"")
#define WINPR_PRAGMA_DIAG_IGNORED_RESERVED_IDENTIFIER \
_Pragma("clang diagnostic ignored \"-Wreserved-identifier\"")
#define WINPR_PRAGMA_DIAG_IGNORED_ATOMIC_SEQ_CST \
@@ -65,8 +65,7 @@
_Pragma("GCC diagnostic ignored \"-Wstrict-prototypes\"")
#define WINPR_PRAGMA_DIAG_IGNORED_RESERVED_ID_MACRO /* not supported _Pragma("GCC diagnostic \
ignored \"-Wreserved-id-macro\"") */
#define WINPR_PRAGMA_DIAG_IGNORED_UNUSED_MACRO /* not supported _Pragma("GCC diagnostic ignored \
\"-Wunused-macro\"") */
#define WINPR_PRAGMA_DIAG_IGNORED_UNUSED_MACRO _Pragma("GCC diagnostic ignored \"-Wunused-macros\"")
#define WINPR_PRAGMA_DIAG_IGNORED_RESERVED_IDENTIFIER
/* not supported _Pragma("GCC diagnostic ignored \"-Wreserved-identifier\"") */
#define WINPR_PRAGMA_DIAG_IGNORED_ATOMIC_SEQ_CST /* not supported _Pragma("GCC diagnostic \