Reviewed By: jberdine Differential Revision: D4329648 fbshipit-source-id: c4bb17amaster
parent
dece9f1386
commit
25e35e8bec
@ -1,7 +0,0 @@
|
||||
[
|
||||
{
|
||||
"bug_type": "NULL_DEREFERENCE",
|
||||
"file": "hello.c",
|
||||
"procedure": "test"
|
||||
}
|
||||
]
|
@ -0,0 +1,24 @@
|
||||
# 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
|
||||
|
||||
CODETOANALYZE_DIR = ../codetoanalyze
|
||||
|
||||
CLANG_OPTIONS = -c
|
||||
INFER_OPTIONS = --project-root $(CODETOANALYZE_DIR) --pmd-xml
|
||||
INFERPRINT_OPTIONS = --issues-tests
|
||||
|
||||
SOURCES = $(CODETOANALYZE_DIR)/hello.c
|
||||
|
||||
include $(TESTS_DIR)/clang.make
|
||||
|
||||
issues.exp.test: infer-out/report.json
|
||||
# grab only a few interesting fields from the xml to prevent flakiness
|
||||
@grep --only-matching -e ' \(name\|method\|rule\)="[^"]*"' infer-out/report.xml > $@
|
@ -0,0 +1,3 @@
|
||||
name="hello.c"
|
||||
method="test"
|
||||
rule="NULL_DEREFERENCE"
|
@ -0,0 +1,23 @@
|
||||
dnl Copyright (c) 2015 - present Facebook, Inc.
|
||||
dnl All rights reserved.
|
||||
dnl
|
||||
dnl This source code is licensed under the BSD style license found in the
|
||||
dnl LICENSE file in the root directory of this source tree. An additional grant
|
||||
dnl of patent rights can be found in the PATENTS file in the same directory.
|
||||
|
||||
dnl AC_CHECK_PYTHON_MODULE([python],[module])
|
||||
dnl
|
||||
dnl checks if the given module is available from the given Python interpreter
|
||||
AC_DEFUN([AC_CHECK_PYTHON_MODULE],
|
||||
[dnl
|
||||
AC_MSG_CHECKING([for Python module $2])
|
||||
if printf "import %s" $2 | $1 - 1> /dev/null 2> /dev/null; then
|
||||
AC_MSG_RESULT([ok])
|
||||
AS_TR_SH([PYTHON_$2])=yes
|
||||
else
|
||||
AC_MSG_RESULT([unavailable])
|
||||
AS_TR_SH([PYTHON_$2])=no
|
||||
fi
|
||||
|
||||
AC_SUBST(AS_TR_SH([PYTHON_$2]))
|
||||
])
|
Loading…
Reference in new issue