clang 20.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/ARCMigrate/Transforms.h"
Classes | |
struct | GCAttrOccurrence |
Public Types | |
typedef std::vector< ASTTraverser * >::iterator | traverser_iterator |
Public Member Functions | |
MigrationContext (MigrationPass &pass) | |
~MigrationContext () | |
traverser_iterator | traversers_begin () |
traverser_iterator | traversers_end () |
void | addTraverser (ASTTraverser *traverser) |
bool | isGCOwnedNonObjC (QualType T) |
bool | removePropertyAttribute (StringRef fromAttr, SourceLocation atLoc) |
bool | rewritePropertyAttribute (StringRef fromAttr, StringRef toAttr, SourceLocation atLoc) |
bool | addPropertyAttribute (StringRef attr, SourceLocation atLoc) |
void | traverse (TranslationUnitDecl *TU) |
void | dumpGCAttrs () |
Public Attributes | |
MigrationPass & | Pass |
std::vector< GCAttrOccurrence > | GCAttrs |
llvm::DenseSet< SourceLocation > | AttrSet |
llvm::DenseSet< SourceLocation > | RemovedAttrSet |
llvm::DenseSet< SourceLocation > | AtPropsWeak |
Set of raw '@' locations for 'assign' properties group that contain GC __weak. | |
Definition at line 80 of file Transforms.h.
typedef std::vector<ASTTraverser*>::iterator clang::arcmt::trans::MigrationContext::traverser_iterator |
Definition at line 106 of file Transforms.h.
|
inlineexplicit |
Definition at line 103 of file Transforms.h.
MigrationContext::~MigrationContext | ( | ) |
Definition at line 353 of file Transforms.cpp.
References E, traversers_begin(), and traversers_end().
bool MigrationContext::addPropertyAttribute | ( | StringRef | attr, |
SourceLocation | atLoc | ||
) |
Definition at line 461 of file Transforms.cpp.
References clang::ast_matchers::attr, clang::arcmt::MigrationPass::Ctx, clang::ASTContext::getLangOpts(), clang::Token::getLocation(), clang::Token::getRawIdentifier(), clang::ASTContext::getSourceManager(), clang::arcmt::TransformActions::insert(), clang::Token::is(), clang::SourceLocation::isMacroID(), clang::Token::isNot(), clang::Lexer::LexFromRawLexer(), Pass, SM, and clang::arcmt::MigrationPass::TA.
Referenced by checkAllAtProps().
|
inline |
Definition at line 110 of file Transforms.h.
Referenced by traverseAST().
void MigrationContext::dumpGCAttrs | ( | ) |
Definition at line 330 of file TransGCAttrs.cpp.
References clang::arcmt::MigrationPass::Ctx, GCAttrs, clang::ASTContext::getSourceManager(), Pass, and clang::arcmt::trans::MigrationContext::GCAttrOccurrence::Strong.
Definition at line 359 of file Transforms.cpp.
References clang::arcmt::MigrationPass::Ctx, clang::Type::getAs(), clang::ASTContext::getBaseElementType(), clang::Type::getPointeeType(), clang::Type::isArrayType(), Pass, and clang::T.
|
inline |
Definition at line 115 of file Transforms.h.
References rewritePropertyAttribute().
bool MigrationContext::rewritePropertyAttribute | ( | StringRef | fromAttr, |
StringRef | toAttr, | ||
SourceLocation | atLoc | ||
) |
Definition at line 379 of file Transforms.cpp.
References clang::arcmt::MigrationPass::Ctx, clang::ASTContext::getLangOpts(), clang::Token::getLocation(), clang::Token::getRawIdentifier(), clang::ASTContext::getSourceManager(), clang::Token::is(), clang::SourceLocation::isInvalid(), clang::SourceLocation::isMacroID(), clang::Token::isNot(), clang::SourceLocation::isValid(), clang::Lexer::LexFromRawLexer(), Pass, clang::arcmt::TransformActions::remove(), clang::arcmt::TransformActions::replaceText(), SM, clang::Token::startToken(), and clang::arcmt::MigrationPass::TA.
Referenced by checkAllAtProps(), and removePropertyAttribute().
void MigrationContext::traverse | ( | TranslationUnitDecl * | TU | ) |
Definition at line 509 of file Transforms.cpp.
References E, traversers_begin(), and traversers_end().
Referenced by traverseAST().
|
inline |
Definition at line 107 of file Transforms.h.
Referenced by traverse(), and ~MigrationContext().
|
inline |
Definition at line 108 of file Transforms.h.
Referenced by traverse(), and ~MigrationContext().
llvm::DenseSet<SourceLocation> clang::arcmt::trans::MigrationContext::AtPropsWeak |
Set of raw '@' locations for 'assign' properties group that contain GC __weak.
Definition at line 101 of file Transforms.h.
Referenced by checkAllAtProps().
llvm::DenseSet<SourceLocation> clang::arcmt::trans::MigrationContext::AttrSet |
Definition at line 96 of file Transforms.h.
std::vector<GCAttrOccurrence> clang::arcmt::trans::MigrationContext::GCAttrs |
Definition at line 95 of file Transforms.h.
Referenced by checkWeakGCAttrs(), dumpGCAttrs(), and errorForGCAttrsOnNonObjC().
MigrationPass& clang::arcmt::trans::MigrationContext::Pass |
Definition at line 84 of file Transforms.h.
Referenced by addPropertyAttribute(), checkAllAtProps(), checkWeakGCAttrs(), dumpGCAttrs(), errorForGCAttrsOnNonObjC(), isGCOwnedNonObjC(), rewritePropertyAttribute(), clang::arcmt::trans::BlockObjCVariableTraverser::traverseBody(), and clang::arcmt::trans::GCAttrsTraverser::traverseTU().
llvm::DenseSet<SourceLocation> clang::arcmt::trans::MigrationContext::RemovedAttrSet |
Definition at line 97 of file Transforms.h.
Referenced by checkAllAtProps(), and checkWeakGCAttrs().