summaryrefslogtreecommitdiff
path: root/tools/incident_section_gen
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-01-26 18:47:14 -0800
committerChih-Hung Hsieh <chh@google.com>2017-01-26 18:47:14 -0800
commitfca7aac5ecd995085b71a4d90b4862f68fbaeb45 (patch)
tree9589533ab024714d5b6fcda9a13919d203698559 /tools/incident_section_gen
parent9e77aefe9ce2c3caa8c0daebf21c86088e10b951 (diff)
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 incident_* directories. Bug: 34740546 Test: build with WITH_TIDY=1 and DEFAULT_GLOBAL_TIDY_CHECKS="*,-readability-*,-google-readability-*,-google-runtime-references" Change-Id: Idfd46f36c01ccdd401eb54b750bc9d962c29ddeb
Diffstat (limited to 'tools/incident_section_gen')
-rw-r--r--tools/incident_section_gen/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/incident_section_gen/Android.mk b/tools/incident_section_gen/Android.mk
index acf3f8327b5c..05490266576a 100644
--- a/tools/incident_section_gen/Android.mk
+++ b/tools/incident_section_gen/Android.mk
@@ -21,6 +21,8 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := incident-section-gen
+# b/34740546, work around clang-tidy segmentation fault.
+LOCAL_TIDY_CHECKS := -modernize*
LOCAL_CFLAGS += -g -O0
LOCAL_C_INCLUDES := \
external/protobuf/src