clang API Documentation

Classes | Public Types | Public Member Functions | Public Attributes
clang::arcmt::trans::MigrationContext Class Reference

#include <Transforms.h>

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

List of all members.

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< unsignedAttrSet
llvm::DenseSet< unsignedRemovedAttrSet
llvm::DenseSet< unsignedAtPropsWeak
 Set of raw '@' locations for 'assign' properties group that contain GC __weak.

Detailed Description

Definition at line 81 of file Transforms.h.


Member Typedef Documentation

Definition at line 107 of file Transforms.h.


Constructor & Destructor Documentation

Definition at line 104 of file Transforms.h.

Definition at line 362 of file Transforms.cpp.

References traversers_begin(), and traversers_end().


Member Function Documentation

Definition at line 111 of file Transforms.h.

Referenced by traverseAST().

Definition at line 116 of file Transforms.h.

References rewritePropertyAttribute().

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

Definition at line 518 of file Transforms.cpp.

References traversers_begin(), and traversers_end().

Referenced by traverseAST().

Definition at line 108 of file Transforms.h.

Referenced by traverse(), and ~MigrationContext().

Definition at line 109 of file Transforms.h.

Referenced by traverse(), and ~MigrationContext().


Member Data Documentation

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

Definition at line 102 of file Transforms.h.

Referenced by checkAllAtProps().

Definition at line 97 of file Transforms.h.

Definition at line 96 of file Transforms.h.

Referenced by checkWeakGCAttrs(), dumpGCAttrs(), and errorForGCAttrsOnNonObjC().

Definition at line 98 of file Transforms.h.

Referenced by checkAllAtProps(), and checkWeakGCAttrs().


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