CodeQL library for C/C++
Search

Module ComparisonOperation

Provides classes for modeling comparisons such as ==, != and <.

Import path

import semmle.code.cpp.exprs.ComparisonOperation

Imports

Expr

Provides classes modeling C/C++ expressions.

Classes

ComparisonOperation

A C/C++ comparison operation, that is, either an equality operation or a relational operation.

EQExpr

A C/C++ equal expression. bool c = (a == b);

EqualityOperation

A C/C++ equality operation, that is, either “==” or “!=”.

GEExpr

A C/C++ greater than or equal expression. bool c = (a >= b);

GTExpr

A C/C++ greater than expression. bool c = (a > b);

LEExpr

A C/C++ less than or equal expression. bool c = (a <= b);

LTExpr

A C/C++ less than expression. bool c = (a < b);

NEExpr

A C/C++ not equal expression. bool c = (a != b);

RelationalOperation

A C/C++ relational operation, that is, one of <=, <, >, or >=.