diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-19 17:20:03 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-19 17:20:03 +0000 |
commit | d571363e459f84f7cee91c1c6a20ceb3692c9824 (patch) | |
tree | 8aa6a5a5674ad1faad60f61f6014b02153b0ac1a /clang/lib/ARCMigrate/Internals.h | |
parent | 08636b46333e088436476ab44764ba731f697a49 (diff) | |
download | bcm5719-llvm-d571363e459f84f7cee91c1c6a20ceb3692c9824.tar.gz bcm5719-llvm-d571363e459f84f7cee91c1c6a20ceb3692c9824.zip |
[arcmt] Add some additional driver flags to optionally emit or save the pre-migration ARC errors.
-arcmt-migrate-emit-errors : Emits the pre-migration ARC errors but it doesn't affect anything else
-arcmt-migrate-report-output : Writes out the pre-migration ARC errors to the provided plist file
rdar://9791454
llvm-svn: 135491
Diffstat (limited to 'clang/lib/ARCMigrate/Internals.h')
-rw-r--r-- | clang/lib/ARCMigrate/Internals.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/ARCMigrate/Internals.h b/clang/lib/ARCMigrate/Internals.h index 5fdfca9ef8e..acbb0a56b6f 100644 --- a/clang/lib/ARCMigrate/Internals.h +++ b/clang/lib/ARCMigrate/Internals.h @@ -32,8 +32,16 @@ public: void reportDiagnostics(Diagnostic &diags) const; bool hasErrors() const; + + typedef ListTy::const_iterator iterator; + iterator begin() const { return List.begin(); } + iterator end() const { return List.end(); } }; +void writeARCDiagsToPlist(const std::string &outPath, + llvm::ArrayRef<StoredDiagnostic> diags, + SourceManager &SM, const LangOptions &LangOpts); + class TransformActions { Diagnostic &Diags; CapturedDiagList &CapturedDiags; |