Summary: This makes our python code work (instead of crashing) when the source file should be found not from the current directory (or absolute path), eg with `infer --project-root .. -- clang -c hello.c`. Reviewed By: jeremydubreil Differential Revision: D4130802 fbshipit-source-id: 001f72dmaster
parent
2f5d132734
commit
2cd0151e30
@ -0,0 +1,16 @@
|
|||||||
|
# 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 = ../..
|
||||||
|
include $(TESTS_DIR)/clang.make
|
||||||
|
|
||||||
|
ANALYZER = infer
|
||||||
|
CLANG_OPTIONS = -c
|
||||||
|
INFER_OPTIONS = --report-custom-error --developer-mode --project-root ../../../tests
|
||||||
|
|
||||||
|
SOURCES = \
|
||||||
|
../codetoanalyze/hello.c \
|
@ -0,0 +1 @@
|
|||||||
|
build_systems/codetoanalyze/hello.c, test, 2, NULL_DEREFERENCE
|
Loading…
Reference in new issue