OSDN Git Service

Better pattern matching and dump of warning messages.
authorChih-Hung Hsieh <chh@google.com>
Tue, 11 Oct 2016 22:33:19 +0000 (15:33 -0700)
committerChih-Hung Hsieh <chh@google.com>
Tue, 11 Oct 2016 22:33:19 +0000 (15:33 -0700)
commit5722f9247b6760978f759d0fd14ac30ce296abaf
treed2adca147ca237745ccbc7fdce6ddff4c0c19e81
parentb37e81d3cd15d42c6eabd7e9468d301cbb6a36fd
Better pattern matching and dump of warning messages.

* Warning messages must start with source file path.
  This will reject lines containing only 'warning:'
  but not a source file path prefix.
* Escape both backslash and quotation marks in the
  dump of strings to JavaScript string literals.

Bug: 32060052
Test: run through build.log files
Change-Id: Ib064768b1ba2954f974604ea054f7a6d2ad15ae7
tools/warn.py