Changeset 90965 in webkit
- Timestamp:
- Jul 13, 2011 4:45:17 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r90964 r90965 1 2011-07-13 Ilya Sherman <isherman@chromium.org> 2 3 Fix WTF header guard style check 4 https://bugs.webkit.org/show_bug.cgi?id=64488 5 6 Reviewed by David Levin. 7 8 * Scripts/webkitpy/style/checkers/cpp.py: 9 * Scripts/webkitpy/style/checkers/cpp_unittest.py: Verify that we don't *always* suggest "WTF_" as a prefix 10 1 11 2011-07-13 Ojan Vafai <ojan@chromium.org> 2 12 -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py
r89508 r90965 924 924 925 925 # Files under WTF typically have header guards that start with WTF_. 926 if filename.find('/wtf/'):926 if '/wtf/' in filename: 927 927 special_name = "WTF_" + standard_name 928 928 else: -
trunk/Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
r89508 r90965 2 2 # -*- coding: utf-8; -*- 3 3 # 4 # Copyright (C) 20 09, 2010Google Inc. All rights reserved.4 # Copyright (C) 2011 Google Inc. All rights reserved. 5 5 # Copyright (C) 2009 Torch Mobile Inc. 6 6 # Copyright (C) 2009 Apple Inc. All rights reserved. … … 2177 2177 error_collector.result_list()) 2178 2178 2179 # Verify that we don't blindly suggest the WTF prefix for all headers. 2180 self.assertFalse(expected_guard.startswith('WTF_')) 2181 2179 2182 # Allow the WTF_ prefix for files in that directory. 2180 2183 header_guard_filter = FilterConfiguration(('-', '+build/header_guard'))
Note: See TracChangeset
for help on using the changeset viewer.