[clang] [analyzer] Standardize diagnostics that had contained double space after sentence end (PR #228777)

Benedek Kaibas via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 27 02:35:55 PDT 2026


================
@@ -114,7 +114,7 @@ void test_block_var_from_outside_block(void) {
   ^{
     use_block_var(&once);
   };
-  dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'once' for the predicate value.}}
+  dispatch_once(&once, ^{}); // expected-warning{{Call to 'dispatch_once' uses the block variable 'once' for the predicate value;}}
 }
 
 void test_static_var_from_outside_block(void) {
----------------
benedekaibas wrote:

These are substrings and not full sentences. This test file mixes regex expected warnings and expected warnings like this one that just use the substring.

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


More information about the cfe-commits mailing list