File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,15 @@ Checks: >
23
23
-clang-analyzer-optin.cplusplus.UninitializedObject,
24
24
-misc-static-assert,
25
25
-modernize-use-trailing-return-type,
26
+ -modernize-use-nullptr,
26
27
-bugprone-easily-swappable-parameters,
27
28
-bugprone-exception-escape,
28
29
-cert-env33-c,
29
30
-cert-err58-cpp
30
31
32
+ # -modernize-use-nullptr is deactivated for x86
33
+ # See: https://github.com/llvm/llvm-project/issues/53778
34
+
31
35
WarningsAsErrors : ' *'
32
36
HeaderFilterRegex : ' '
33
37
FormatStyle : none
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Release")
3
3
if (CLANGTIDY)
4
4
message (STATUS "Using clang-tidy, found ${CLANGTIDY} " )
5
5
set (CMAKE_CXX_CLANG_TIDY "${CLANGTIDY} ;-extra-arg=-Wno-unknown-warning-option" )
6
+ # Explicitly enable exceptions on Windows
7
+ if (WIN32 )
8
+ set (CMAKE_CXX_CLANG_TIDY "${CMAKE_CXX_CLANG_TIDY} ;--extra-arg=/EHsc" )
9
+ endif ()
6
10
else ()
7
11
message (WARNING "clang-tidy requested but executable not found" )
8
12
endif ()
You can’t perform that action at this time.
0 commit comments