summaryrefslogtreecommitdiff
path: root/tools/warn/cpp_warn_patterns.py
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2021-10-08 13:14:41 -0700
committer Chih-Hung Hsieh <chh@google.com> 2021-10-08 13:18:24 -0700
commitf36e01de6187e25d857f5e4245fa956be89375d9 (patch)
tree2c29281b48c2530931263a948eff28fc1c308415 /tools/warn/cpp_warn_patterns.py
parentb9b28016e645ffec7e9e5e2bdac85b6c6cf35d8e (diff)
Add new clang-tidy and clang warning patterns
* New "clang-tidy used ... seconds" warnings are reported when clang-tidy runs for more than 1/2 of TIDY_TIMEOUT seconds. * Recognize other clang-tidy warnings in separate groups; they should not be used in normal Android builds. * Add two more variants of C++ warnings. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I4a2e1c3c817c586cfe3da125b920cca77fcc63b6
Diffstat (limited to 'tools/warn/cpp_warn_patterns.py')
-rw-r--r--tools/warn/cpp_warn_patterns.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/warn/cpp_warn_patterns.py b/tools/warn/cpp_warn_patterns.py
index b738086640..1e1aa43fd5 100644
--- a/tools/warn/cpp_warn_patterns.py
+++ b/tools/warn/cpp_warn_patterns.py
@@ -297,6 +297,7 @@ warn_patterns = [
[r".*: warning: declaration 'class .+' does not declare anything"]),
medium('Initialization order will be different',
[r".*: warning: '.+' will be initialized after",
+ r".*: warning: initializer order does not match the declaration order",
r".*: warning: field .+ will be initialized after .+Wreorder"]),
skip('skip, ....',
[r".*: warning: '.+'"]),
@@ -448,6 +449,7 @@ warn_patterns = [
[r".*: warning: 'operator new' must not return NULL unless it is declared 'throw\(\)' .+"]),
medium('NULL used in arithmetic',
[r".*: warning: NULL used in arithmetic",
+ r".*: warning: .* subtraction with a null pointer",
r".*: warning: comparison between NULL and non-pointer"]),
medium('Misspelled header guard',
[r".*: warning: '.+' is used as a header guard .+ followed by .+ different macro"]),