Skip to content

Commit b53da32

Browse files
[ConstraintLocator] Minor indentation fixes
1 parent 68e09d6 commit b53da32

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

lib/Sema/ConstraintLocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void ConstraintLocator::dump(SourceManager *sm, raw_ostream &out) const {
470470
auto branchElt = elt.castTo<LocatorPathElt::TernaryBranch>();
471471
out << (branchElt.forThen() ? "'then'" : "'else'")
472472
<< " branch of a ternary operator";
473-
break;
473+
break;
474474
}
475475
}
476476
out << ']';

lib/Sema/ConstraintLocatorPathElts.def

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ CUSTOM_LOCATOR_PATH_ELT(ProtocolRequirement)
135135

136136
/// Type parameter requirements.
137137
ABSTRACT_LOCATOR_PATH_ELT(AnyRequirement)
138-
/// The Nth conditional requirement in the parent locator's conformance.
139-
CUSTOM_LOCATOR_PATH_ELT(ConditionalRequirement)
140138

141-
/// A single requirement placed on the type parameters.
142-
CUSTOM_LOCATOR_PATH_ELT(TypeParameterRequirement)
139+
/// The Nth conditional requirement in the parent locator's conformance.
140+
CUSTOM_LOCATOR_PATH_ELT(ConditionalRequirement)
141+
142+
/// A single requirement placed on the type parameters.
143+
CUSTOM_LOCATOR_PATH_ELT(TypeParameterRequirement)
143144

144145
/// RValue adjustment.
145146
SIMPLE_LOCATOR_PATH_ELT(RValueAdjustment)
@@ -155,11 +156,12 @@ CUSTOM_LOCATOR_PATH_ELT(SynthesizedArgument)
155156

156157
/// Tuple elements.
157158
ABSTRACT_LOCATOR_PATH_ELT(AnyTupleElement)
158-
/// A tuple element referenced by position.
159-
CUSTOM_LOCATOR_PATH_ELT(TupleElement)
160159

161-
/// A tuple element referenced by name.
162-
CUSTOM_LOCATOR_PATH_ELT(NamedTupleElement)
160+
/// A tuple element referenced by position.
161+
CUSTOM_LOCATOR_PATH_ELT(TupleElement)
162+
163+
/// A tuple element referenced by name.
164+
CUSTOM_LOCATOR_PATH_ELT(NamedTupleElement)
163165

164166
/// An unresolved member.
165167
SIMPLE_LOCATOR_PATH_ELT(UnresolvedMember)

0 commit comments

Comments
 (0)