Reviewed By: jvillard Differential Revision: D4328623 fbshipit-source-id: 58370b7master
parent
b5124c1506
commit
9f153dbafa
@ -0,0 +1,27 @@
|
||||
# Copyright (c) 2016 - present Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD style license found in the
|
||||
# LICENSE file in the root directory of this source tree. An additional grant
|
||||
# of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
TESTS_DIR = ../../..
|
||||
|
||||
IPHONESIMULATOR_ISYSROOT_SUFFIX = /Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
|
||||
|
||||
XCODEROOT = $(shell xcode-select -p)
|
||||
|
||||
CLANG_OPTIONS = -x objective-c \
|
||||
-isysroot $(XCODEROOT)$(IPHONESIMULATOR_ISYSROOT_SUFFIX) \
|
||||
-mios-simulator-version-min=8.2 --target=x86_64-apple-darwin14 -fobjc-arc -c \
|
||||
|
||||
ANALYZER = linters
|
||||
INFER_OPTIONS = --no-filtering --debug-exceptions --project-root $(TESTS_DIR) \
|
||||
--iphoneos-target-sdk-version 8.0
|
||||
INFERPRINT_OPTIONS = --issues-tests
|
||||
|
||||
SOURCES = \
|
||||
$(wildcard *.m) \
|
||||
$(wildcard */*.m) \
|
||||
|
||||
include $(TESTS_DIR)/clang.make
|
@ -0,0 +1,2 @@
|
||||
codetoanalyze/objc/ioslinters/unavailable_api_in_supported_ios_sdk.m, OpenURLOptionsFromSourceApplication, 18, UNAVAILABLE_API_IN_SUPPORTED_IOS_SDK, []
|
||||
codetoanalyze/objc/ioslinters/unavailable_api_in_supported_ios_sdk.m, Unavailable_api_in_supported_ios_sdk_test:and:, 11, UNAVAILABLE_API_IN_SUPPORTED_IOS_SDK, []
|
@ -0,0 +1,20 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface Unavailable_api_in_supported_ios_sdk : NSObject
|
||||
|
||||
@end
|
||||
|
||||
@implementation Unavailable_api_in_supported_ios_sdk
|
||||
|
||||
- (void)test:(int)n and:(NSData*)data {
|
||||
NSDictionary* cacheData =
|
||||
[NSKeyedUnarchiver unarchiveTopLevelObjectWithData:data error:nil];
|
||||
}
|
||||
@end
|
||||
|
||||
static NSDictionary* OpenURLOptionsFromSourceApplication(
|
||||
NSString* sourceApplication) {
|
||||
NSDictionary* options =
|
||||
@{UIApplicationOpenURLOptionsSourceApplicationKey : sourceApplication};
|
||||
return options;
|
||||
}
|
Loading…
Reference in new issue