https://github.com/iidmsa created 
https://github.com/llvm/llvm-project/pull/213566

The test had `CHECK` directives that were never executed because the `RUN` line 
did not pipe output to `FileCheck`. This also drops the first `CHECK` directive 
in favor of the one below it due to `libclang` now reporting top-level forward 
class declarations as `ObjCClassRef` cursors which is the modern representation 
of that same declaration.

>From 1d605558b4a1f46326f7cd2681eec580645ef350 Mon Sep 17 00:00:00 2001
From: Fady Farag <[email protected]>
Date: Sun, 2 Aug 2026 13:46:48 -0500
Subject: [PATCH] [clang][test] Use `FileCheck` in
 `Index/reparse-predef-objc-protocol.m`

The test had `CHECK` directives that were never executed because the `RUN`
line did not pipe output to `FileCheck`. This also drops the first `CHECK`
directive in favor of the one below it due to `libclang` now reporting top-level
forward class declarations as `ObjCClassRef` cursors which is the modern
representation of that same declaration.
---
 clang/test/Index/reparse-predef-objc-protocol.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clang/test/Index/reparse-predef-objc-protocol.m 
b/clang/test/Index/reparse-predef-objc-protocol.m
index fc9d8572e0c18..6598024a8ffdf 100644
--- a/clang/test/Index/reparse-predef-objc-protocol.m
+++ b/clang/test/Index/reparse-predef-objc-protocol.m
@@ -1,8 +1,7 @@
-// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 3 
local %s -I %S/Inputs
+// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 3 
local %s -I %S/Inputs | FileCheck %s
 #import "declare-objc-predef.h"
 // PR20633
 
-// CHECK: declare-objc-predef.h:1:8: ObjCInterfaceDecl=Protocol:1:8 
Extent=[1:1 - 1:16]
 // CHECK: declare-objc-predef.h:1:8: ObjCClassRef=Protocol:1:8 Extent=[1:8 - 
1:16]
 // CHECK: declare-objc-predef.h:2:16: StructDecl=objc_class:2:16 Extent=[2:9 - 
2:26]
 // CHECK: declare-objc-predef.h:2:28: TypedefDecl=Class:2:28 (Definition) 
Extent=[2:1 - 2:33]

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to