summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/Transforms.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-04 18:30:11 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-04 18:30:11 +0000
commitd12c332905c0e6ca882b54a82b00b00696fa9cb0 (patch)
tree88e022b69e826c104bfd75c628baa2d138630824 /clang/lib/ARCMigrate/Transforms.h
parent03fbe3ef81e75bcbc8a54a301bd617faee93b40b (diff)
downloadbcm5719-llvm-d12c332905c0e6ca882b54a82b00b00696fa9cb0.tar.gz
bcm5719-llvm-d12c332905c0e6ca882b54a82b00b00696fa9cb0.zip
[arcmt] Allow removing an -autorelease of a variable initialized in the previous statement.
rdar://11074996 llvm-svn: 171485
Diffstat (limited to 'clang/lib/ARCMigrate/Transforms.h')
-rw-r--r--clang/lib/ARCMigrate/Transforms.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/Transforms.h b/clang/lib/ARCMigrate/Transforms.h
index 69e91e76c93..cb7d1535c62 100644
--- a/clang/lib/ARCMigrate/Transforms.h
+++ b/clang/lib/ARCMigrate/Transforms.h
@@ -161,6 +161,7 @@ bool canApplyWeak(ASTContext &Ctx, QualType type,
bool AllowOnUnknownClass = false);
bool isPlusOneAssign(const BinaryOperator *E);
+bool isPlusOne(const Expr *E);
/// \brief 'Loc' is the end of a statement range. This returns the location
/// immediately after the semicolon following the statement.
OpenPOWER on IntegriCloud