ast-grep: combine string literal arguments in cmStrCat

This commit is contained in:
Ben Boeckel
2025-10-27 16:21:54 -04:00
parent b196a40b0d
commit 514cbbc76e
2 changed files with 6 additions and 3 deletions

View File

@@ -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"));

View File

@@ -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."),