diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-01-22 22:44:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-25 11:44:32 (GMT) |
commit | 55671b41d2d182ce8d3201012ec55badd7116615 (patch) | |
tree | 2878c340e32a5c5847d352d86f7d9a142751f13a /Source/cmListFileCache.h | |
parent | a7f5cd45e135dd51d67176fc40e2d769ac5f7db8 (diff) | |
download | CMake-55671b41d2d182ce8d3201012ec55badd7116615.zip CMake-55671b41d2d182ce8d3201012ec55badd7116615.tar.gz CMake-55671b41d2d182ce8d3201012ec55badd7116615.tar.bz2 |
clang-tidy: Use `= default`
Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and
`Source/cmUVHandlePtr.h` where a few older compilers require a
user-defined default constructor (with `{}`).
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r-- | Source/cmListFileCache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index 529c389..e7b1c87 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,7 @@ public: std::string Name; std::string FilePath; long Line = 0; - cmListFileContext() {} + cmListFileContext() = default; static cmListFileContext FromCommandContext(cmCommandContext const& lfcc, std::string const& fileName) |