Module Stmt

Import path

semmle.code.cpp.stmts.Stmt

Imports

Classes

AsmStmt

A C/C++ ‘asm’ statement.

BreakStmt

A C/C++ ‘break’ statement.

CatchAnyBlock

A C++ ‘catch-any block’, that is, catch(...) {stmts}.

CatchBlock

A ‘catch block’, from either C++’s catch or Objective C’s @catch.

ComputedGotoStmt

A ‘goto’ statement whose target is computed by a non-constant expression (a non-standard extension to C/C++).

ConditionalStmt

A C/C++ conditional statement, that is, either an ‘if’ statement or a ‘switch’ statement.

ContinueStmt

A C/C++ ‘continue’ statement.

ControlStructure

A C/C++ control structure, that is, either a conditional statement or a loop.

DeclStmt

A C/C++ ‘declaration’ statement.

DefaultCase

A C/C++ ‘default case’ statement.

DoStmt

A C/C++ ‘do’ statement.

EmptyStmt

A C/C++ ‘empty’ statement.

EnumSwitch

A C/C++ ‘switch’ statement where the controlling expression has an enum type.

ExprStmt

A C/C++ ‘expression’ statement.

FinallyEnd

DEPRECATED: Objective-C is no longer supported. The end of a ‘finally’ clause.

ForStmt

A C/C++ ‘for’ statement.

FunctionTryStmt

A C++ ‘function try’ statement.

GotoStmt

A C/C++ ‘goto’ statement which jumps to a label.

Handler

A handler for a ‘try’ statement.

IfStmt

A C/C++ ‘if’ statement.

JumpStmt

A C/C++ jump statement.

LabelStmt

A C/C++ ‘label’ statement.

Loop

A C/C++ loop, that is, either a ‘while’ loop, a ‘for’ loop, or a ‘do’ loop.

MicrosoftTryExceptStmt

A structured exception handling ‘try except’ statement, that is, a __try __except statement. This is a Microsoft C/C++ extension.

MicrosoftTryFinallyStmt

A structured exception handling ‘try finally’ statement, that is, a __try __finally statement. This is a Microsoft C/C++ extension.

MicrosoftTryStmt

A structured exception handling ‘try’ statement, that is, a __try __except or __try __finally statement. This is a Microsoft C/C++ extension.

RangeBasedForStmt

A C++11 range-based ‘for’ statement.

ReturnStmt

A C/C++ ‘return’ statement.

Stmt

A C/C++ statement.

StmtParent

An element that is the parent of a statement in the C/C++ AST.

SwitchCase

A C/C++ ‘switch case’ statement.

SwitchStmt

A C/C++ ‘switch’ statement.

TryStmt

A C/C++ ‘try’ statement.

VlaDeclStmt

A C99 statement which declares a variable length array.

VlaDimensionStmt

A C99 statement which computes the size of a single dimension of a variable length array.

WhileStmt

A C/C++ ‘while’ statement.