ARCMigrate: simplify diagnostic handling
authorAlp Toker <alp@nuanti.com>
Wed, 2 Jul 2014 17:08:00 +0000 (17:08 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 2 Jul 2014 17:08:00 +0000 (17:08 +0000)
commit379b97f2856afebc4fbdfb8bdde2251c046a10a3
treef927fd7be3b5c4ebb73f4a518be6e449598fae9d
parent292fa1907786cb4b0d11641a5ef34889b012b5b1
ARCMigrate: simplify diagnostic handling

Recent enhancements in the diagnostics engine mean that
TransformActions::report() no longer needs to duplicate this suppression logic.

That's great because the old code was flawed and would have attached notes to
the wrong primary diagnostic in non-trivial use.

With these changes it becomes safe to use reportNote() freely in the migration
tool.

llvm-svn: 212191
clang/include/clang/Basic/Diagnostic.td
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/lib/ARCMigrate/Internals.h
clang/lib/ARCMigrate/TransformActions.cpp