Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
9703c657
Commit
9703c657
authored
Jan 09, 2017
by
Daniel Pfeifer
Committed by
wahikihiki
Aug 06, 2019
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmFileCommand: put subcommands in unnamed namespace
parent
64f987c1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
198 additions
and
272 deletions
+198
-272
Source/cmFileCommand.cxx
Source/cmFileCommand.cxx
+190
-199
Source/cmFileCommand.h
Source/cmFileCommand.h
+0
-65
Source/cmRuntimeDependencyArchive.cxx
Source/cmRuntimeDependencyArchive.cxx
+5
-5
Source/cmRuntimeDependencyArchive.h
Source/cmRuntimeDependencyArchive.h
+3
-3
No files found.
Source/cmFileCommand.cxx
View file @
9703c657
This diff is collapsed.
Click to expand it.
Source/cmFileCommand.h
View file @
9703c657
...
...
@@ -35,71 +35,6 @@ public:
*/
bool
InitialPass
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
)
override
;
protected:
bool
HandleRename
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleRemove
(
std
::
vector
<
std
::
string
>
const
&
args
,
bool
recurse
,
cmExecutionStatus
&
status
);
bool
HandleWriteCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
bool
append
,
cmExecutionStatus
&
status
);
bool
HandleReadCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleHashCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleStringsCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleGlobCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
bool
recurse
,
cmExecutionStatus
&
status
);
bool
HandleTouchCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
bool
create
,
cmExecutionStatus
&
status
);
bool
HandleMakeDirectoryCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleRelativePathCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleCMakePathCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
bool
nativePath
,
cmExecutionStatus
&
status
);
bool
HandleReadElfCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleRPathChangeCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleRPathCheckCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleRPathRemoveCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleDifferentCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleCopyCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleInstallCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleDownloadCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleUploadCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleTimestampCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleGenerateCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleLockCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleSizeCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleReadSymlinkCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleCreateLinkCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
bool
HandleGetRuntimeDependenciesCommand
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
status
);
private:
void
AddEvaluationFile
(
const
std
::
string
&
inputName
,
const
std
::
string
&
outputExpr
,
const
std
::
string
&
condition
,
bool
inputIsContent
,
cmExecutionStatus
&
status
);
};
#endif
Source/cmRuntimeDependencyArchive.cxx
View file @
9703c657
...
...
@@ -6,7 +6,7 @@
#include "cmBinUtilsLinuxELFLinker.h"
#include "cmBinUtilsMacOSMachOLinker.h"
#include "cmBinUtilsWindowsPELinker.h"
#include "cm
Command
.h"
#include "cm
ExecutionStatus
.h"
#include "cmMakefile.h"
#include "cmStateTypes.h"
#include "cmSystemTools.h"
...
...
@@ -108,13 +108,13 @@ static cmsys::RegularExpression TransformCompile(const std::string& str)
}
cmRuntimeDependencyArchive
::
cmRuntimeDependencyArchive
(
cm
Command
*
command
,
std
::
vector
<
std
::
string
>
searchDirectories
,
cm
ExecutionStatus
&
status
,
std
::
vector
<
std
::
string
>
searchDirectories
,
std
::
string
bundleExecutable
,
const
std
::
vector
<
std
::
string
>&
preIncludeRegexes
,
const
std
::
vector
<
std
::
string
>&
preExcludeRegexes
,
const
std
::
vector
<
std
::
string
>&
postIncludeRegexes
,
const
std
::
vector
<
std
::
string
>&
postExcludeRegexes
)
:
Command
(
command
)
:
Status
(
status
)
,
SearchDirectories
(
std
::
move
(
searchDirectories
))
,
BundleExecutable
(
std
::
move
(
bundleExecutable
))
,
PreIncludeRegexes
(
preIncludeRegexes
.
size
())
...
...
@@ -190,7 +190,7 @@ bool cmRuntimeDependencyArchive::GetRuntimeDependencies(
void
cmRuntimeDependencyArchive
::
SetError
(
const
std
::
string
&
e
)
{
this
->
Command
->
SetError
(
e
);
this
->
Status
.
SetError
(
e
);
}
std
::
string
cmRuntimeDependencyArchive
::
GetBundleExecutable
()
...
...
@@ -361,7 +361,7 @@ void cmRuntimeDependencyArchive::AddUnresolvedPath(const std::string& name)
cmMakefile
*
cmRuntimeDependencyArchive
::
GetMakefile
()
{
return
this
->
Command
->
GetMakefile
();
return
&
this
->
Status
.
GetMakefile
();
}
const
std
::
map
<
std
::
string
,
std
::
set
<
std
::
string
>>&
...
...
Source/cmRuntimeDependencyArchive.h
View file @
9703c657
...
...
@@ -14,14 +14,14 @@
#include <string>
#include <vector>
class
cm
Command
;
class
cm
ExecutionStatus
;
class
cmMakefile
;
class
cmRuntimeDependencyArchive
{
public:
explicit
cmRuntimeDependencyArchive
(
cm
Command
*
command
,
std
::
vector
<
std
::
string
>
searchDirectories
,
cm
ExecutionStatus
&
status
,
std
::
vector
<
std
::
string
>
searchDirectories
,
std
::
string
bundleExecutable
,
const
std
::
vector
<
std
::
string
>&
preIncludeRegexes
,
const
std
::
vector
<
std
::
string
>&
preExcludeRegexes
,
...
...
@@ -51,7 +51,7 @@ public:
const
std
::
set
<
std
::
string
>&
GetUnresolvedPaths
();
private:
cm
Command
*
Command
;
cm
ExecutionStatus
&
Status
;
std
::
unique_ptr
<
cmBinUtilsLinker
>
Linker
;
std
::
string
GetRuntimeDependenciesTool
;
...
...
Brad King
@brad.king
mentioned in commit
1996e015
·
Aug 09, 2019
mentioned in commit
1996e015
mentioned in commit 1996e0157826903f27f73825a01f83d53dc8fba4
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment