Skip to content

Commit a2cce2b

Browse files
committed
SR-11889: Fixed code review issues
1 parent c70bd2b commit a2cce2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/AST/Attr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class TypeAttributes {
7070
struct Convention {
7171
StringRef Name = {};
7272
DeclNameRef WitnessMethodProtocol = {};
73-
Located<StringRef> ClangType = {};
73+
Located<StringRef> ClangType = Located<StringRef>(StringRef(), {});
7474
/// Convenience factory function to create a Swift convention.
7575
///
7676
/// Don't use this function if you are creating a C convention as you

include/swift/Basic/Located.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ struct Located {
3939
/// The original source location from which the item was parsed.
4040
SourceLoc Loc;
4141

42-
Located(): Item(), Loc() {}
42+
Located() : Item(), Loc() {}
4343

44-
Located(T Item, SourceLoc loc): Item(Item), Loc(loc) {}
44+
Located(T Item, SourceLoc loc) : Item(Item), Loc(loc) {}
4545

4646
SWIFT_DEBUG_DUMP;
4747
void dump(raw_ostream &os) const;
4848

4949
template<typename U>
50-
friend bool operator ==(const Located<U>& lhs, const Located<U>& rhs) {
50+
friend bool operator ==(const Located<U> &lhs, const Located<U> &rhs) {
5151
return lhs.Item == rhs.Item && lhs.Loc == rhs.Loc;
5252
}
5353
};

0 commit comments

Comments
 (0)