Просмотр исходного кода

ast-grep: combine string literal arguments in `cmStrCat`

Ben Boeckel 3 месяцев назад
Родитель
Сommit
514cbbc76e
2 измененных файлов с 6 добавлено и 3 удалено
  1. 4 2
      Source/cmBinUtilsLinker.cxx
  2. 2 1
      Source/cmGeneratorExpressionNode.cxx

+ 4 - 2
Source/cmBinUtilsLinker.cxx

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

+ 2 - 1
Source/cmGeneratorExpressionNode.cxx

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