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) {
633
633
auto *VD = cast<VarDecl>(D);
634
634
if (!VD->getDeclContext ()->getSelfClassDecl () || VD->isStatic ())
635
635
diagnoseAndRemoveAttr (attr, diag::attr_must_be_used_on_class_instance,
636
- attr->getAttrName ());
636
+ attr->getAttrName ());
637
637
}
638
638
639
639
void AttributeChecker::visitGKInspectableAttr (GKInspectableAttr *attr) {
640
640
// Only instance properties can be 'GKInspectable'.
641
641
auto *VD = cast<VarDecl>(D);
642
642
if (!VD->getDeclContext ()->getSelfClassDecl () || VD->isStatic ())
643
643
diagnoseAndRemoveAttr (attr, diag::attr_must_be_used_on_class_instance,
644
- attr->getAttrName ());
644
+ attr->getAttrName ());
645
645
}
646
646
647
647
static Optional<Diag<bool ,Type>>
@@ -691,7 +691,7 @@ void AttributeChecker::visitIBOutletAttr(IBOutletAttr *attr) {
691
691
auto *VD = cast<VarDecl>(D);
692
692
if (!VD->getDeclContext ()->getSelfClassDecl () || VD->isStatic ())
693
693
diagnoseAndRemoveAttr (attr, diag::attr_must_be_used_on_class_instance,
694
- attr->getAttrName ());
694
+ attr->getAttrName ());
695
695
696
696
if (!VD->isSettable (nullptr )) {
697
697
// Allow non-mutable IBOutlet properties in module interfaces,
You can’t perform that action at this time.
0 commit comments