From 72758029177995f6c7e3ea13a29dcf5f1ff31963 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 4 May 2017 16:30:14 -0700 Subject: [PATCH] Work around clang-tidy segmentation fault. This should affect only builds that call clang-tidy. Without this change, clang-tidy has segmentation fault when compiling several files in the system/core/init directory. Bug: 38002385 Test: build with WITH_TIDY=1 Change-Id: I63b898370c43e1d6b02671751137b1027ba4cdac --- init/Android.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init/Android.mk b/init/Android.mk index 537bbee35..d25e11982 100644 --- a/init/Android.mk +++ b/init/Android.mk @@ -61,6 +61,8 @@ include $(BUILD_HOST_NATIVE_TEST) endif include $(CLEAR_VARS) +# b/38002385, work around clang-tidy segmentation fault. +LOCAL_TIDY_CHECKS := -misc-forwarding-reference-overload LOCAL_CPPFLAGS := $(init_cflags) LOCAL_SRC_FILES:= \ action.cpp \ @@ -82,6 +84,8 @@ LOCAL_CLANG := true include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) +# b/38002385, work around clang-tidy segmentation fault. +LOCAL_TIDY_CHECKS := -misc-forwarding-reference-overload LOCAL_CPPFLAGS := $(init_cflags) LOCAL_SRC_FILES:= \ bootchart.cpp \ @@ -139,6 +143,8 @@ include $(BUILD_EXECUTABLE) # Unit tests. # ========================================================= include $(CLEAR_VARS) +# b/38002385, work around clang-tidy segmentation fault. +LOCAL_TIDY_CHECKS := -misc-forwarding-reference-overload LOCAL_MODULE := init_tests LOCAL_SRC_FILES := \ devices_test.cpp \