Some checks failed
Build and Test / build (debug, clang) (push) Has been cancelled
Build and Test / build (debug, gcc) (push) Has been cancelled
Build and Test / build (release, clang) (push) Has been cancelled
Build and Test / build (release, gcc) (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
Every catch now handles the exception or records it with STRAWBERRY_NOTE_SWALLOWED() (strawberry/swallowed.hpp): an atomic count, exported in status as resources.swallowed_exceptions, plus a file:line log line written with write(2), so it is safe out of memory and in destructors. The 16 empty catches (store error fallbacks, destructors, YARA compiler callback, thread entry logging) now use it. Status also reports thread_errors, which was counted but never exported. Enforced by source invariant R7 (with a self-test fixture) and by clang-tidy bugprone-empty-catch in a new .clang-tidy (errors; inherits parent config). AGENTS.md and CLAUDE.md state the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
407 B
YAML
11 lines
407 B
YAML
# Project checks, enforced over time. Inherits any parent/user config.
|
|
# bugprone-empty-catch mirrors source invariant R7: a catch block is never
|
|
# empty; handle the exception or record it with STRAWBERRY_NOTE_SWALLOWED().
|
|
InheritParentConfig: true
|
|
Checks: >
|
|
bugprone-empty-catch
|
|
WarningsAsErrors: >
|
|
bugprone-empty-catch
|
|
CheckOptions:
|
|
- key: bugprone-empty-catch.IgnoreCatchWithKeywords
|
|
value: ''
|