aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-01-10 17:58:07 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-01-10 17:58:07 +0000
commit94cdb25a49bd3716ab56ef6de0ea57d29e686bf2 (patch)
tree9b40e0d76446d46b5ef2cbf7ce6a0d3402d8e0c0 /include/clang
parentfea89c2020c02d902735f7b02658b92e102d9ae0 (diff)
Warn (as gcc does) when @end does not close anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Basic/DiagnosticKinds.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def
index 289f770ec6..f041a3a47b 100644
--- a/include/clang/Basic/DiagnosticKinds.def
+++ b/include/clang/Basic/DiagnosticKinds.def
@@ -478,6 +478,8 @@ DIAG(err_selector_element_type, ERROR,
"selector element is not of valid object type (its type is '%0')")
DIAG(err_toomany_element_decls, ERROR,
"Only one element declaration is allowed")
+DIAG(warn_expected_implementation, WARNING,
+ "‘@end’ must appear in an @implementation context")
//===----------------------------------------------------------------------===//
// Semantic Analysis