[clang] [analyzer] Remove double spaces after sentence endings in emitted diagnostics (PR #228777)

Benedek Kaibas via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 25 14:17:20 PDT 2026


================
@@ -746,15 +746,15 @@ RefLeakReportVisitor::getEndPath(const ExplodedNode *EndN,
           os << "whose name ('" << MD->getSelector().getAsString()
              << "') does not start with "
                 "'copy', 'mutableCopy', 'alloc' or 'new'."
-                "  This violates the naming convention rules"
+                " This violates the naming convention rules"
                 " given in the Memory Management Guide for Cocoa";
         }
       } else {
         const FunctionDecl *FD = cast<FunctionDecl>(D);
         ObjKind K = RV->getObjKind();
         if (K == ObjKind::ObjC || K == ObjKind::CF) {
           os << "whose name ('" << *FD
-             << "') does not contain 'Copy' or 'Create'.  This violates the "
+             << "') does not contain 'Copy' or 'Create'. This violates the "
----------------
benedekaibas wrote:

Applied changes here: [eab194a](https://github.com/llvm/llvm-project/pull/228777/commits/eab194a6340af227cdc7fd86c31c0b1808aeac80). This also needed to change the existing `.plist` files relating to this change.

https://github.com/llvm/llvm-project/pull/228777


More information about the cfe-commits mailing list