clang 20.0.0git
|
#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) |
|
static |
Definition at line 193 of file TransEmptyStatementsAndDealloc.cpp.
References clang::arcmt::MigrationPass::ARCMTMacroLocs, clang::arcmt::MigrationPass::Ctx, clang::DeclContext::decls_begin(), clang::DeclContext::decls_end(), E, clang::IdentifierTable::get(), clang::ObjCMethodDecl::getCompoundBody(), clang::SelectorTable::getNullarySelector(), clang::ObjCMethodDecl::getSelectorStartLoc(), clang::ObjCMethodDecl::getSourceRange(), clang::ASTContext::getTranslationUnitDecl(), I, clang::ASTContext::Idents, isBodyEmpty(), clang::OMF_dealloc, clang::arcmt::TransformActions::remove(), clang::arcmt::TransformActions::replaceText(), clang::ASTContext::Selectors, and clang::arcmt::MigrationPass::TA.
Referenced by clang::arcmt::trans::removeEmptyStatementsAndDeallocFinalize().
|
static |
Definition at line 184 of file TransEmptyStatementsAndDealloc.cpp.
References clang::CompoundStmt::body(), and I.
Referenced by cleanupDeallocOrFinalize().
|
static |
Definition at line 31 of file TransEmptyStatementsAndDealloc.cpp.
References clang::arcmt::trans::findSemiAfterLocation(), clang::arcmt::getARCMTMacroName(), clang::ASTContext::getSourceManager(), I, clang::SourceLocation::isFileID(), clang::SourceLocation::isInvalid(), clang::SourceLocation::isMacroID(), and SM.