summaryrefslogtreecommitdiff
path: root/tools/warn/cpp_warn_patterns.py
AgeCommit message (Collapse)Author
2021-10-08Add new clang-tidy and clang warning patterns Chih-Hung Hsieh
* 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
2021-09-23Add new clang and clang-tidy warning patterns Chih-Hung Hsieh
* New "clang-tidy aborted ..." warnings are reported when clang-tidy runs for more than TIDY_TIMEOUT seconds. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: Iea62b06b2cf78737d7713dabbcf6d9ac8ba23898
2021-06-02Add new Asm/C++/Java/Make warning patterns Chih-Hung Hsieh
* Change some incorrectly-classified logtags warnings to C++. * Fix gpylint warnings of long lines in html_writer.py. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I98c01dadfd72b202d81ef7c94e93c42182f6065c
2021-04-28Fix/suppress most pylint and gpylint warnings Chih-Hung Hsieh
* Add missing function doc strings. Suppress this warning on trivial functions in *_warn_patterns.py. * Remove unused g-importing-memeber, g-complex-comprehension. * Suppress pylint warning on unrecognized g-* options. * Suppress too-few-public-methods warnings on simple classes. * Suppress too-many-arguments and missing-function-docstring in html_writer.py, which will be refactored later. * Fix bad naming, long lines and line breaks, and bad quotes. Test: compare output for build.log Change-Id: Icdb34f014a10ec1e642c2cfe8003fc3ae245b507
2020-09-18Add new Java/C++/Yacc warning patterns Chih-Hung Hsieh
Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I49eafa322902f0587738b583b6262117595318ee
2020-01-29Add new C++ and Java warning patterns Chih-Hung Hsieh
Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: I11457fdab7abd475e835367582c0b9aab11cfe6f
2020-01-13Clean up cpp warning patterns Chih-Hung Hsieh
* Remove the useless 'option' key. It is only used in some C/C++ warning patterns to give a hint of options to turn to -Werror. Now the global default is -Werror. * Factor out common code patterns into high/medium/low functions. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: Ibd3f768b1552ada925eb5afb0f01ab674c968a87
2020-01-10Use new Severity class and update *_warn_patterns Chih-Hung Hsieh
* This new class definition and patterns are shared between Android and ChromeOS compiler tools. * Suppress hard to fix and false positive linter warnings. Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Test: warn.py --gencsv build.log > warnings.csv Change-Id: Icb47809100ad30796cb1da82610e989d450194fa
2020-01-06Add new compiler warning patterns Chih-Hung Hsieh
* 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
2019-12-17Split warn.py into multiple files Chih-Hung Hsieh
* Split warning patterns into *_warn_patterns.py * Split project list into android_project_list.py * Split out the Severity class, to be changed later * Split core of warn.py into warn_common.py and leave only platform dependent code in warn.py. This allows the core logic be used with different parallel processing libraries. * Old warn.py just calls -m warn.warn. Test: path_to_build/tools/warn.py build.log Test: warn.py --url=http://cs/android --separator='?l=' build.log > warnings.html Change-Id: I6734e4472a21018cd5ce06d549f6dbca24f4de54