clang 22.0.0git
|
The class detects jumps which bypass local variables declaration: goto L; int a; L: More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/VarBypassDetector.h"
Public Member Functions | |
void | Init (CodeGenModule &CGM, const Stmt *Body) |
Clear the object and pre-process for the given statement, usually function body statement. | |
bool | IsBypassed (const VarDecl *D) const |
Returns true if the variable declaration was by bypassed by any goto or switch statement. |
The class detects jumps which bypass local variables declaration: goto L; int a; L:
This is simplified version of JumpScopeChecker. Primary differences:
Definition at line 40 of file VarBypassDetector.h.
void VarBypassDetector::Init | ( | CodeGenModule & | CGM, |
const Stmt * | Body ) |
Clear the object and pre-process for the given statement, usually function body statement.
Definition at line 21 of file VarBypassDetector.cpp.
Returns true if the variable declaration was by bypassed by any goto or switch statement.
Definition at line 58 of file VarBypassDetector.h.