# 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 # Use the system headers of our own clang. This way, we always use the same system headers # regardless of the libraries installed on the machine. CLANG_OPTIONS = -x c++ -std=c++11 -nostdinc++ -isystem$(ROOT_DIR) -isystem$(CLANG_INCLUDES)/c++/v1/ -c INFER_OPTIONS = --cxx --ml-buckets cpp --no-filtering --debug-exceptions --project-root $(TESTS_DIR) 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 npe/*.cpp) \ $(wildcard numeric/*.cpp) \ $(wildcard overwrite_attribute/*.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/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/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 subtyping/*.cpp) \ $(wildcard vector/*.cpp) \ include $(TESTS_DIR)/clang.make