aboutsummaryrefslogtreecommitdiff
path: root/lib/ARCMigrate/Internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ARCMigrate/Internals.h')
-rw-r--r--lib/ARCMigrate/Internals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ARCMigrate/Internals.h b/lib/ARCMigrate/Internals.h
index 4f9b138a06..5fdfca9ef8 100644
--- a/lib/ARCMigrate/Internals.h
+++ b/lib/ARCMigrate/Internals.h
@@ -37,6 +37,7 @@ public:
class TransformActions {
Diagnostic &Diags;
CapturedDiagList &CapturedDiags;
+ bool ReportedErrors;
void *Impl; // TransformActionsImpl.
public:
@@ -88,6 +89,8 @@ public:
void reportNote(llvm::StringRef note, SourceLocation loc,
SourceRange range = SourceRange());
+ bool hasReportedErrors() const { return ReportedErrors; }
+
class RewriteReceiver {
public:
virtual ~RewriteReceiver();