[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-04-04 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG29444f0444c6: [modules] Merge ObjC interface ivars with anonymous

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-04-04 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Thanks everyone for the feedback! Especially valuable is opinion on making `ObjCContainerDecl` a lexical decl context. As discussed earlier, not many people can provide feedback on Objective-C-related code and I'm still responsible for any problems caused by this

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-03-28 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a reviewer: benlangmuir. vsapsai added a subscriber: benlangmuir. vsapsai added a comment. I've run clang with this change on a bunch of code (especially Objective-C code) and there were no regressions. Also adding @benlangmuir to reviewers as people mentioned he was doing some

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-03-22 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai updated this revision to Diff 417468. vsapsai added a comment. Fix bug with anonymous enum constant lookup in C++. Turns out the lookup was broken by using `ObjCInterfaceDecl` as a semantic decl context for anonymous enums. Fixing that fixed the lookup. Also added in tests checking

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-03-07 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai planned changes to this revision. vsapsai added inline comments. Herald added a project: All. Comment at: clang/test/Modules/merge-anon-record-definition-in-objc.m:5 +// RUN: %clang_cc1 -fsyntax-only -F%t/Frameworks %t/test.m -Wno-objc-property-implementation

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-03-01 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. The modules side of this looks good to me, and logically changing the lexical decl context in an interface to be that interface makes a lot of sense, but I agree with @rjmccall that it's hard to predict what the consequences of that change might be. Can you also test

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-02-28 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added inline comments. Comment at: clang/test/Modules/merge-anon-record-definition-in-objc.m:5 +// RUN: %clang_cc1 -fsyntax-only -F%t/Frameworks %t/test.m -Wno-objc-property-implementation -Wno-incomplete-implementation \ +// RUN:-fmodules

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-02-28 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. This is one of those patches that's difficult to review because it's so hard to foresee the consequences of changing the concepts. That said, I think the basic idea here seems reasonable. Comment at:

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-02-17 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Ping. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D118525/new/ https://reviews.llvm.org/D118525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-02-08 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai updated this revision to Diff 406977. vsapsai added a comment. Herald added a project: clang. Rebase and address clang-format comment. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D118525/new/ https://reviews.llvm.org/D118525 Files:

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-01-28 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. @akyrtzi I believe you were working on the code responsible for decl contexts at some point. I'm not sure you'll be able to review the change. Can you recommend someone else knowledgeable with this code? Repository: rC Clang CHANGES SINCE LAST ACTION

[PATCH] D118525: [modules] Merge ObjC interface ivars with anonymous types.

2022-01-28 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: ahatanak, rsmith. vsapsai added a project: clang-modules. Herald added a subscriber: ributzka. vsapsai requested review of this revision. Without the fix ivars with anonymous types can trigger errors like > error: 'TestClass::structIvar'