cleanup: Prefer compiler provided special member functions

This commit is contained in:
Regina Pfeifer
2019-01-23 00:32:51 +01:00
committed by Brad King
parent 55671b41d2
commit 094f01d0f0
38 changed files with 11 additions and 113 deletions

View File

@@ -73,7 +73,6 @@ public:
std::string Name;
std::string FilePath;
long Line = 0;
cmListFileContext() = default;
static cmListFileContext FromCommandContext(cmCommandContext const& lfcc,
std::string const& fileName)
@@ -110,15 +109,6 @@ public:
// indicated by the given valid snapshot.
cmListFileBacktrace(cmStateSnapshot const& snapshot);
// Backtraces may be copied, moved, and assigned as values.
cmListFileBacktrace(cmListFileBacktrace const&) = default;
cmListFileBacktrace(cmListFileBacktrace&&) // NOLINT(clang-tidy)
noexcept = default;
cmListFileBacktrace& operator=(cmListFileBacktrace const&) = default;
cmListFileBacktrace& operator=(cmListFileBacktrace&&) // NOLINT(clang-tidy)
noexcept = default;
~cmListFileBacktrace() = default;
cmStateSnapshot GetBottom() const;
// Get a backtrace with the given file scope added to the top.