diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-23 22:38:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-23 22:38:38 +0000 |
commit | 6ff0fc341f6d66b523d63b5d3fdfe00f6d4254fd (patch) | |
tree | 50fe9850991c12dcd2194d48d5ffd46dd7aa576a /lib/Sema/SemaDeclObjC.cpp | |
parent | 08631c5fa053867146b5ee8be658c229f6bf127c (diff) |
Tweak duplicate category diagnostic to work like the duplicate protocol diagnostic.
Also, point out where the previous decl was. This unxfails two tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 49bfad7634..7ffae4725c 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -406,6 +406,7 @@ ActOnStartCategoryInterface(SourceLocation AtInterfaceLoc, if (CategoryName && CDeclChain->getIdentifier() == CategoryName) { Diag(CategoryLoc, diag::warn_dup_category_def) << ClassName << CategoryName; + Diag(CDeclChain->getLocation(), diag::note_previous_definition); break; } } |