Reviewed By: jberdine Differential Revision: D4329641 fbshipit-source-id: b850ccamaster
parent
f57154372f
commit
facdcbe6f2
@ -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.
|
||||
|
||||
TESTS_DIR = ../..
|
||||
|
||||
ANALYZER = infer
|
||||
|
||||
CLANG_OPTIONS = -c
|
||||
INFER_OPTIONS = --project-root ../codetoanalyze
|
||||
INFERPRINT_OPTIONS = --issues-tests
|
||||
|
||||
SOURCES = ../codetoanalyze/hello.c ../codetoanalyze/hello2.c
|
||||
|
||||
include $(TESTS_DIR)/clang.make
|
@ -0,0 +1,2 @@
|
||||
hello.c, test, 2, NULL_DEREFERENCE, [start of procedure test()]
|
||||
hello2.c, test2, 2, NULL_DEREFERENCE, [start of procedure test2()]
|
@ -1,12 +0,0 @@
|
||||
[
|
||||
{
|
||||
"bug_type": "NULL_DEREFERENCE",
|
||||
"file": "hello.c",
|
||||
"procedure": "test"
|
||||
},
|
||||
{
|
||||
"bug_type": "NULL_DEREFERENCE",
|
||||
"file": "hello2.c",
|
||||
"procedure": "test2"
|
||||
}
|
||||
]
|
Loading…
Reference in new issue