Query module AV Rule 166

name
Sizeof with side effects
description
The sizeof operator should not be used on expressions that contain side effects. It is subtle whether the side effects will occur or not.
kind
problem
problem.severity
recommendation
precision
high
id
cpp/sizeof-side-effect
tags
reliability correctness external/jsf

Imports

AV_Rule_166
cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.