[clang] fd09e8f - [ExtractAPI] fix filecheck annotation (#92231)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 8 09:21:14 PDT 2026
Author: klensy
Date: 2026-04-08T17:21:08+01:00
New Revision: fd09e8f814c7f96a2b9c65b5737e529fd1c62708
URL: https://github.com/llvm/llvm-project/commit/fd09e8f814c7f96a2b9c65b5737e529fd1c62708
DIFF: https://github.com/llvm/llvm-project/commit/fd09e8f814c7f96a2b9c65b5737e529fd1c62708.diff
LOG: [ExtractAPI] fix filecheck annotation (#92231)
moved fix for ExtractAPI from
https://github.com/llvm/llvm-project/pull/91854,
https://github.com/llvm/llvm-project/pull/91854#pullrequestreview-2052128349
Also noticed typo here, prefix `E` but check for `C`, fixed too:
https://github.com/llvm/llvm-project/blob/ca4a405232cf170f20a2f111bf72beab82095935/clang/test/ExtractAPI/availability.c#L43-L65
Co-authored-by: klensy <nightouser at gmail.com>
Co-authored-by: Prajwal Nadig <pnadig at apple.com>
Added:
Modified:
clang/test/ExtractAPI/availability.c
clang/test/ExtractAPI/objc_property.m
Removed:
################################################################################
diff --git a/clang/test/ExtractAPI/availability.c b/clang/test/ExtractAPI/availability.c
index 4f7e21a5c3765..921e661d26244 100644
--- a/clang/test/ExtractAPI/availability.c
+++ b/clang/test/ExtractAPI/availability.c
@@ -40,7 +40,7 @@ void b(void) __attribute__((availability(macos, introduced=11.0, deprecated=12.0
// B-NEXT: }
// B-NEXT: ]
-// RUN: FileCheck %s --input-file %t/output.symbols.json --check-prefix E
+// RUN: FileCheck %s --input-file %t/output.symbols.json --check-prefix C
void c(void) __attribute__((availability(macos, introduced=11.0, deprecated=12.0, obsoleted=30.0))) __attribute__((availability(ios, introduced=13.0)));
// C-LABEL: "!testLabel": "c:@F at c"
// C: "availability": [
diff --git a/clang/test/ExtractAPI/objc_property.m b/clang/test/ExtractAPI/objc_property.m
index 9e6b40f77370c..db21504025020 100644
--- a/clang/test/ExtractAPI/objc_property.m
+++ b/clang/test/ExtractAPI/objc_property.m
@@ -45,7 +45,7 @@ @interface Interface (Category) <Protocol>
@property(class) int myCategoryTypeProp;
// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(cpy)myCategoryTypeProp $ c:objc(cs)Interface"
@property int myCategoryInstanceProp;
-// CHECK-DAG "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)myCategoryInstanceProp $ c:objc(cs)Interface"
+// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)myCategoryInstanceProp $ c:objc(cs)Interface"
@end
// expected-no-diagnostics
More information about the cfe-commits
mailing list