Skip to content

Commit f1ba08c

Browse files
committed
Fix running the project as Debug under Windows
1 parent 0b80b1d commit f1ba08c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: .clang-tidy

+4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ Checks: >
2323
-clang-analyzer-optin.cplusplus.UninitializedObject,
2424
-misc-static-assert,
2525
-modernize-use-trailing-return-type,
26+
-modernize-use-nullptr,
2627
-bugprone-easily-swappable-parameters,
2728
-bugprone-exception-escape,
2829
-cert-env33-c,
2930
-cert-err58-cpp
3031
32+
# -modernize-use-nullptr is deactivated for x86
33+
# See: https://github.com/llvm/llvm-project/issues/53778
34+
3135
WarningsAsErrors: '*'
3236
HeaderFilterRegex: ''
3337
FormatStyle: none

Diff for: cmake/StaticAnalyzers.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL "Release")
33
if (CLANGTIDY)
44
message(STATUS "Using clang-tidy, found ${CLANGTIDY}")
55
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 ()
610
else ()
711
message(WARNING "clang-tidy requested but executable not found")
812
endif ()

0 commit comments

Comments
 (0)