CodeQL library for C/C++
Search

Module LogicalOperation

Provides classes for modeling logical operations such as !, &&, ||, and the ternary ? : expression.

Import path

import semmle.code.cpp.exprs.LogicalOperation

Imports

Expr

Provides classes modeling C/C++ expressions.

Classes

BinaryLogicalOperation

A C/C++ binary logical operation.

ConditionalExpr

A C/C++ conditional ternary expression. a = (b > c ? d : e);

LogicalAndExpr

A C/C++ logical AND expression. if (a && b) { }

LogicalOrExpr

A C/C++ logical OR expression. if (a || b) { }

NotExpr

A C/C++ logical not expression. c = !a;

UnaryLogicalOperation

A C/C++ unary logical operation.