Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
b2aa3aed
Commit
b2aa3aed
authored
Nov 21, 2018
by
wahikihiki
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-tidy: Use default member initialization
parent
32cb564b
Changes
62
Hide whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
152 additions
and
347 deletions
+152
-347
.clang-tidy
.clang-tidy
+3
-1
Source/CTest/cmCTestBuildHandler.cxx
Source/CTest/cmCTestBuildHandler.cxx
+2
-5
Source/CTest/cmCTestGIT.cxx
Source/CTest/cmCTestGIT.cxx
+3
-7
Source/cmCPluginAPI.cxx
Source/cmCPluginAPI.cxx
+2
-5
Source/cmCTest.h
Source/cmCTest.h
+2
-5
Source/cmCacheManager.h
Source/cmCacheManager.h
+3
-8
Source/cmCommand.h
Source/cmCommand.h
+2
-5
Source/cmComputeLinkDepends.h
Source/cmComputeLinkDepends.h
+4
-9
Source/cmComputeLinkInformation.h
Source/cmComputeLinkInformation.h
+3
-7
Source/cmCustomCommand.cxx
Source/cmCustomCommand.cxx
+0
-3
Source/cmDefinitions.h
Source/cmDefinitions.h
+3
-9
Source/cmDepends.cxx
Source/cmDepends.cxx
+0
-3
Source/cmDepends.h
Source/cmDepends.h
+3
-3
Source/cmDependsC.cxx
Source/cmDependsC.cxx
+0
-1
Source/cmDependsC.h
Source/cmDependsC.h
+3
-6
Source/cmDependsFortran.cxx
Source/cmDependsFortran.cxx
+0
-1
Source/cmDependsFortran.h
Source/cmDependsFortran.h
+1
-1
Source/cmDocumentation.h
Source/cmDocumentation.h
+2
-5
Source/cmDocumentationFormatter.cxx
Source/cmDocumentationFormatter.cxx
+0
-2
Source/cmDocumentationFormatter.h
Source/cmDocumentationFormatter.h
+2
-2
Source/cmExecutionStatus.h
Source/cmExecutionStatus.h
+5
-11
Source/cmExpandedCommandArgument.cxx
Source/cmExpandedCommandArgument.cxx
+0
-1
Source/cmExpandedCommandArgument.h
Source/cmExpandedCommandArgument.h
+1
-1
Source/cmExtraCodeLiteGenerator.cxx
Source/cmExtraCodeLiteGenerator.cxx
+0
-1
Source/cmExtraCodeLiteGenerator.h
Source/cmExtraCodeLiteGenerator.h
+1
-1
Source/cmFileCommand.cxx
Source/cmFileCommand.cxx
+3
-7
Source/cmFileLock.h
Source/cmFileLock.h
+2
-3
Source/cmFileLockUnix.cxx
Source/cmFileLockUnix.cxx
+0
-1
Source/cmFileLockWin32.cxx
Source/cmFileLockWin32.cxx
+0
-1
Source/cmFindLibraryCommand.cxx
Source/cmFindLibraryCommand.cxx
+2
-5
Source/cmFindPackageCommand.cxx
Source/cmFindPackageCommand.cxx
+2
-5
Source/cmGeneratedFileStream.cxx
Source/cmGeneratedFileStream.cxx
+0
-8
Source/cmGeneratedFileStream.h
Source/cmGeneratedFileStream.h
+4
-4
Source/cmGeneratorExpressionLexer.cxx
Source/cmGeneratorExpressionLexer.cxx
+0
-2
Source/cmGeneratorExpressionLexer.h
Source/cmGeneratorExpressionLexer.h
+2
-2
Source/cmGeneratorTarget.h
Source/cmGeneratorTarget.h
+13
-31
Source/cmGlobVerificationManager.h
Source/cmGlobVerificationManager.h
+2
-5
Source/cmGlobalGenerator.h
Source/cmGlobalGenerator.h
+4
-10
Source/cmGlobalUnixMakefileGenerator3.h
Source/cmGlobalUnixMakefileGenerator3.h
+2
-5
Source/cmInstalledFile.cxx
Source/cmInstalledFile.cxx
+0
-1
Source/cmInstalledFile.h
Source/cmInstalledFile.h
+1
-1
Source/cmLinkItem.cxx
Source/cmLinkItem.cxx
+0
-3
Source/cmLinkItem.h
Source/cmLinkItem.h
+15
-31
Source/cmListFileCache.h
Source/cmListFileCache.h
+7
-17
Source/cmLocalUnixMakefileGenerator3.h
Source/cmLocalUnixMakefileGenerator3.h
+6
-14
Source/cmMakefile.cxx
Source/cmMakefile.cxx
+3
-7
Source/cmNewLineStyle.cxx
Source/cmNewLineStyle.cxx
+0
-1
Source/cmNewLineStyle.h
Source/cmNewLineStyle.h
+1
-1
Source/cmOutputRequiredFilesCommand.cxx
Source/cmOutputRequiredFilesCommand.cxx
+3
-7
Source/cmProcessTools.cxx
Source/cmProcessTools.cxx
+1
-4
Source/cmProcessTools.h
Source/cmProcessTools.h
+3
-3
Source/cmQtAutoGenInitializer.h
Source/cmQtAutoGenInitializer.h
+3
-7
Source/cmQtAutoGeneratorMocUic.cxx
Source/cmQtAutoGeneratorMocUic.cxx
+0
-5
Source/cmQtAutoGeneratorMocUic.h
Source/cmQtAutoGeneratorMocUic.h
+5
-5
Source/cmQtAutoGeneratorRcc.cxx
Source/cmQtAutoGeneratorRcc.cxx
+0
-6
Source/cmQtAutoGeneratorRcc.h
Source/cmQtAutoGeneratorRcc.h
+6
-6
Source/cmScriptGenerator.h
Source/cmScriptGenerator.h
+2
-5
Source/cmSourceFileLocation.cxx
Source/cmSourceFileLocation.cxx
+0
-3
Source/cmSourceFileLocation.h
Source/cmSourceFileLocation.h
+3
-3
Source/cmState.cxx
Source/cmState.cxx
+0
-8
Source/cmState.h
Source/cmState.h
+8
-8
Source/cmVariableWatch.h
Source/cmVariableWatch.h
+4
-9
No files found.
.clang-tidy
View file @
b2aa3aed
...
...
@@ -15,7 +15,6 @@ modernize-*,\
-modernize-raw-string-literal,\
-modernize-return-braced-init-list,\
-modernize-use-auto,\
-modernize-use-default-member-init,\
-modernize-use-emplace,\
-modernize-use-equals-default,\
-modernize-use-equals-delete,\
...
...
@@ -36,4 +35,7 @@ readability-*,\
-readability-simplify-boolean-expr,\
"
HeaderFilterRegex: 'Source/cm[^/]*\.(h|hxx|cxx)$'
CheckOptions:
- key: modernize-use-default-member-init.UseAssignment
value: '1'
...
Source/CTest/cmCTestBuildHandler.cxx
View file @
b2aa3aed
...
...
@@ -503,10 +503,7 @@ public:
:
FTC
(
ftc
)
{
}
FragmentCompare
()
:
FTC
(
nullptr
)
{
}
FragmentCompare
()
{}
bool
operator
()(
std
::
string
const
&
l
,
std
::
string
const
&
r
)
const
{
// Order files by modification time. Use lexicographic order
...
...
@@ -520,7 +517,7 @@ public:
}
private:
cmFileTimeComparison
*
FTC
;
cmFileTimeComparison
*
FTC
=
nullptr
;
};
void
cmCTestBuildHandler
::
GenerateXMLLaunched
(
cmXMLWriter
&
xml
)
...
...
Source/CTest/cmCTestGIT.cxx
View file @
b2aa3aed
...
...
@@ -475,13 +475,9 @@ private:
{
std
::
string
Name
;
std
::
string
EMail
;
unsigned
long
Time
;
long
TimeZone
;
Person
()
:
Time
(
0
)
,
TimeZone
(
0
)
{
}
unsigned
long
Time
=
0
;
long
TimeZone
=
0
;
Person
()
{}
};
void
ParsePerson
(
const
char
*
str
,
Person
&
person
)
...
...
Source/cmCPluginAPI.cxx
View file @
b2aa3aed
...
...
@@ -475,11 +475,8 @@ int CCONV cmGetTotalArgumentSize(int argc, char** argv)
// API for source files.
struct
cmCPluginAPISourceFile
{
cmCPluginAPISourceFile
()
:
RealSourceFile
(
nullptr
)
{
}
cmSourceFile
*
RealSourceFile
;
cmCPluginAPISourceFile
()
{}
cmSourceFile
*
RealSourceFile
=
nullptr
;
std
::
string
SourceName
;
std
::
string
SourceExtension
;
std
::
string
FullPath
;
...
...
Source/cmCTest.h
View file @
b2aa3aed
...
...
@@ -57,10 +57,7 @@ public:
/** Representation of one part. */
struct
PartInfo
{
PartInfo
()
:
Enabled
(
false
)
{
}
PartInfo
()
{}
void
SetName
(
const
std
::
string
&
name
)
{
this
->
Name
=
name
;
}
const
std
::
string
&
GetName
()
const
{
return
this
->
Name
;
}
...
...
@@ -71,7 +68,7 @@ public:
std
::
vector
<
std
::
string
>
SubmitFiles
;
private:
bool
Enabled
;
bool
Enabled
=
false
;
std
::
string
Name
;
};
#ifdef CMAKE_BUILD_WITH_CMAKE
...
...
Source/cmCacheManager.h
View file @
b2aa3aed
...
...
@@ -34,20 +34,15 @@ private:
struct
CacheEntry
{
std
::
string
Value
;
cmStateEnums
::
CacheEntryType
Type
;
cmStateEnums
::
CacheEntryType
Type
=
cmStateEnums
::
UNINITIALIZED
;
cmPropertyMap
Properties
;
std
::
vector
<
std
::
string
>
GetPropertyList
()
const
;
const
char
*
GetProperty
(
const
std
::
string
&
)
const
;
void
SetProperty
(
const
std
::
string
&
property
,
const
char
*
value
);
void
AppendProperty
(
const
std
::
string
&
property
,
const
char
*
value
,
bool
asString
=
false
);
bool
Initialized
;
CacheEntry
()
:
Value
(
""
)
,
Type
(
cmStateEnums
::
UNINITIALIZED
)
,
Initialized
(
false
)
{
}
bool
Initialized
=
false
;
CacheEntry
()
{}
};
public:
...
...
Source/cmCommand.h
View file @
b2aa3aed
...
...
@@ -30,10 +30,7 @@ public:
/**
* Construct the command. By default it has no makefile.
*/
cmCommand
()
:
Makefile
(
nullptr
)
{
}
cmCommand
()
{}
/**
* Need virtual destructor to destroy real command type.
...
...
@@ -90,7 +87,7 @@ public:
void
SetError
(
const
std
::
string
&
e
);
protected:
cmMakefile
*
Makefile
;
cmMakefile
*
Makefile
=
nullptr
;
private:
std
::
string
Error
;
...
...
Source/cmComputeLinkDepends.h
View file @
b2aa3aed
...
...
@@ -35,15 +35,10 @@ public:
struct
LinkEntry
{
std
::
string
Item
;
cmGeneratorTarget
const
*
Target
;
bool
IsSharedDep
;
bool
IsFlag
;
LinkEntry
()
:
Target
(
nullptr
)
,
IsSharedDep
(
false
)
,
IsFlag
(
false
)
{
}
cmGeneratorTarget
const
*
Target
=
nullptr
;
bool
IsSharedDep
=
false
;
bool
IsFlag
=
false
;
LinkEntry
()
{}
LinkEntry
(
LinkEntry
const
&
r
)
:
Item
(
r
.
Item
)
,
Target
(
r
.
Target
)
...
...
Source/cmComputeLinkInformation.h
View file @
b2aa3aed
...
...
@@ -30,11 +30,7 @@ public:
struct
Item
{
Item
()
:
IsPath
(
true
)
,
Target
(
nullptr
)
{
}
Item
()
{}
Item
(
std
::
string
const
&
v
,
bool
p
,
cmGeneratorTarget
const
*
target
=
nullptr
)
:
Value
(
v
)
...
...
@@ -43,8 +39,8 @@ public:
{
}
std
::
string
Value
;
bool
IsPath
;
cmGeneratorTarget
const
*
Target
;
bool
IsPath
=
true
;
cmGeneratorTarget
const
*
Target
=
nullptr
;
};
typedef
std
::
vector
<
Item
>
ItemVector
;
ItemVector
const
&
GetItems
()
const
;
...
...
Source/cmCustomCommand.cxx
View file @
b2aa3aed
...
...
@@ -18,9 +18,6 @@ cmCustomCommand::cmCustomCommand(cmMakefile const* mf,
,
Comment
(
comment
?
comment
:
""
)
,
WorkingDirectory
(
workingDirectory
?
workingDirectory
:
""
)
,
HaveComment
(
comment
!=
nullptr
)
,
EscapeAllowMakeVars
(
false
)
,
EscapeOldStyle
(
true
)
,
CommandExpandLists
(
false
)
{
if
(
mf
)
{
this
->
Backtrace
=
mf
->
GetBacktrace
();
...
...
Source/cmDefinitions.h
View file @
b2aa3aed
...
...
@@ -47,25 +47,19 @@ private:
typedef
std
::
string
std_string
;
public:
Def
()
:
Exists
(
false
)
,
Used
(
false
)
{
}
Def
()
{}
Def
(
const
char
*
v
)
:
std_string
(
v
?
v
:
""
)
,
Exists
(
v
?
true
:
false
)
,
Used
(
false
)
{
}
Def
(
const
std_string
&
v
)
:
std_string
(
v
)
,
Exists
(
true
)
,
Used
(
false
)
{
}
bool
Exists
;
bool
Used
;
bool
Exists
=
false
;
bool
Used
=
false
;
};
static
Def
NoDef
;
...
...
Source/cmDepends.cxx
View file @
b2aa3aed
...
...
@@ -15,10 +15,7 @@
cmDepends
::
cmDepends
(
cmLocalGenerator
*
lg
,
const
char
*
targetDir
)
:
LocalGenerator
(
lg
)
,
Verbose
(
false
)
,
FileComparison
(
nullptr
)
,
TargetDirectory
(
targetDir
)
,
MaxPath
(
16384
)
,
Dependee
(
new
char
[
MaxPath
])
,
Depender
(
new
char
[
MaxPath
])
{
...
...
Source/cmDepends.h
View file @
b2aa3aed
...
...
@@ -96,15 +96,15 @@ protected:
cmLocalGenerator
*
LocalGenerator
;
// Flag for verbose output.
bool
Verbose
;
cmFileTimeComparison
*
FileComparison
;
bool
Verbose
=
false
;
cmFileTimeComparison
*
FileComparison
=
nullptr
;
std
::
string
Language
;
// The full path to the target's build directory.
std
::
string
TargetDirectory
;
size_t
MaxPath
;
size_t
MaxPath
=
16384
;
char
*
Dependee
;
char
*
Depender
;
...
...
Source/cmDependsC.cxx
View file @
b2aa3aed
...
...
@@ -20,7 +20,6 @@
#define INCLUDE_REGEX_TRANSFORM_MARKER "#IncludeRegexTransform: "
cmDependsC
::
cmDependsC
()
:
ValidDeps
(
nullptr
)
{
}
...
...
Source/cmDependsC.h
View file @
b2aa3aed
...
...
@@ -75,16 +75,13 @@ public:
struct
cmIncludeLines
{
cmIncludeLines
()
:
Used
(
false
)
{
}
cmIncludeLines
()
{}
std
::
vector
<
UnscannedEntry
>
UnscannedEntries
;
bool
Used
;
bool
Used
=
false
;
};
protected:
const
std
::
map
<
std
::
string
,
DependencyVector
>*
ValidDeps
;
const
std
::
map
<
std
::
string
,
DependencyVector
>*
ValidDeps
=
nullptr
;
std
::
set
<
std
::
string
>
Encountered
;
std
::
queue
<
UnscannedEntry
>
Unscanned
;
...
...
Source/cmDependsFortran.cxx
View file @
b2aa3aed
...
...
@@ -69,7 +69,6 @@ public:
};
cmDependsFortran
::
cmDependsFortran
()
:
Internal
(
nullptr
)
{
}
...
...
Source/cmDependsFortran.h
View file @
b2aa3aed
...
...
@@ -76,7 +76,7 @@ protected:
std
::
set
<
std
::
string
>
PPDefinitions
;
// Internal implementation details.
cmDependsFortranInternals
*
Internal
;
cmDependsFortranInternals
*
Internal
=
nullptr
;
private:
std
::
string
MaybeConvertToRelativePath
(
std
::
string
const
&
base
,
...
...
Source/cmDocumentation.h
View file @
b2aa3aed
...
...
@@ -116,11 +116,8 @@ private:
struct
RequestedHelpItem
{
RequestedHelpItem
()
:
HelpType
(
None
)
{
}
cmDocumentationEnums
::
Type
HelpType
;
RequestedHelpItem
()
{}
cmDocumentationEnums
::
Type
HelpType
=
None
;
std
::
string
Filename
;
std
::
string
Argument
;
};
...
...
Source/cmDocumentationFormatter.cxx
View file @
b2aa3aed
...
...
@@ -11,8 +11,6 @@
#include <vector>
cmDocumentationFormatter
::
cmDocumentationFormatter
()
:
TextWidth
(
77
)
,
TextIndent
(
""
)
{
}
...
...
Source/cmDocumentationFormatter.h
View file @
b2aa3aed
...
...
@@ -59,8 +59,8 @@ public:
void
SetIndent
(
const
char
*
indent
);
private:
int
TextWidth
;
const
char
*
TextIndent
;
int
TextWidth
=
77
;
const
char
*
TextIndent
=
""
;
};
#endif
Source/cmExecutionStatus.h
View file @
b2aa3aed
...
...
@@ -11,13 +11,7 @@
class
cmExecutionStatus
{
public:
cmExecutionStatus
()
:
ReturnInvoked
(
false
)
,
BreakInvoked
(
false
)
,
ContinueInvoked
(
false
)
,
NestedError
(
false
)
{
}
cmExecutionStatus
()
{}
void
Clear
()
{
...
...
@@ -40,10 +34,10 @@ public:
bool
GetNestedError
()
const
{
return
this
->
NestedError
;
}
private:
bool
ReturnInvoked
;
bool
BreakInvoked
;
bool
ContinueInvoked
;
bool
NestedError
;
bool
ReturnInvoked
=
false
;
bool
BreakInvoked
=
false
;
bool
ContinueInvoked
=
false
;
bool
NestedError
=
false
;
};
#endif
Source/cmExpandedCommandArgument.cxx
View file @
b2aa3aed
...
...
@@ -3,7 +3,6 @@
#include "cmExpandedCommandArgument.h"
cmExpandedCommandArgument
::
cmExpandedCommandArgument
()
:
Quoted
(
false
)
{
}
...
...
Source/cmExpandedCommandArgument.h
View file @
b2aa3aed
...
...
@@ -33,7 +33,7 @@ public:
private:
std
::
string
Value
;
bool
Quoted
;
bool
Quoted
=
false
;
};
#endif
Source/cmExtraCodeLiteGenerator.cxx
View file @
b2aa3aed
...
...
@@ -22,7 +22,6 @@
cmExtraCodeLiteGenerator
::
cmExtraCodeLiteGenerator
()
:
ConfigName
(
"NoConfig"
)
,
CpuCount
(
2
)
{
}
...
...
Source/cmExtraCodeLiteGenerator.h
View file @
b2aa3aed
...
...
@@ -23,7 +23,7 @@ class cmExtraCodeLiteGenerator : public cmExternalMakefileProjectGenerator
protected:
std
::
string
ConfigName
;
std
::
string
WorkspacePath
;
unsigned
int
CpuCount
;
unsigned
int
CpuCount
=
2
;
protected:
std
::
string
GetCodeLiteCompilerName
(
const
cmMakefile
*
mf
)
const
;
...
...
Source/cmFileCommand.cxx
View file @
b2aa3aed
...
...
@@ -1095,13 +1095,9 @@ protected:
// Properties set by pattern and regex match rules.
struct
MatchProperties
{
bool
Exclude
;
mode_t
Permissions
;
MatchProperties
()
:
Exclude
(
false
)
,
Permissions
(
0
)
{
}
bool
Exclude
=
false
;
mode_t
Permissions
=
0
;
MatchProperties
()
{}
};
struct
MatchRule
{
...
...
Source/cmFileLock.h
View file @
b2aa3aed
...
...
@@ -51,14 +51,13 @@ private:
cmFileLockResult
LockWithTimeout
(
unsigned
long
timeoutSec
);
#if defined(_WIN32)
typedef
HANDLE
File
Id
;
HANDLE
File
=
INVALID_HANDLE_VALUE
;
BOOL
LockFile
(
DWORD
flags
);
#else
typedef
int
File
Id
;
int
File
=
-
1
;
int
LockFile
(
int
cmd
,
int
type
);
#endif
FileId
File
;
std
::
string
Filename
;
};
...
...
Source/cmFileLockUnix.cxx
View file @
b2aa3aed
...
...
@@ -9,7 +9,6 @@
#include <unistd.h>
cmFileLock
::
cmFileLock
()
:
File
(
-
1
)
{
}
...
...
Source/cmFileLockWin32.cxx
View file @
b2aa3aed
...
...
@@ -6,7 +6,6 @@
#include <windows.h> // CreateFileW
cmFileLock
::
cmFileLock
()
:
File
(
INVALID_HANDLE_VALUE
)
{
}
...
...
Source/cmFindLibraryCommand.cxx
View file @
b2aa3aed
...
...
@@ -198,13 +198,10 @@ struct cmFindLibraryHelper
// Current names under consideration.
struct
Name
{
bool
TryRaw
;
bool
TryRaw
=
false
;
std
::
string
Raw
;
cmsys
::
RegularExpression
Regex
;
Name
()
:
TryRaw
(
false
)
{
}
Name
()
{}
};
std
::
vector
<
Name
>
Names
;
...
...
Source/cmFindPackageCommand.cxx
View file @
b2aa3aed
...
...
@@ -1675,10 +1675,7 @@ private:
class
cmFileList
{
public:
cmFileList
()
:
Last
(
nullptr
)
{
}
cmFileList
()
{}
virtual
~
cmFileList
()
{}
cmFileList
&
operator
/
(
cmFileListGeneratorBase
const
&
rhs
)
{
...
...
@@ -1702,7 +1699,7 @@ private:
virtual
bool
Visit
(
std
::
string
const
&
fullPath
)
=
0
;
friend
class
cmFileListGeneratorBase
;
std
::
unique_ptr
<
cmFileListGeneratorBase
>
First
;
cmFileListGeneratorBase
*
Last
;
cmFileListGeneratorBase
*
Last
=
nullptr
;
};
class
cmFindPackageFileList
:
public
cmFileList
...
...
Source/cmGeneratedFileStream.cxx
View file @
b2aa3aed
...
...
@@ -103,18 +103,10 @@ void cmGeneratedFileStream::SetCompressionExtraExtension(bool ext)
}
cmGeneratedFileStreamBase
::
cmGeneratedFileStreamBase
()
:
CopyIfDifferent
(
false
)
,
Okay
(
false
)
,
Compress
(
false
)
,
CompressExtraExtension
(
true
)
{
}
cmGeneratedFileStreamBase
::
cmGeneratedFileStreamBase
(
std
::
string
const
&
name
)
:
CopyIfDifferent
(
false
)
,
Okay
(
false
)
,
Compress
(
false
)
,
CompressExtraExtension
(
true
)
{
this
->
Open
(
name
);
}
...
...
Source/cmGeneratedFileStream.h
View file @
b2aa3aed
...
...
@@ -45,16 +45,16 @@ protected:
std
::
string
TempName
;
// Whether to do a copy-if-different.
bool
CopyIfDifferent
;
bool
CopyIfDifferent
=
false
;
// Whether the real file stream was valid when it was closed.
bool
Okay
;
bool
Okay
=
false
;
// Whether the destination file is compressed
bool
Compress
;
bool
Compress
=
false
;
// Whether the destination file is compressed
bool
CompressExtraExtension
;
bool
CompressExtraExtension
=
true
;
};
/** \class cmGeneratedFileStream
...
...
Source/cmGeneratorExpressionLexer.cxx
View file @
b2aa3aed
...
...
@@ -3,8 +3,6 @@
#include "cmGeneratorExpressionLexer.h"
cmGeneratorExpressionLexer
::
cmGeneratorExpressionLexer
()
:
SawBeginExpression
(
false
)
,
SawGeneratorExpression
(
false
)
{
}
...
...
Source/cmGeneratorExpressionLexer.h
View file @
b2aa3aed
...
...
@@ -46,8 +46,8 @@ public:
}
private:
bool
SawBeginExpression
;
bool
SawGeneratorExpression
;
bool
SawBeginExpression
=
false
;
bool
SawGeneratorExpression
=
false
;
};
#endif
Source/cmGeneratorTarget.h
View file @
b2aa3aed
...
...
@@ -110,11 +110,8 @@ public:
std
::
set
<
std
::
string
>
ExpectedResxHeaders
;
std
::
set
<
std
::
string
>
ExpectedXamlHeaders
;
std
::
set
<
std
::
string
>
ExpectedXamlSources
;
bool
Initialized
;
KindedSources
()
:
Initialized
(
false
)
{
}
bool
Initialized
=
false
;
KindedSources
()
{}
};
/** Get all sources needed for a configuration with kinds assigned. */
...
...
@@ -565,13 +562,9 @@ public:
};
struct
SourceFileFlags
{
SourceFileFlags
()
:
Type
(
SourceFileTypeNormal
)
,
MacFolder
(
nullptr
)
{
}
SourceFileType
Type
;
const
char
*
MacFolder
;
// location inside Mac content folders
SourceFileFlags
()
{}
SourceFileType
Type
=
SourceFileTypeNormal
;
const
char
*
MacFolder
=
nullptr
;
// location inside Mac content folders
};
void
GetAutoUicOptions
(
std
::
vector
<
std
::
string
>&
result
,
const
std
::
string
&
config
)
const
;
...
...
@@ -757,11 +750,8 @@ private:
struct
CompatibleInterfaces
:
public
CompatibleInterfacesBase
{
CompatibleInterfaces
()
:
Done
(
false
)
{
}
bool
Done
;
CompatibleInterfaces
()
{}
bool
Done
=
false
;
};
mutable
std
::
map
<
std
::
string
,
CompatibleInterfaces
>
CompatibleInterfacesMap
;