diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-14 16:29:47 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-14 16:29:47 +0200 |
commit | d0424a769059c84ae20beb3c217812792ea6726b (patch) | |
tree | 6f94a5c3db8c52c6694ee56498542a6c35417350 /Tools/Scripts/webkitpy/style/checkers/cpp.py | |
parent | 88a04ac016f57c2d78e714682445dff2e7db4ade (diff) | |
download | qtwebkit-d0424a769059c84ae20beb3c217812792ea6726b.tar.gz |
Imported WebKit commit 37c5e5041d39a14ea0d429a77ebd352e4bd26516 (http://svn.webkit.org/repository/webkit/trunk@128608)
New snapshot that enables WebKit2 build on Windows (still some bugs) and allows for WebKit to be built with qmake && make
Diffstat (limited to 'Tools/Scripts/webkitpy/style/checkers/cpp.py')
-rw-r--r-- | Tools/Scripts/webkitpy/style/checkers/cpp.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/Scripts/webkitpy/style/checkers/cpp.py b/Tools/Scripts/webkitpy/style/checkers/cpp.py index 1e3f8767f..c573482c0 100644 --- a/Tools/Scripts/webkitpy/style/checkers/cpp.py +++ b/Tools/Scripts/webkitpy/style/checkers/cpp.py @@ -3028,6 +3028,11 @@ def check_language(filename, clean_lines, line_number, file_extension, include_s check_identifier_name_in_declaration(filename, line_number, line, file_state, error) + # Check for unsigned int (should be just 'unsigned') + if search(r'\bunsigned int\b', line): + error(line_number, 'runtime/unsigned', 1, + 'Omit int when using unsigned') + # Check that we're not using static_cast<Text*>. if search(r'\bstatic_cast<Text\*>', line): error(line_number, 'readability/check', 4, @@ -3595,6 +3600,7 @@ class CppChecker(object): 'runtime/sizeof', 'runtime/string', 'runtime/threadsafe_fn', + 'runtime/unsigned', 'runtime/virtual', 'whitespace/blank_line', 'whitespace/braces', |