diff options
author | Brad King <brad.king@kitware.com> | 2019-01-29 19:07:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-01-29 19:07:24 (GMT) |
commit | d75fec5a88f81a8c16cdeab46766e92a14d1d3cf (patch) | |
tree | d5634e89fac70258241b4bfcfadd7285e7cb31bb /Source/cmListFileCache.h | |
parent | 9620cb935a49e7b4955f5b1d0ffa2e93b4327591 (diff) | |
parent | 094f01d0f019147afbdfc1c18ad1a6ca232eb3b8 (diff) | |
download | CMake-d75fec5a88f81a8c16cdeab46766e92a14d1d3cf.zip CMake-d75fec5a88f81a8c16cdeab46766e92a14d1d3cf.tar.gz CMake-d75fec5a88f81a8c16cdeab46766e92a14d1d3cf.tar.bz2 |
Merge topic 'tidy-use-equals-default'
094f01d0f0 cleanup: Prefer compiler provided special member functions
55671b41d2 clang-tidy: Use `= default`
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Brad King <brad.king@kitware.com>
Merge-request: !2841
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r-- | Source/cmListFileCache.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index 529c389..9457415 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -29,12 +29,12 @@ struct cmCommandContext { std::string Lower; std::string Original; - cmCommandName() {} + cmCommandName() = default; cmCommandName(std::string const& name) { *this = name; } cmCommandName& operator=(std::string const& name); } Name; long Line = 0; - cmCommandContext() {} + cmCommandContext() = default; cmCommandContext(const char* name, int line) : Name(name) , Line(line) @@ -50,7 +50,7 @@ struct cmListFileArgument Quoted, Bracket }; - cmListFileArgument() {} + cmListFileArgument() = default; cmListFileArgument(std::string v, Delimiter d, long line) : Value(std::move(v)) , Delim(d) @@ -73,7 +73,6 @@ public: std::string Name; std::string FilePath; long Line = 0; - cmListFileContext() {} 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. |