From d742e90fe96c30174f154105b3f333aadd030055 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 31 Mar 2016 16:14:55 -0700 Subject: [PATCH] Recognize more Clang-Tidy google warning patterns. * Many AOSP C/C++ code have google-readability warnings. Bug: http://b/27779618 Change-Id: Ic7d33b957da5c1062410f48ef18bb68a5aa259e9 --- tools/warn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/warn.py b/tools/warn.py index 9fe692575..14b3f48de 100755 --- a/tools/warn.py +++ b/tools/warn.py @@ -645,6 +645,12 @@ warnpatterns = [ { 'category':'C/C++', 'severity':severity.TIDY, 'members':[], 'option':'', 'description':'clang-tidy google-explicit', 'patterns':[r".*: .+\[google-explicit-.+\]$"] }, + { 'category':'C/C++', 'severity':severity.TIDY, 'members':[], 'option':'', + 'description':'clang-tidy google-readability', + 'patterns':[r".*: .+\[google-readability-.+\]$"] }, + { 'category':'C/C++', 'severity':severity.TIDY, 'members':[], 'option':'', + 'description':'clang-tidy google-global', + 'patterns':[r".*: .+\[google-global-.+\]$"] }, { 'category':'C/C++', 'severity':severity.TIDY, 'members':[], 'option':'', 'description':'clang-tidy modernize', 'patterns':[r".*: .+\[modernize-.+\]$"] },