Reviewed By: akotulski Differential Revision: D4204552 fbshipit-source-id: a484464master
parent
338a8563a1
commit
e8085d5996
@ -0,0 +1,10 @@
|
|||||||
|
#include "../../../../codetoanalyze/objcpp/linters/componentkit/FakeComponentKitHeader.h"
|
||||||
|
|
||||||
|
@interface SomeClass : CKCompositeComponent
|
||||||
|
@end
|
||||||
|
@implementation SomeClass
|
||||||
|
+ (instancetype) new {
|
||||||
|
int i; // error
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
@end
|
@ -0,0 +1 @@
|
|||||||
|
src/
|
@ -0,0 +1,18 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
SYM_ROOT = ../codetoanalyze/linters/tsrc_symlink
|
||||||
|
|
||||||
|
TESTS_DIR = ../..
|
||||||
|
ANALYZER = linters
|
||||||
|
CLANG_OPTIONS = -x objective-c++ -std=c++11 -fblocks -c
|
||||||
|
INFER_OPTIONS = --no-filtering --debug-exceptions --project_root $(SYM_ROOT)
|
||||||
|
INFERPRINT_OPTIONS = --issues-tests
|
||||||
|
|
||||||
|
SOURCES = $(SYM_ROOT)/main.mm
|
||||||
|
|
||||||
|
include $(TESTS_DIR)/clang.make
|
@ -0,0 +1 @@
|
|||||||
|
main.mm, SomeClass_new, 7, MUTABLE_LOCAL_VARIABLE_IN_COMPONENT_FILE, []
|
Loading…
Reference in new issue