ARCMigrate: Introduce proper diagnostics for TransformActions
This starts to switch ARCMT to use proper diagnostic messages. The old use was based on incorrect example code from the documentation. The logic of the previous report() functions has been retained to support any external consumers that might be intercepting diagnostic messages through the old interface. Note that the change in test/Misc/warning-flags.c isn't a new warning without a flag, rather one that was previously invisible to the test. Adding a flag might be a good idea though. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200124 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticCommonKinds.td 10 additions, 0 deletionsinclude/clang/Basic/DiagnosticCommonKinds.td
- lib/ARCMigrate/ARCMT.cpp 4 additions, 1 deletionlib/ARCMigrate/ARCMT.cpp
- lib/ARCMigrate/Internals.h 2 additions, 2 deletionslib/ARCMigrate/Internals.h
- lib/ARCMigrate/TransAPIUses.cpp 7 additions, 9 deletionslib/ARCMigrate/TransAPIUses.cpp
- lib/ARCMigrate/TransGCCalls.cpp 2 additions, 8 deletionslib/ARCMigrate/TransGCCalls.cpp
- lib/ARCMigrate/TransformActions.cpp 23 additions, 48 deletionslib/ARCMigrate/TransformActions.cpp
- test/Misc/warning-flags.c 2 additions, 1 deletiontest/Misc/warning-flags.c
Loading
Please register or sign in to comment