clang  6.0.0svn
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
clang::arcmt::trans::MigrationContext Class Reference

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/ARCMigrate/Transforms.h"

Collaboration diagram for clang::arcmt::trans::MigrationContext:
Collaboration graph
[legend]

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

MigrationPassPass
 
std::vector< GCAttrOccurrenceGCAttrs
 
llvm::DenseSet< unsigned > AttrSet
 
llvm::DenseSet< unsigned > RemovedAttrSet
 
llvm::DenseSet< unsigned > AtPropsWeak
 Set of raw '@' locations for 'assign' properties group that contain GC __weak. More...
 

Detailed Description

Definition at line 81 of file Transforms.h.

Member Typedef Documentation

◆ traverser_iterator

Definition at line 107 of file Transforms.h.

Constructor & Destructor Documentation

◆ MigrationContext()

clang::arcmt::trans::MigrationContext::MigrationContext ( MigrationPass pass)
inlineexplicit

Definition at line 104 of file Transforms.h.

◆ ~MigrationContext()

MigrationContext::~MigrationContext ( )

Definition at line 353 of file Transforms.cpp.

Member Function Documentation

◆ addPropertyAttribute()

bool MigrationContext::addPropertyAttribute ( StringRef  attr,
SourceLocation  atLoc 
)

◆ addTraverser()

void clang::arcmt::trans::MigrationContext::addTraverser ( ASTTraverser traverser)
inline

Definition at line 111 of file Transforms.h.

References clang::T.

Referenced by traverseAST().

◆ dumpGCAttrs()

void MigrationContext::dumpGCAttrs ( )

◆ isGCOwnedNonObjC()

bool MigrationContext::isGCOwnedNonObjC ( QualType  T)

◆ removePropertyAttribute()

bool clang::arcmt::trans::MigrationContext::removePropertyAttribute ( StringRef  fromAttr,
SourceLocation  atLoc 
)
inline

Definition at line 116 of file Transforms.h.

◆ rewritePropertyAttribute()

bool MigrationContext::rewritePropertyAttribute ( StringRef  fromAttr,
StringRef  toAttr,
SourceLocation  atLoc 
)

◆ traverse()

void MigrationContext::traverse ( TranslationUnitDecl TU)

Definition at line 509 of file Transforms.cpp.

Referenced by traverseAST().

◆ traversers_begin()

traverser_iterator clang::arcmt::trans::MigrationContext::traversers_begin ( )
inline

Definition at line 108 of file Transforms.h.

◆ traversers_end()

traverser_iterator clang::arcmt::trans::MigrationContext::traversers_end ( )
inline

Definition at line 109 of file Transforms.h.

Member Data Documentation

◆ AtPropsWeak

llvm::DenseSet<unsigned> clang::arcmt::trans::MigrationContext::AtPropsWeak

Set of raw '@' locations for 'assign' properties group that contain GC __weak.

Definition at line 102 of file Transforms.h.

Referenced by checkAllAtProps().

◆ AttrSet

llvm::DenseSet<unsigned> clang::arcmt::trans::MigrationContext::AttrSet

Definition at line 97 of file Transforms.h.

◆ GCAttrs

std::vector<GCAttrOccurrence> clang::arcmt::trans::MigrationContext::GCAttrs

Definition at line 96 of file Transforms.h.

Referenced by checkWeakGCAttrs(), and errorForGCAttrsOnNonObjC().

◆ Pass

MigrationPass& clang::arcmt::trans::MigrationContext::Pass

◆ RemovedAttrSet

llvm::DenseSet<unsigned> clang::arcmt::trans::MigrationContext::RemovedAttrSet

Definition at line 98 of file Transforms.h.

Referenced by checkAllAtProps(), and checkWeakGCAttrs().


The documentation for this class was generated from the following files: