Skip to content

Commit eb39ee7

Browse files
author
Gabor Horvath
committed
[clang] Fix lifetimebound APINotes tests
The APINotes implementation upstream and downstream are not exactly the same, this PR makes sure the lifetimebound type attribute for 'this' object is deduplicated, and updates the test to respect versioned attributes. rdar://140295698
1 parent 4020665 commit eb39ee7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/APINotes/lifetimebound.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
// CHECK-METHOD: CXXMethodDecl {{.+}} methodToAnnotate
1313
// CHECK-METHOD-NEXT: ParmVarDecl {{.+}} p
14+
// CHECK-METHOD-NEXT: SwiftVersionedAdditionAttr
15+
// CHECK-METHOD-NEXT: LifetimeBoundAttr
1416
// CHECK-METHOD-NEXT: LifetimeBoundAttr
1517

1618
// CHECK-METHOD-THIS: CXXMethodDecl {{.+}} annotateThis 'int *() {{\[\[}}clang::lifetimebound{{\]\]}}'

0 commit comments

Comments
 (0)