Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py

Issue 2469153002: Remove remaining unused imports in webkitpy. (Closed)
Patch Set: Remove unused imports in webkitpy. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # 2 #
3 # Copyright (C) 2009, 2010, 2012 Google Inc. All rights reserved. 3 # Copyright (C) 2009, 2010, 2012 Google Inc. All rights reserved.
4 # Copyright (C) 2009 Torch Mobile Inc. 4 # Copyright (C) 2009 Torch Mobile Inc.
5 # Copyright (C) 2009 Apple Inc. All rights reserved. 5 # Copyright (C) 2009 Apple Inc. All rights reserved.
6 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) 6 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
7 # 7 #
8 # Redistribution and use in source and binary forms, with or without 8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are 9 # modification, are permitted provided that the following conditions are
10 # met: 10 # met:
(...skipping 23 matching lines...) Expand all
34 # This is the modified version of Google's cpplint. The original code is 34 # This is the modified version of Google's cpplint. The original code is
35 # http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py 35 # http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
36 36
37 """Support for check-webkit-style.""" 37 """Support for check-webkit-style."""
38 38
39 import math # for log 39 import math # for log
40 import os 40 import os
41 import os.path 41 import os.path
42 import re 42 import re
43 import sre_compile 43 import sre_compile
44 import string
45 import unicodedata 44 import unicodedata
46 45
47 from webkitpy.common.memoized import memoized 46 from webkitpy.common.memoized import memoized
48 from webkitpy.common.system.filesystem import FileSystem 47 from webkitpy.common.system.filesystem import FileSystem
49 48
50 # Headers that we consider STL headers. 49 # Headers that we consider STL headers.
51 _STL_HEADERS = frozenset([ 50 _STL_HEADERS = frozenset([
52 'algobase.h', 'algorithm', 'alloc.h', 'bitset', 'deque', 'exception', 51 'algobase.h', 'algorithm', 'alloc.h', 'bitset', 'deque', 'exception',
53 'function.h', 'functional', 'hash_map', 'hash_map.h', 'hash_set', 52 'function.h', 'functional', 'hash_map', 'hash_map.h', 'hash_set',
54 'hash_set.h', 'iterator', 'list', 'list.h', 'map', 'memory', 'pair.h', 53 'hash_set.h', 'iterator', 'list', 'list.h', 'map', 'memory', 'pair.h',
(...skipping 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after
3638 3637
3639 def check(self, lines): 3638 def check(self, lines):
3640 _process_lines(self.file_path, self.file_extension, lines, 3639 _process_lines(self.file_path, self.file_extension, lines,
3641 self.handle_style_error, self.min_confidence) 3640 self.handle_style_error, self.min_confidence)
3642 3641
3643 3642
3644 # FIXME: Remove this function (requires refactoring unit tests). 3643 # FIXME: Remove this function (requires refactoring unit tests).
3645 def process_file_data(filename, file_extension, lines, error, min_confidence, fs =None): 3644 def process_file_data(filename, file_extension, lines, error, min_confidence, fs =None):
3646 checker = CppChecker(filename, file_extension, error, min_confidence, fs) 3645 checker = CppChecker(filename, file_extension, error, min_confidence, fs)
3647 checker.check(lines) 3646 checker.check(lines)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698