[PATCH] D70158: [analyzer] Fix Objective-C accessor body farms after D68108.

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 13 08:37:06 PST 2019


aprantl added a comment.

> In the affected test D68108 <https://reviews.llvm.org/D68108> causes stubs of getter and setter methods for property 'x' appear in both ObjCInterfaceDecl and ObjCImplementationDecl for our toy ClassWithProperties. Previously they were only present in ObjCInterfaceDecl. I guess that's the intended behavior.

The "stub" is really only a forward declaration marked as `isPropertyAccessorStub()` and it's injected into the various implementations to get more precise debug info attribution for it. The forward decl in the interface is still there, thus the method appearing twice now.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70158/new/

https://reviews.llvm.org/D70158





More information about the cfe-commits mailing list