Query module DeadCodeCondition

name
Branching condition always evaluates to same value
description
The condition of the branching statement always evaluates to the same value. This means that only one branch will ever be executed.
kind
problem
id
cpp/dead-code-condition
problem.severity
warning
tags
reliability external/cwe/cwe-561

Imports

cpp

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

Predicates