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.

70 lines
2.4 KiB

# 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 = -x c++ -std=c++14 -isystem$(ROOT_DIR) -c
INFER_OPTIONS = --ml-buckets cpp --no-filtering --debug-exceptions --project-root $(TESTS_DIR) \
--no-failures-allowed --pmd-xml
INFERPRINT_OPTIONS = --issues-tests
SOURCES = \
$(wildcard c_tests/*.cpp) \
include_header/header.h \
include_header/include_templ.cpp \
$(wildcard memory_leaks/*.cpp) \
$(wildcard models/*.cpp) \
$(wildcard generic_models/*.cpp) \
$(wildcard mutex/*.cpp) \
$(wildcard npe/*.cpp) \
$(wildcard numeric/*.cpp) \
$(wildcard overwrite_attribute/*.cpp) \
$(wildcard pointers/*.cpp) \
$(wildcard resource_leaks/*.cpp) \
$(wildcard shared/attributes/*.cpp) \
$(wildcard shared/conditional/*.cpp) \
shared/constructors/constructor_init.cpp \
shared/constructors/constructor_new.cpp \
shared/constructors/constructor_with_body.cpp \
shared/constructors/copy_move_constructor.cpp \
shared/constructors/temp_object.cpp \
shared/constructors/copy_array_field.cpp \
shared/exceptions/Exceptions.cpp \
$(wildcard shared/lambda/*.cpp) \
shared/methods/conversion_operator.cpp \
shared/methods/static.cpp \
shared/namespace/function.cpp \
shared/namespace/global_variable.cpp \
shared/methods/virtual_methods.cpp \
shared/nestedoperators/var_decl_inside_if.cpp \
$(wildcard shared/npe/*.cpp) \
shared/reference/reference_field.cpp \
shared/reference/reference_struct_e2e.cpp \
shared/reference/reference_type_e2e.cpp \
shared/reference/temporary_lvalue.cpp \
shared/templates/class_template_instantiate.cpp \
shared/templates/function.cpp \
shared/templates/function_pack.cpp \
shared/templates/method.cpp \
shared/types/const.cpp \
shared/types/inheritance_casts.cpp \
shared/types/inheritance_field.cpp \
shared/types/operator_overload.cpp \
shared/types/return_struct.cpp \
shared/types/struct_forward_declare.cpp \
shared/types/struct_pass_by_value.cpp \
shared/types/typeid_expr.cpp \
$(wildcard smart_ptr/*.cpp) \
$(wildcard stack_escape/*.cpp) \
$(wildcard static_local/*.cpp) \
$(wildcard subtyping/*.cpp) \
$(wildcard vector/*.cpp) \
include $(TESTS_DIR)/clang.make