summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/Transforms.h
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-10-11 17:35:22 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-10-11 17:35:22 +0000
commit1d27ffd6978b73f25b800097c517db768eb53cc0 (patch)
treef14e9e92df0ae812416268243900e159c6b39e18 /clang/lib/ARCMigrate/Transforms.h
parent795d2b9f95f2880b9e91d2521518d890a71673d2 (diff)
downloadbcm5719-llvm-1d27ffd6978b73f25b800097c517db768eb53cc0.tar.gz
bcm5719-llvm-1d27ffd6978b73f25b800097c517db768eb53cc0.zip
ObjectiveC migrator: fixes a bug when in NS_ENUM/NS_OPTIONS
migration, the typedef has annotations. // rdar://15200602 llvm-svn: 192468
Diffstat (limited to 'clang/lib/ARCMigrate/Transforms.h')
-rw-r--r--clang/lib/ARCMigrate/Transforms.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/ARCMigrate/Transforms.h b/clang/lib/ARCMigrate/Transforms.h
index e20fe5927f3..eab5e85d56b 100644
--- a/clang/lib/ARCMigrate/Transforms.h
+++ b/clang/lib/ARCMigrate/Transforms.h
@@ -167,13 +167,15 @@ bool isPlusOne(const Expr *E);
/// immediately after the semicolon following the statement.
/// If no semicolon is found or the location is inside a macro, the returned
/// source location will be invalid.
-SourceLocation findLocationAfterSemi(SourceLocation loc, ASTContext &Ctx);
+SourceLocation findLocationAfterSemi(SourceLocation loc, ASTContext &Ctx,
+ bool IsDecl = false);
/// \brief 'Loc' is the end of a statement range. This returns the location
/// of the semicolon following the statement.
/// If no semicolon is found or the location is inside a macro, the returned
/// source location will be invalid.
-SourceLocation findSemiAfterLocation(SourceLocation loc, ASTContext &Ctx);
+SourceLocation findSemiAfterLocation(SourceLocation loc, ASTContext &Ctx,
+ bool IsDecl = false);
bool hasSideEffects(Expr *E, ASTContext &Ctx);
bool isGlobalVar(Expr *E);
OpenPOWER on IntegriCloud