We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a5d033 commit bf1ee22Copy full SHA for bf1ee22
c/misra/src/codingstandards/c/misra/EssentialTypes.qll
@@ -78,8 +78,11 @@ private IntegralType stlr(Expr const) {
78
*/
79
EssentialTypeCategory getEssentialTypeCategory(Type type) {
80
exists(Type essentialType |
81
- // Resolve typedefs to ensure
82
- essentialType = type.getUnspecifiedType()
+ if type instanceof MisraBoolType
+ then essentialType = type
83
+ else
84
+ // If not a bool type, resolve the typedefs to determine the actual type
85
+ essentialType = type.getUnspecifiedType()
86
|
87
result = EssentiallyBooleanType() and essentialType instanceof MisraBoolType
88
or
0 commit comments