Skip to content

Commit 4cf51af

Browse files
committed
[Gardening] Fix formatting when diagnosing with attr_must_be_used_on_class_instance
1 parent 570878c commit 4cf51af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

639639
void 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

647647
static 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,

0 commit comments

Comments
 (0)