[all-commits] [llvm/llvm-project] 6a3469: [ObjC] Add compatibility mode for type checking of...
Volodymyr Sapsai via All-commits
all-commits at lists.llvm.org
Thu May 14 12:09:57 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6a3469f58d0c230e86043f6975f048968334dfa4
https://github.com/llvm/llvm-project/commit/6a3469f58d0c230e86043f6975f048968334dfa4
Author: Volodymyr Sapsai <vsapsai at apple.com>
Date: 2020-05-14 (Thu, 14 May 2020)
Changed paths:
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Driver/CC1Options.td
M clang/lib/AST/ASTContext.cpp
M clang/lib/Driver/ToolChains/Darwin.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/test/Driver/darwin-objc-options.m
M clang/test/SemaObjC/block-type-safety.m
Log Message:
-----------
[ObjC] Add compatibility mode for type checking of qualified id block parameters.
Commit 73152a2ec20766ac45673a129bf1f5fc97ca9bbe fixed type checking for
blocks with qualified id parameters. But there are existing APIs in
Apple SDKs relying on the old type checking behavior. Specifically,
these are APIs using NSItemProviderCompletionHandler in
Foundation/NSItemProvider.h. To keep existing code working and to allow
developers to use affected APIs introduce a compatibility mode that
enables the previous and the fixed type checking. This mode is enabled
only on Darwin platforms.
Reviewed By: jyknight, ahatanak
Differential Revision: https://reviews.llvm.org/D79511
More information about the All-commits
mailing list