mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 07:14:10 +08:00
e9f40ae176
I ran the thing below (piped to “grep -v namespace”), fixed things up, and rewrapped comments in the affected file. import re import sys LAST_WORD_RE = re.compile('^.*[\s]+([\w]+)$') FIRST_WORD_RE = re.compile('^[^\w]+([\w]+).*$') for path in sys.argv[1:]: with open(path) as file: line_number = 0 last_word = None for line in file: line_number += 1 first_word = FIRST_WORD_RE.match(line) if first_word and first_word.group(1) == last_word: print('%s:%u: %s' % (path, line_number - 1, last_word)) last_word = LAST_WORD_RE.match(line) if last_word: last_word = last_word.group(1) Change-Id: Iea9f2a6453d9d9ec17e2f238e09252535d7408bd Reviewed-on: https://chromium-review.googlesource.com/780284 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>