Add new compiler warning patterns

* Mostly new Java and Kotlin warnings found in nightly builds.
* More clean up of Java and C++ warning patterns will follow.

Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html
Change-Id: I8776401d15c3a59535722d52a5eec03f954d3b15
This commit is contained in:
Chih-Hung Hsieh
2020-01-06 12:02:27 -08:00
parent 99202ec0a6
commit a9f7746f29
3 changed files with 40 additions and 13 deletions

View File

@@ -426,6 +426,9 @@ patterns = [
{'category': 'C/C++', 'severity': Severity.MEDIUM, 'option': '-Wnon-literal-null-conversion',
'description': 'Zero used as null pointer',
'patterns': [r".*: warning: expression .* zero treated as a null pointer constant"]},
{'category': 'C/C++', 'severity': Severity.MEDIUM, 'option': '-Wpointer-compare',
'description': 'Compare pointer to null character',
'patterns': [r".*: warning: comparing a pointer to a null character constant"]},
{'category': 'C/C++', 'severity': Severity.MEDIUM,
'description': 'Implicit conversion changes value or loses precision',
'patterns': [r".*: warning: implicit conversion .* changes value from .* to .*-conversion",