[clang] [analyzer] Remove double spaces after sentence endings in emitted diagnostics (PR #228777)
Donát Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 03:41:30 PDT 2026
================
@@ -125,10 +125,10 @@ void MacOSXAPIChecker::CheckDispatchOnce(CheckerContext &C, const CallExpr *CE,
} else {
os << " stack allocated memory";
}
- os << " for the predicate value. Using such transient memory for "
+ os << " for the predicate value. Using such transient memory for "
"the predicate is potentially dangerous.";
if (SuggestStatic)
- os << " Perhaps you intended to declare the variable as 'static'?";
+ os << " Perhaps you intended to declare the variable as 'static'?";
----------------
NagyDonat wrote:
> I also had to change the existing .plist file(s) that were related to this test file.
Dropping full `.plist` files into the test directories is a very cumbersome way of testing, I don't like that it is used for this checker, but the best thing that we can do now is editing the plists when we need it. _They are just garbage heaps – not historical monuments._
https://github.com/llvm/llvm-project/pull/228777
More information about the cfe-commits
mailing list