mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-25 07:58:59 -06:00
ast-grep: combine string literal arguments in cmStrCat
This commit is contained in:
@@ -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