Skip to content

Commit ac011b0

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 875cc58 commit ac011b0

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
@@ -196,7 +196,6 @@ exclude_patterns = [
196196
'kernels/aten/**',
197197
'kernels/optimized/**',
198198
'kernels/portable/**',
199-
'kernels/quantized/**',
200199
'kernels/test/**',
201200

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

0 commit comments

Comments
 (0)