clang 20.0.0git
Functions
TransEmptyStatementsAndDealloc.cpp File Reference
#include "Transforms.h"
#include "Internals.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Basic/SourceManager.h"

Go to the source code of this file.

Functions

static bool isEmptyARCMTMacroStatement (NullStmt *S, std::vector< SourceLocation > &MacroLocs, ASTContext &Ctx)
 
static bool isBodyEmpty (CompoundStmt *body, ASTContext &Ctx, std::vector< SourceLocation > &MacroLocs)
 
static void cleanupDeallocOrFinalize (MigrationPass &pass)
 

Function Documentation

◆ cleanupDeallocOrFinalize()

static void cleanupDeallocOrFinalize ( MigrationPass pass)
static

◆ isBodyEmpty()

static bool isBodyEmpty ( CompoundStmt body,
ASTContext Ctx,
std::vector< SourceLocation > &  MacroLocs 
)
static

Definition at line 184 of file TransEmptyStatementsAndDealloc.cpp.

References clang::CompoundStmt::body().

Referenced by cleanupDeallocOrFinalize().

◆ isEmptyARCMTMacroStatement()

static bool isEmptyARCMTMacroStatement ( NullStmt S,
std::vector< SourceLocation > &  MacroLocs,
ASTContext Ctx 
)
static