diff options
author | Alp Toker <alp@nuanti.com> | 2014-07-02 17:08:00 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-07-02 17:08:00 +0000 |
commit | 3cb5e19adf10673769111bae06cdb0b27b5a46cb (patch) | |
tree | e74f5a557c67eb50e0d4c0d716692011414a5b2f /include/clang/Basic/DiagnosticCommonKinds.td | |
parent | 5129a09a42cde8dfa8c490a1b8dd289a4bb93b23 (diff) |
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
Diffstat (limited to 'include/clang/Basic/DiagnosticCommonKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticCommonKinds.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticCommonKinds.td b/include/clang/Basic/DiagnosticCommonKinds.td index 74d628e519..b3c77b8f5f 100644 --- a/include/clang/Basic/DiagnosticCommonKinds.td +++ b/include/clang/Basic/DiagnosticCommonKinds.td @@ -138,7 +138,7 @@ def err_module_file_conflict : Error<"module '%0' found in both '%1' and '%2'">; // TransformActions // TODO: Use a custom category name to distinguish rewriter errors. -def err_mt_message : Error<"[rewriter] %0">; +def err_mt_message : Error<"[rewriter] %0">, SuppressInSystemHeader; def warn_mt_message : Warning<"[rewriter] %0">; def note_mt_message : Note<"[rewriter] %0">; |