Query module CompareWhereAssignMeant

name
Comparison where assignment was intended
description
The ‘==’ operator may have been used accidentally, where ‘=’ was intended, resulting in a useless test.
kind
problem
problem.severity
error
precision
high
id
cpp/compare-where-assign-meant
tags
reliability correctness external/cwe/cwe-482

Imports

cpp

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