diff options
| author | Martin Hořeňovský | 2025-07-15 14:42:18 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-07-15 15:23:32 +0200 |
| commit | f7968e96975ed30231d5f5614a159e1baa7ba664 (patch) | |
| tree | fdf36b97fe8a590edbcdcfc213a76e0cc22f8e5a /src/catch2/internal/catch_fatal_condition_handler.cpp | |
| parent | 3ebc346bcb53635ac955e7c58de1095191415bb0 (diff) | |
| download | catch3-f7968e96975ed30231d5f5614a159e1baa7ba664.tar.gz | |
Constify various autoregistry globals to avoid clang-tidy complaints
Closes #2582
Diffstat (limited to 'src/catch2/internal/catch_fatal_condition_handler.cpp')
| -rw-r--r-- | src/catch2/internal/catch_fatal_condition_handler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_fatal_condition_handler.cpp b/src/catch2/internal/catch_fatal_condition_handler.cpp index 9ef5b217..26f894d6 100644 --- a/src/catch2/internal/catch_fatal_condition_handler.cpp +++ b/src/catch2/internal/catch_fatal_condition_handler.cpp @@ -79,7 +79,7 @@ namespace Catch { // There is no 1-1 mapping between signals and windows exceptions. // Windows can easily distinguish between SO and SigSegV, // but SigInt, SigTerm, etc are handled differently. - static SignalDefs signalDefs[] = { + static constexpr SignalDefs signalDefs[] = { { EXCEPTION_ILLEGAL_INSTRUCTION, "SIGILL - Illegal instruction signal" }, { EXCEPTION_STACK_OVERFLOW, "SIGSEGV - Stack overflow" }, { EXCEPTION_ACCESS_VIOLATION, "SIGSEGV - Segmentation violation signal" }, @@ -150,7 +150,7 @@ namespace Catch { const char* name; }; - static SignalDefs signalDefs[] = { + static constexpr SignalDefs signalDefs[] = { { SIGINT, "SIGINT - Terminal interrupt signal" }, { SIGILL, "SIGILL - Illegal instruction signal" }, { SIGFPE, "SIGFPE - Floating point error signal" }, |