clang 24.0.0git
VarBypassDetector.cpp File Reference
#include "VarBypassDetector.h"
#include "CodeGenModule.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Expr.h"
#include "clang/AST/Stmt.h"

Go to the source code of this file.

Functions

static bool hasJumpStmts (const Stmt *Body)
 True if the body contains a goto, switch, or indirect goto.

Function Documentation

◆ hasJumpStmts()

bool hasJumpStmts ( const Stmt * Body)
static

True if the body contains a goto, switch, or indirect goto.

Lets Init() skip scope building for the common jump-free function, this is a minor optimization win.

Definition at line 22 of file VarBypassDetector.cpp.

References clang::Stmt::children(), and clang::Stmt::getStmtClass().

Referenced by clang::CodeGen::VarBypassDetector::Init().