• avakulenko@chromium.org's avatar
    Update cpplint.py to r456. · 764ce71c
    avakulenko@chromium.org authored
    This is a cherry-pick of the GitHub commit, created after merging relevant
    changes from Google's internal cpplint.py implementation.
    
    456 - Tweak lint to sometimes allow { on line following array initialization.
    455 - Recognize more types.
    454 - Try a bit harder to detect templated types.
    453 - Changed error message wording on build/storage_class to be less ambiguous.
    452 - Recognize more types to silence false positives for brace warnings.
    451 - <skipped>
    450 - <skipped>
    449 - Ignore whitespace/tab for Linux Kernel files.
    448 - Remove some more false positive lint warnings for int64{n}.
    447 - Just one warning message for line length is enough, don't need two.
    446 - Allow braced conversions to int16, uint64, etc. per the style guide.
    445 - Fixed handling of backslash escapes for checking whether a "//" is quoted.
    444 - Reduced dependency on hardcoded .cc extension.
    443 - Disable single-arg constructor checks by default, since ClangTidy has the
          same check. We could just delete the check entirely, but it's slightly
          useful in places that can't run ClangTidy.
    442 - Fix matching of macro names in CheckTrailingSemicolon to include digits.
    441 - Deleted checks:
          - All checks for RValue references.
          - Spacing check around boolean &&, because those look like RValue
            references.
          A huge amount of code and effort were dedicated to tell RValue
          references apart from boolean expressions, and to differentiate
          allowed versus banned RValue references. But we still get regular
          false positives from this one check. Rather than making the check
          more complex than what it already is, it seemed safer to just delete
          it altogether for now, and have a different process for catching
          RValue references.
    440 - Add rule to cpplint to throw error on empty if statement bodies without
          else clauses. If statement bodies with comments are not considered empty.
    439 - Allow spaces before closing brace of namespace block so that namespaces
          inside of macro definitions (where the entire macro definition is
          indented) are not treated as errors.
    438 - cpplint: fix a false positive on `new const int(x)`.
    437 - Only check for function length when current line is inside a function.
    436 - cpplint: Catch static `std::string` instances as well as those written as
          `string`. Previously users would sometimes work around the lint warning by
          changing their code to even worse code by adding the "std::" prefix.
    435 - cpplint: Be a little smarter about warning on indentation.
    434 - cpplint: Remove false positives on some functions returning string const&.
    433 - cpplint: improve diagnostics of global/static string objects.
    432 - Allow non-const reference parameters for iostream based types.
    431 - Better handling of raw strings inside comments.
    430 - <noop>
    429 - <skipped>
    428 - <skipped>
    427 - Add support to CHECK_NOTNULL when checking if a member variable is
          initialized with itself.
    426 - Allow suppressing specific warnings in C headers.
    425 - Allow spaces before parens for inline assembly.
    424 - Remove lint checks for {EXPECT,ASSERT}_.*_M.
    423 - Allow comment lines of more than 80 characters if they contain a single
          "word" (without any spaces).
    422 - cpplint: Warn on inclusion of C++14 headers.
    421 - cpplint: recognize <shared_mutex> as a standard library header.
    420 - Add <scoped_allocator> to cpplint's list of C++ standard headers.
    419 - Add cpplint check for tr1/ headers. We removed the nanny guards for these
    418 - <skipped>
    417 - Update the styleguide and cpplint to allow unnamed parameters
    416 - Remove the rule explicitly banning non-default move operations.
    415 - Remove the check for explicit multi arg constructors
    414 - Include clarity of lambda default captures in "pros" section, mention
          of capturing `this` and lambdas which escape the current scope in "cons".
          Soften the ban on default captures to a preference, with admonition against
          using them for capturing `this` or when they will escape the current scope.
          This is a fairly straightforward change with a brief inclusion
          of 2 problematic cases for implicit capture. As this is the style
          guide, I'm not sure how much more detail is appropriate.
    413 - Fixed a bug by making regex in CleanseRawStrings match multiple raw strings
          on a single line in left-to-right order.
    412 - Fixed false positive for classes derived using decltype()
    411 - <skipped>
    410 - Recognize '1LL<<20' as numeric and don't flag it for spacing.
    
    BUG=
    
    Review-Url: https://codereview.chromium.org/1959503003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300481 0039d316-1c4b-4281-b951-d872f2087c98
    764ce71c
Name
Last commit
Last update
bootstrap Loading commit data...
fetch_configs Loading commit data...
git-templates Loading commit data...
git_utils Loading commit data...
infra Loading commit data...
luci_hacks Loading commit data...
man Loading commit data...
recipe_modules Loading commit data...
support Loading commit data...
testing_support Loading commit data...
tests Loading commit data...
third_party Loading commit data...
win_toolchain Loading commit data...
zsh-goodies Loading commit data...
.gitignore Loading commit data...
.style.yapf Loading commit data...
LICENSE Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README Loading commit data...
README.codereview Loading commit data...
README.gclient Loading commit data...
README.git-cl Loading commit data...
README.testing Loading commit data...
WATCHLISTS Loading commit data...
annotated_gclient.py Loading commit data...
apply_issue Loading commit data...
apply_issue.bat Loading commit data...
apply_issue.py Loading commit data...
auth.py Loading commit data...
breakpad.py Loading commit data...
buildbucket.py Loading commit data...
cbuildbot Loading commit data...
checkout.py Loading commit data...
chrome-update-create-task.bat Loading commit data...
chrome-update.bat Loading commit data...
chrome-update.py Loading commit data...
chrome_set_ver Loading commit data...
cit Loading commit data...
cit.bat Loading commit data...
cit.py Loading commit data...
clang-format Loading commit data...
clang-format.bat Loading commit data...
clang_format.py Loading commit data...
codereview.settings Loading commit data...
commit_queue Loading commit data...
commit_queue.bat Loading commit data...
commit_queue.py Loading commit data...
cpplint.bat Loading commit data...
cpplint.py Loading commit data...
cpplint_chromium.py Loading commit data...
create-chromium-git-src Loading commit data...
create-ntfs-junction.c Loading commit data...
create-ntfs-junction.exe Loading commit data...
cros Loading commit data...
cros_sdk Loading commit data...
dart_format.py Loading commit data...
depot-tools-auth Loading commit data...
depot-tools-auth.bat Loading commit data...
depot-tools-auth.py Loading commit data...
download_from_google_storage Loading commit data...
download_from_google_storage.bat Loading commit data...
download_from_google_storage.py Loading commit data...
drover Loading commit data...
drover.bat Loading commit data...
drover.py Loading commit data...
fetch Loading commit data...
fetch.bat Loading commit data...
fetch.py Loading commit data...
fix_encoding.py Loading commit data...
gcl Loading commit data...
gcl.bat Loading commit data...
gcl.py Loading commit data...
gclient Loading commit data...
gclient-new-workdir.py Loading commit data...
gclient.bat Loading commit data...
gclient.py Loading commit data...
gclient_completion.sh Loading commit data...
gclient_scm.py Loading commit data...
gclient_utils.py Loading commit data...
gerrit_util.py Loading commit data...
git-auto-svn Loading commit data...
git-cache Loading commit data...
git-cherry-pick-upload Loading commit data...
git-cl Loading commit data...
git-crrev-parse Loading commit data...
git-crsync Loading commit data...
git-drover Loading commit data...
git-find-releases Loading commit data...
git-footers Loading commit data...
git-freeze Loading commit data...
git-gs Loading commit data...
git-hyper-blame Loading commit data...
git-lkgr Loading commit data...
git-map Loading commit data...
git-map-branches Loading commit data...
git-mark-merge-base Loading commit data...
git-nav-downstream Loading commit data...
git-nav-upstream Loading commit data...
git-new-branch Loading commit data...
git-number Loading commit data...
git-rebase-update Loading commit data...
git-rename-branch Loading commit data...
git-reparent-branch Loading commit data...
git-retry Loading commit data...
git-runhooks Loading commit data...
git-squash-branch Loading commit data...
git-thaw Loading commit data...
git-try Loading commit data...
git-upstream-diff Loading commit data...
git_auto_svn.py Loading commit data...
git_cache.py Loading commit data...
git_cherry_pick_upload.py Loading commit data...
git_cl.py Loading commit data...
git_common.py Loading commit data...
git_dates.py Loading commit data...
git_drover.py Loading commit data...
git_find_releases.py Loading commit data...
git_footers.py Loading commit data...
git_freezer.py Loading commit data...
git_hyper_blame.py Loading commit data...
git_map.py Loading commit data...
git_map_branches.py Loading commit data...
git_mark_merge_base.py Loading commit data...
git_nav_downstream.py Loading commit data...
git_new_branch.py Loading commit data...
git_number.py Loading commit data...
git_rebase_update.py Loading commit data...
git_rename_branch.py Loading commit data...
git_reparent_branch.py Loading commit data...
git_retry.py Loading commit data...
git_squash_branch.py Loading commit data...
git_try.py Loading commit data...
git_upstream_diff.py Loading commit data...
gn Loading commit data...
gn.bat Loading commit data...
gn.py Loading commit data...
gsutil.py Loading commit data...
hammer Loading commit data...
hammer.bat Loading commit data...
my_activity.py Loading commit data...
my_reviews.py Loading commit data...
ninja Loading commit data...
ninja-linux32 Loading commit data...
ninja-linux64 Loading commit data...
ninja-mac Loading commit data...
ninja.exe Loading commit data...
owners.py Loading commit data...
owners_finder.py Loading commit data...
patch.py Loading commit data...
presubmit_canned_checks.py Loading commit data...
presubmit_support.py Loading commit data...
profile.xml Loading commit data...
pylint Loading commit data...
pylint.py Loading commit data...
pylintrc Loading commit data...
python_runner.sh Loading commit data...
recipes.py Loading commit data...
repo Loading commit data...
rietveld.py Loading commit data...
roll-dep Loading commit data...
roll-dep-svn Loading commit data...
roll-dep-svn.bat Loading commit data...
roll-dep.bat Loading commit data...
roll_dep.py Loading commit data...
roll_dep_svn.py Loading commit data...
scm.py Loading commit data...
setup_color.py Loading commit data...
subcommand.py Loading commit data...
subprocess2.py Loading commit data...
trychange.py Loading commit data...
update_depot_tools Loading commit data...
update_depot_tools.bat Loading commit data...
upload_to_google_storage.py Loading commit data...
watchlists.py Loading commit data...
weekly Loading commit data...
wtf Loading commit data...