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 `{}`).
This commit is contained in:
Regina Pfeifer
2019-01-22 23:44:50 +01:00
committed by Brad King
parent a7f5cd45e1
commit 55671b41d2
151 changed files with 241 additions and 463 deletions

View File

@@ -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)