steven_wu added inline comments.
Comment at: clang/lib/Driver/ToolChains/Darwin.cpp:2382
+ // Foundation/NSItemProvider.h.
+ CC1Args.push_back("-fcompatibility-qualified-id-block-type-checking");
}
Not that I know there is a better place to put this option,
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6a3469f58d0c: [ObjC] Add compatibility mode for type
checking of qualified id blockā¦ (authored by vsapsai).
Changed prior to commit:
https://reviews.llvm.org/D79511?vs=263865=264058#toc
Repository:
vsapsai added a comment.
Thanks everyone for reviews.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79511/new/
https://reviews.llvm.org/D79511
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ahatanak accepted this revision.
ahatanak added a comment.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79511/new/
https://reviews.llvm.org/D79511
___
cfe-commits mailing list
vsapsai updated this revision to Diff 263865.
vsapsai added a comment.
Squash the commits, so that reviewers can review the entire change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79511/new/
https://reviews.llvm.org/D79511
Files:
jyknight accepted this revision.
jyknight added a comment.
This revision is now accepted and ready to land.
It looks like you didn't squash your two commits before uploading, so the diff
for review now only includes the changes for the comment, not the complete
patch. Other than needing to
vsapsai updated this revision to Diff 263544.
vsapsai added a comment.
Make compatibility mode accept correct types per James' Y Knight helpful
suggestion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79511/new/
https://reviews.llvm.org/D79511
vsapsai added inline comments.
Comment at: clang/test/SemaObjC/block-type-safety.m:170
+genericBlockWithParam = blockWithParam;
+blockWithParam = genericBlockWithParam; // expected-error {{incompatible
block pointer types assigning to 'void (^)(NSAllArray *)' from 'void
jyknight added inline comments.
Comment at: clang/test/SemaObjC/block-type-safety.m:170
+genericBlockWithParam = blockWithParam;
+blockWithParam = genericBlockWithParam; // expected-error {{incompatible
block pointer types assigning to 'void (^)(NSAllArray *)' from
vsapsai created this revision.
vsapsai added reviewers: arphaman, dexonsmith.
Herald added subscribers: ributzka, jkorous.
Herald added a project: clang.
Commit 73152a2ec20766ac45673a129bf1f5fc97ca9bbe fixed type checking for
blocks with qualified id parameters. But there are existing APIs in
10 matches
Mail list logo