mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Eliminate Superfluous Trivial Copy Constructors
These force an implicit copy-assignment operator to be generated which is a deprecated behavior in modern C++.
This commit is contained in:
@@ -95,7 +95,6 @@ public:
|
||||
static_assert(DAK_Count < UINT_MAX, "DeclAttrKind is > 31 bits");
|
||||
}
|
||||
AnyAttrKind() : kind(TAK_Count), isType(1) {}
|
||||
AnyAttrKind(const AnyAttrKind &) = default;
|
||||
|
||||
/// Returns the TypeAttrKind, or TAK_Count if this is not a type attribute.
|
||||
TypeAttrKind type() const {
|
||||
|
||||
@@ -156,7 +156,6 @@ struct SupplementaryOutputPaths {
|
||||
std::string BitstreamOptRecordPath;
|
||||
|
||||
SupplementaryOutputPaths() = default;
|
||||
SupplementaryOutputPaths(const SupplementaryOutputPaths &) = default;
|
||||
|
||||
/// Apply a given function for each existing (non-empty string) supplementary output
|
||||
void forEachSetOutput(llvm::function_ref<void(const std::string&)> fn) const {
|
||||
|
||||
@@ -31,7 +31,6 @@ class ParserPosition {
|
||||
: LS(LS), PreviousLoc(PreviousLoc) {}
|
||||
public:
|
||||
ParserPosition() = default;
|
||||
ParserPosition &operator=(const ParserPosition &) = default;
|
||||
|
||||
bool isValid() const { return LS.isValid(); }
|
||||
};
|
||||
|
||||
@@ -70,8 +70,6 @@ private:
|
||||
IncludeDerivedRequirements(0), IncludeProtocolExtensionMembers(0) {}
|
||||
|
||||
public:
|
||||
LookupState(const LookupState &) = default;
|
||||
|
||||
static LookupState makeQualified() {
|
||||
LookupState Result;
|
||||
Result.IsQualified = 1;
|
||||
|
||||
Reference in New Issue
Block a user