mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
ast-grep: combine string literal arguments in cmStrCat
This commit is contained in:
1 parent
b196a40b0d
commit
514cbbc76e
2 files changed
+6
-3
No files matched your search
@@ -36,8 +36,10 @@ void cmBinUtilsLinker::NormalizePath(std::string& path) const
|
||||
if (policy == cmPolicies::WARN) {
|
||||
this->Archive->GetMakefile()->IssueMessage(
|
||||
MessageType::AUTHOR_WARNING,
|
||||
cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0207), '\n',
|
||||
"Path\n \"", path,
|
||||
cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0207),
|
||||
"\n"
|
||||
"Path\n \"",
|
||||
path,
|
||||
"\"\n"
|
||||
"would be converted to\n \"",
|
||||
normalizedPath, "\"\n"));
|
||||
|
||||
@@ -5053,7 +5053,8 @@ struct TargetOutputNameArtifactResultGetter<ArtifactPdbTag>
|
||||
postfix != Postfix::Unspecified) {
|
||||
eval->Context.LG->GetCMakeInstance()->IssueMessage(
|
||||
MessageType::AUTHOR_WARNING,
|
||||
cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0202), '\n',
|
||||
cmStrCat(cmPolicies::GetPolicyWarning(cmPolicies::CMP0202),
|
||||
"\n"
|
||||
"\"POSTFIX\" option is recognized only when the policy is "
|
||||
"set to NEW. Since the policy is not set, the OLD behavior "
|
||||
"will be used."),
|
||||
|
||||
Reference in new issue
Block a user