Query module AmbiguouslySignedBitField

name
Ambiguously signed bit-field member
description
Bit fields with integral types should have explicit signedness only. For example, use unsigned int rather than int. It is implementation specific whether an int-typed bit field is signed, so there could be unexpected sign extension or overflow.
kind
problem
problem.severity
warning
precision
high
id
cpp/ambiguously-signed-bit-field
tags
reliability readability language-features external/cwe/cwe-190

Imports

cpp

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