mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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:
committed by
Brad King
parent
a7f5cd45e1
commit
55671b41d2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user