Skip to content

Commit b36bb84

Browse files
committed
Extend CPPCHECK scope to quantized kernels
Remove the broad kernels/quantized CPPCHECK exclusion and keep the remaining suppressions scoped to that tree. Quantized kernels include NEON-gated paths, registration helpers, and intentional floating point narrowing for quantization behavior. Cppcheck does not see every configuration or call path, so keep those findings suppressed only for kernels/quantized. Signed-off-by: Per Held <per.held@arm.com> Change-Id: I0d8b5e3fdf4523f929c75aa373a520ab92178e75
1 parent 7d365ec commit b36bb84

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.lintrunner.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ exclude_patterns = [
195195
# Kernel areas to onboard separately.
196196
'kernels/optimized/**',
197197
'kernels/portable/**',
198-
'kernels/quantized/**',
199198
'kernels/test/**',
200199

201200
# Runtime areas to onboard incrementally.
@@ -229,6 +228,12 @@ command = [
229228
'--extra-arg=--suppress=unknownMacro:*kernels/prim_ops/*',
230229
'--extra-arg=--suppress=syntaxError:*kernels/prim_ops/*',
231230
'--extra-arg=--suppress=unusedFunction:*kernels/prim_ops/*',
231+
# Quantized kernels have NEON-gated code and registration helpers that
232+
# cppcheck cannot see in every configuration.
233+
'--extra-arg=--suppress=unreadVariable:*kernels/quantized/*',
234+
'--extra-arg=--suppress=unusedFunction:*kernels/quantized/*',
235+
'--extra-arg=--suppress=constParameterReference:*kernels/quantized/*',
236+
'--extra-arg=--suppress=suspiciousFloatingPointCast:*kernels/quantized/*',
232237
'--',
233238
'@{{PATHSFILE}}'
234239
]

0 commit comments

Comments
 (0)