Skip to content

Commit 1039b76

Browse files
committed
[CSFix] NFC: Fix code formatting for SpecifyKeyPathRootType fix
1 parent 3265042 commit 1039b76

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

include/swift/Sema/CSFix.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,19 +2320,17 @@ class SpecifyKeyPathRootType final : public ConstraintFix {
23202320
SpecifyKeyPathRootType(ConstraintSystem &cs, ConstraintLocator *locator)
23212321
: ConstraintFix(cs, FixKind::SpecifyKeyPathRootType, locator) {}
23222322

2323-
public:
2324-
std::string getName() const override {
2325-
return "specify key path root type";
2326-
}
2323+
public:
2324+
std::string getName() const override { return "specify key path root type"; }
23272325

2328-
bool diagnose(const Solution &solution, bool asNote = false) const override;
2326+
bool diagnose(const Solution &solution, bool asNote = false) const override;
23292327

2330-
static SpecifyKeyPathRootType *create(ConstraintSystem &cs,
2331-
ConstraintLocator *locator);
2328+
static SpecifyKeyPathRootType *create(ConstraintSystem &cs,
2329+
ConstraintLocator *locator);
23322330

2333-
static bool classof(ConstraintFix *fix) {
2334-
return fix->getKind() == FixKind::SpecifyKeyPathRootType;
2335-
}
2331+
static bool classof(ConstraintFix *fix) {
2332+
return fix->getKind() == FixKind::SpecifyKeyPathRootType;
2333+
}
23362334
};
23372335

23382336
/// Diagnose missing unwrap of optional base type on key path application.
@@ -2649,7 +2647,7 @@ class AllowInvalidStaticMemberRefOnProtocolMetatype final
26492647
FixKind::AllowInvalidStaticMemberRefOnProtocolMetatype,
26502648
locator) {}
26512649

2652-
public:
2650+
public:
26532651
std::string getName() const override {
26542652
return "allow invalid static member reference on a protocol metatype";
26552653
}

0 commit comments

Comments
 (0)