CodeQL library for C/C++
codeql/cpp-all 9.0.0 (changelog, source)
Search

Class EmptinessSuccessor

An emptiness control flow successor.

For example, this program fragment:

foreach (var arg in args)
{
    yield return arg;
}
yield return "";

has a control flow graph containing emptiness successors:

          args
           |
       loop-header------<-----
          / \                 \
         /   \                |
        /     \               |
       /       \              |
    empty    non-empty        |
      |          \            |
yield return ""   \           |
                var arg       |
                   |          |
            yield return arg  |
                    \_________/

Import path

import codeql.controlflow.SuccessorType

Direct supertypes

Indirect supertypes

Predicates

getKind

Gets the condition kind of this conditional successor.

getValue

Gets the Boolean value of this successor.

isEmpty

Holds if this is an empty successor.

toString

Gets a textual representation of this successor type.

Inherited predicates

getDual

Gets the dual of this conditional successor. That is, the conditional successor of the same kind but with the opposite value.

from ConditionalSuccessorImpl