clang 20.0.0git
|
#include "Transforms.h"
#include "Internals.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "clang/Sema/SemaDiagnostic.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Support/SaveAndRestore.h"
Go to the source code of this file.
Typedefs | |
typedef llvm::TinyPtrVector< ObjCPropertyDecl * > | IndivPropsTy |
Functions | |
static void | errorForGCAttrsOnNonObjC (MigrationContext &MigrateCtx) |
static void | checkWeakGCAttrs (MigrationContext &MigrateCtx) |
static void | checkAllAtProps (MigrationContext &MigrateCtx, SourceLocation AtLoc, IndivPropsTy &IndProps) |
static void | checkAllProps (MigrationContext &MigrateCtx, std::vector< ObjCPropertyDecl * > &AllProps) |
typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy |
Definition at line 217 of file TransGCAttrs.cpp.
|
static |
Definition at line 219 of file TransGCAttrs.cpp.
References clang::arcmt::trans::MigrationContext::addPropertyAttribute(), clang::arcmt::trans::MigrationContext::AtPropsWeak, clang::arcmt::trans::canApplyWeak(), clang::arcmt::TransformActions::clearDiagnostic(), clang::arcmt::MigrationPass::Ctx, clang::TypeLoc::getAs(), clang::CharSourceRange::getBegin(), clang::SourceManager::getImmediateExpansionRange(), clang::QualType::getObjCLifetime(), clang::ObjCPropertyDecl::getPropertyAttributesAsWritten(), clang::ASTContext::getSourceManager(), clang::TypeSourceInfo::getType(), clang::TypeSourceInfo::getTypeLoc(), clang::ObjCPropertyDecl::getTypeSourceInfo(), clang::SourceLocation::isMacroID(), clang::Type::isObjCRetainableType(), clang::ObjCPropertyAttribute::kind_assign, clang::ObjCPropertyAttribute::kind_noattr, Loc, clang::Qualifiers::OCL_Strong, clang::Qualifiers::OCL_Weak, clang::arcmt::trans::MigrationContext::Pass, clang::arcmt::TransformActions::remove(), clang::arcmt::trans::MigrationContext::RemovedAttrSet, clang::arcmt::trans::MigrationContext::rewritePropertyAttribute(), clang::T, and clang::arcmt::MigrationPass::TA.
Referenced by checkAllProps().
|
static |
Definition at line 296 of file TransGCAttrs.cpp.
References checkAllAtProps(), E, clang::ObjCPropertyDecl::getAtLoc(), clang::ObjCPropertyDecl::getPropertyAttributesAsWritten(), clang::SourceLocation::isInvalid(), clang::ObjCPropertyAttribute::kind_assign, and clang::ObjCPropertyAttribute::kind_readonly.
Referenced by clang::arcmt::trans::GCAttrsTraverser::traverseTU().
|
static |
Definition at line 195 of file TransGCAttrs.cpp.
References clang::arcmt::trans::canApplyWeak(), clang::arcmt::TransformActions::clearDiagnostic(), clang::arcmt::MigrationPass::Ctx, clang::arcmt::trans::MigrationContext::GCAttrs, clang::arcmt::trans::MigrationContext::Pass, clang::arcmt::trans::MigrationContext::RemovedAttrSet, clang::arcmt::TransformActions::replaceText(), clang::arcmt::MigrationPass::TA, and clang::arcmt::trans::MigrationContext::GCAttrOccurrence::Weak.
Referenced by clang::arcmt::trans::GCAttrsTraverser::traverseTU().
|
static |
Definition at line 179 of file TransGCAttrs.cpp.
References clang::arcmt::trans::MigrationContext::GCAttrs, clang::arcmt::trans::MigrationContext::Pass, clang::arcmt::TransformActions::reportError(), and clang::arcmt::MigrationPass::TA.
Referenced by clang::arcmt::trans::GCAttrsTraverser::traverseTU().