File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -633,15 +633,15 @@ void AttributeChecker::visitIBInspectableAttr(IBInspectableAttr *attr) {
633633 auto *VD = cast<VarDecl>(D);
634634 if (!VD->getDeclContext ()->getSelfClassDecl () || VD->isStatic ())
635635 diagnoseAndRemoveAttr (attr, diag::attr_must_be_used_on_class_instance,
636- attr->getAttrName ());
636+ attr->getAttrName ());
637637}
638638
639639void AttributeChecker::visitGKInspectableAttr (GKInspectableAttr *attr) {
640640 // Only instance properties can be 'GKInspectable'.
641641 auto *VD = cast<VarDecl>(D);
642642 if (!VD->getDeclContext ()->getSelfClassDecl () || VD->isStatic ())
643643 diagnoseAndRemoveAttr (attr, diag::attr_must_be_used_on_class_instance,
644- attr->getAttrName ());
644+ attr->getAttrName ());
645645}
646646
647647static Optional<Diag<bool ,Type>>
@@ -691,7 +691,7 @@ void AttributeChecker::visitIBOutletAttr(IBOutletAttr *attr) {
691691 auto *VD = cast<VarDecl>(D);
692692 if (!VD->getDeclContext ()->getSelfClassDecl () || VD->isStatic ())
693693 diagnoseAndRemoveAttr (attr, diag::attr_must_be_used_on_class_instance,
694- attr->getAttrName ());
694+ attr->getAttrName ());
695695
696696 if (!VD->isSettable (nullptr )) {
697697 // Allow non-mutable IBOutlet properties in module interfaces,
You can’t perform that action at this time.
0 commit comments