[PATCH] D46747: [Sema] Use dotted form of macOS version for unguarded availability FixIts
Jan Korous via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 11 08:47:41 PDT 2018
jkorous planned changes to this revision.
jkorous added a comment.
Sorry, my bad. I tried to get rid of dependency on Foundation.h and didn't check the test is relevant for the fix after that.
#import <Foundation/Foundation.h>
@interface foo
- (void) method NS_AVAILABLE_MAC(10_12);
@end
int main() {
[foo method];
return 0;
}
Looks like NS_AVAILABLE_MAC is not equivalent to the attribute.
Interesting question about UsesUnderscores, thanks! It looks like it must be set through constructor somewhere - will figure this out.
Repository:
rC Clang
https://reviews.llvm.org/D46747
More information about the cfe-commits
mailing list