Reviewed By: jberdine Differential Revision: D4329644 fbshipit-source-id: d1b88damaster
parent
facdcbe6f2
commit
dece9f1386
@ -1,7 +0,0 @@
|
||||
[
|
||||
{
|
||||
"bug_type": "NULL_DEREFERENCE",
|
||||
"file": "hello.c",
|
||||
"procedure": "test"
|
||||
}
|
||||
]
|
@ -0,0 +1,28 @@
|
||||
# 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 = ../..
|
||||
|
||||
ANALYZER = infer
|
||||
|
||||
PROJECT_ROOT = ../codetoanalyze/ndk-build/hello_app
|
||||
SOURCES = $(PROJECT_ROOT)/hello.c
|
||||
OBJECTS = $(PROJECT_ROOT)/hello.o
|
||||
INFERPRINT_OPTIONS = --issues-tests
|
||||
CLEAN_EXTRA = libs obj
|
||||
|
||||
include $(TESTS_DIR)/base.make
|
||||
|
||||
$(OBJECTS): $(SOURCES)
|
||||
cd $(PROJECT_ROOT) && \
|
||||
$(NDKBUILD) -B NDK_LIBS_OUT=./libs NDK_OUT=./obj
|
||||
|
||||
infer-out/report.json: $(CLANG_DEPS) $(SOURCES)
|
||||
cd $(PROJECT_ROOT) && \
|
||||
$(call silent_on_success,\
|
||||
$(INFER_BIN) -a $(ANALYZER) --results-dir $(CURDIR)/infer-out -- \
|
||||
$(NDKBUILD) -B NDK_LIBS_OUT=./libs NDK_OUT=./obj)
|
@ -0,0 +1 @@
|
||||
hello.c, test, 2, NULL_DEREFERENCE, [start of procedure test()]
|
Loading…
Reference in new issue