You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1020 B
26 lines
1020 B
8 years ago
|
# Copyright (c) 2017 - 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 = ../..
|
||
|
|
||
|
SOURCE_DIR = ../codetoanalyze
|
||
|
|
||
|
ANALYZER = infer
|
||
|
INFER_OPTIONS = --report-custom-error --developer-mode --project-root $(SOURCE_DIR) --no-failures-allowed
|
||
|
SOURCES = $(wildcard $(SOURCE_DIR)/*.cpp $(SOURCE_DIR)/*.h)
|
||
|
OBJECTS = '$(SOURCE_DIR)/buck-out/gen/clang_compilation_database/__Hel lo\#compilation-database,x86_64.json'
|
||
|
INFERPRINT_OPTIONS = --issues-tests
|
||
|
CLEAN_EXTRA = $(SOURCE_DIR)/buck-out
|
||
|
|
||
|
include $(TESTS_DIR)/base.make
|
||
|
|
||
|
infer-out/report.json: $(CLANG_DEPS) $(SOURCES)
|
||
|
cd $(SOURCE_DIR) && \
|
||
|
$(call silent_on_success,\
|
||
|
$(INFER_BIN) -a $(ANALYZER) --stats $(INFER_OPTIONS) -o $(CURDIR)/$(@D) \
|
||
|
--buck-compilation-database no-deps -- buck build '//clang_compilation_database:Hel lo#x86_64')
|