From 3cb5e19adf10673769111bae06cdb0b27b5a46cb Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Wed, 2 Jul 2014 17:08:00 +0000 Subject: 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/DiagnosticCommonKinds.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/clang/Basic/DiagnosticCommonKinds.td') 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">; -- cgit v1.2.3