Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
2e5d1990
Commit
2e5d1990
authored
Oct 08, 2016
by
Stephen Kelly
Browse files
Ninja: Constify
parent
b3701f9a
Pipeline
#30063
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Source/cmGlobalNinjaGenerator.cxx
View file @
2e5d1990
...
...
@@ -830,7 +830,8 @@ static void EnsureTrailingSlash(std::string& path)
#endif
}
std
::
string
cmGlobalNinjaGenerator
::
ConvertToNinjaPath
(
const
std
::
string
&
path
)
std
::
string
cmGlobalNinjaGenerator
::
ConvertToNinjaPath
(
const
std
::
string
&
path
)
const
{
cmLocalNinjaGenerator
*
ng
=
static_cast
<
cmLocalNinjaGenerator
*>
(
this
->
LocalGenerators
[
0
]);
...
...
@@ -1421,7 +1422,8 @@ void cmGlobalNinjaGenerator::InitOutputPathPrefix()
EnsureTrailingSlash
(
this
->
OutputPathPrefix
);
}
std
::
string
cmGlobalNinjaGenerator
::
NinjaOutputPath
(
std
::
string
const
&
path
)
std
::
string
cmGlobalNinjaGenerator
::
NinjaOutputPath
(
std
::
string
const
&
path
)
const
{
if
(
!
this
->
HasOutputPathPrefix
()
||
cmSystemTools
::
FileIsFullPath
(
path
))
{
return
path
;
...
...
Source/cmGlobalNinjaGenerator.h
View file @
2e5d1990
...
...
@@ -233,7 +233,7 @@ public:
return
this
->
RulesFileStream
;
}
std
::
string
ConvertToNinjaPath
(
const
std
::
string
&
path
);
std
::
string
ConvertToNinjaPath
(
const
std
::
string
&
path
)
const
;
std
::
string
ConvertToNinjaFolderRule
(
const
std
::
string
&
path
);
struct
MapToNinjaPathImpl
...
...
@@ -333,7 +333,7 @@ public:
bool
SupportsConsolePool
()
const
;
bool
SupportsImplicitOuts
()
const
;
std
::
string
NinjaOutputPath
(
std
::
string
const
&
path
);
std
::
string
NinjaOutputPath
(
std
::
string
const
&
path
)
const
;
bool
HasOutputPathPrefix
()
const
{
return
!
this
->
OutputPathPrefix
.
empty
();
}
void
StripNinjaOutputPathPrefixAsSuffix
(
std
::
string
&
path
);
...
...
Brad King
@brad.king
Mentioned in commit
656ebaca
·
Oct 10, 2016
Mentioned in commit
656ebaca
Mentioned in commit 656ebaca3be50e92edca3d9628b784f5ff1e6a99
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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