Changeset 51541 in webkit
- Timestamp:
- Dec 1, 2009 8:46:48 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51526 r51541 1 2009-12-01 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 check-webkit-style complains about #imports with / in them 6 https://bugs.webkit.org/show_bug.cgi?id=32022 7 8 We need to exclude #import directives in addition to #include from the 9 binary operator whitespace checks. 10 11 * Scripts/modules/cpp_style.py: 12 * Scripts/modules/cpp_style_unittest.py: 13 1 14 2009-11-30 Adam Barth <abarth@webkit.org> 2 15 -
trunk/WebKitTools/Scripts/modules/cpp_style.py
r51526 r51541 1534 1534 # Don't try to do spacing checks for operator methods 1535 1535 line = re.sub(r'operator(==|!=|<|<<|<=|>=|>>|>)\(', 'operator\(', line) 1536 # Don't try to do spacing checks for #include statements at minimum it1537 # m esses up checks for spacing around /1538 if match(r'\s*#\s* include', line):1536 # Don't try to do spacing checks for #include or #import statements at 1537 # minimum because it messes up checks for spacing around / 1538 if match(r'\s*#\s*(?:include|import)', line): 1539 1539 return 1540 1540 if search(r'[\w.]=[\w.]', line): -
trunk/WebKitTools/Scripts/modules/cpp_style_unittest.py
r50091 r51541 1272 1272 self.assert_multi_line_lint('#include "config.h"\n#include <sys/io.h>\n', 1273 1273 '') 1274 self.assert_multi_line_lint('#include "config.h"\n#import <foo/bar.h>\n', 1275 '') 1274 1276 1275 1277 def test_spacing_before_last_semicolon(self):
Note: See TracChangeset
for help on using the changeset viewer.