Skip to content

Commit 0182414

Browse files
committed
Eliminate Superfluous Trivial Copy Constructors
These force an implicit copy-assignment operator to be generated which is a deprecated behavior in modern C++.
1 parent ee79c9f commit 0182414

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

include/swift/AST/PrintOptions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class AnyAttrKind {
9595
static_assert(DAK_Count < UINT_MAX, "DeclAttrKind is > 31 bits");
9696
}
9797
AnyAttrKind() : kind(TAK_Count), isType(1) {}
98-
AnyAttrKind(const AnyAttrKind &) = default;
9998

10099
/// Returns the TypeAttrKind, or TAK_Count if this is not a type attribute.
101100
TypeAttrKind type() const {

include/swift/Basic/SupplementaryOutputPaths.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ struct SupplementaryOutputPaths {
156156
std::string BitstreamOptRecordPath;
157157

158158
SupplementaryOutputPaths() = default;
159-
SupplementaryOutputPaths(const SupplementaryOutputPaths &) = default;
160159

161160
/// Apply a given function for each existing (non-empty string) supplementary output
162161
void forEachSetOutput(llvm::function_ref<void(const std::string&)> fn) const {

include/swift/Parse/ParserPosition.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class ParserPosition {
3131
: LS(LS), PreviousLoc(PreviousLoc) {}
3232
public:
3333
ParserPosition() = default;
34-
ParserPosition &operator=(const ParserPosition &) = default;
3534

3635
bool isValid() const { return LS.isValid(); }
3736
};

lib/Sema/LookupVisibleDecls.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ struct LookupState {
7070
IncludeDerivedRequirements(0), IncludeProtocolExtensionMembers(0) {}
7171

7272
public:
73-
LookupState(const LookupState &) = default;
74-
7573
static LookupState makeQualified() {
7674
LookupState Result;
7775
Result.IsQualified = 1;

0 commit comments

Comments
 (0)