]> granicus.if.org Git - clang/commit
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)
commit3cb5e19adf10673769111bae06cdb0b27b5a46cb
treee74f5a557c67eb50e0d4c0d716692011414a5b2f
parent5129a09a42cde8dfa8c490a1b8dd289a4bb93b23
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212191 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.td
include/clang/Basic/DiagnosticCommonKinds.td
lib/ARCMigrate/Internals.h
lib/ARCMigrate/TransformActions.cpp