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 | 88dcd2a1ab2f4cc87c7d4192f21c9323f5b3960c (patch) | |
| tree | 96392d0a8df8f7ca5edb12ab416a918d35d5d22b /clang/lib/Sema | |
| parent | e3d20d954503fef1256b50977f7e2c9507452c1e (diff) | |
| download | bcm5719-llvm-88dcd2a1ab2f4cc87c7d4192f21c9323f5b3960c.tar.gz bcm5719-llvm-88dcd2a1ab2f4cc87c7d4192f21c9323f5b3960c.zip | |
Tweak duplicate category diagnostic to work like the duplicate protocol diagnostic.
Also, point out where the previous decl was. This unxfails two tests.
llvm-svn: 59918
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 49bfad7634e..7ffae4725c8 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/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; } } |

