forked from FirebirdSQL/php-firebird
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cppcheck-suppressions
More file actions
55 lines (47 loc) · 2.31 KB
/
.cppcheck-suppressions
File metadata and controls
55 lines (47 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Cppcheck suppressions file for php-firebird
# ============================================
#
# This file documents known false positives due to cppcheck's
# single-file analysis limitation. These functions are declared
# in headers and used across multiple translation units.
#
# Format: [errorId]:[filename]:[line]
#
# See docs/CPPCHECK_CONFIGURATION_RESEARCH.md for details.
# -----------------------------------------------------
# fbird_datetime.c - Cross-file functions
# -----------------------------------------------------
# These functions are declared in fbird_datetime.h and used by:
# - firebird.c (lines 3214, 3233)
# - fbird_query_bind.c (lines 696, 738)
# staticFunction false positives - functions have external linkage by design
staticFunction:fbird_datetime.c:50
staticFunction:fbird_datetime.c:270
staticFunction:fbird_datetime.c:336
# unusedFunction false positive - function used in other TUs
unusedFunction:fbird_datetime.c:139
# -----------------------------------------------------
# System/External header issues
# -----------------------------------------------------
# Missing system includes that are correctly resolved at compile time
missingIncludeSystem
# Intentional preprocessor error (Firebird version check)
# Line may vary - suppress for entire file
preprocessorErrorDirective:php_fbird_includes.h
# -----------------------------------------------------
# External header false positives
# -----------------------------------------------------
# Zend's EMPTY_SWITCH_DEFAULT_CASE() macro expands to __builtin_unreachable()
# which cppcheck cannot evaluate - reports missing return on unreachable path
# Triggered via fbird_transaction.c -> zend_compile.h:413
missingReturn:*Zend/zend_compile.h
# Firebird SDK Interface.h uses throw; to rethrow current exception inside
# a status-conversion wrapper - only called from catch blocks higher up the
# call stack, but cppcheck cannot verify cross-function exception flow
rethrowNoCurrentException:*firebird/Interface.h
# -----------------------------------------------------
# Notes:
# - Line numbers may need adjustment if source files change significantly
# - To regenerate line numbers after code changes, run cppcheck and update
# - Alternative: use file-level suppression (staticFunction:fbird_datetime.c)
# -----------------------------------------------------