]> granicus.if.org Git - clang/commitdiff
Remove a dead diagnostic, NFC
authorErik Pilkington <erik.pilkington@gmail.com>
Fri, 2 Aug 2019 19:25:58 +0000 (19:25 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Fri, 2 Aug 2019 19:25:58 +0000 (19:25 +0000)
This was issued in Objective-C 1 mode, but we not longer support that, so this
is just unreachable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367708 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseObjc.cpp

index b4cf569f2f2b077caa6e6082d410beb282cda89f..734e7d25d95b10f81175d475dee0a2eed81370b0 100644 (file)
@@ -436,8 +436,6 @@ def err_objc_property_requires_field_name : Error<
   "property requires fields to be named">;
 def err_objc_property_bitfield : Error<"property name cannot be a bit-field">;
 def err_objc_expected_property_attr : Error<"unknown property attribute %0">;
-def err_objc_properties_require_objc2 : Error<
-  "properties are an Objective-C 2 feature">;
 def err_objc_unexpected_attr : Error<
   "prefix attribute must be followed by an interface, protocol, or implementation">;
 def err_objc_postfix_attribute : Error <
index 8937a0986c9562e708e8700457166bae4c078bbd..42d6221a7333aeb4542f529596ed1e56ac191a53 100644 (file)
@@ -710,7 +710,6 @@ void Parser::ParseObjCInterfaceDeclList(tok::ObjCKeywordKind contextKey,
     case tok::objc_required:
     case tok::objc_optional:
       // This is only valid on protocols.
-      // FIXME: Should this check for ObjC2 being enabled?
       if (contextKey != tok::objc_protocol)
         Diag(AtLoc, diag::err_objc_directive_only_in_protocol);
       else
@@ -718,9 +717,6 @@ void Parser::ParseObjCInterfaceDeclList(tok::ObjCKeywordKind contextKey,
       break;
 
     case tok::objc_property:
-      if (!getLangOpts().ObjC)
-        Diag(AtLoc, diag::err_objc_properties_require_objc2);
-
       ObjCDeclSpec OCDS;
       SourceLocation LParenLoc;
       // Parse property attribute list, if any.