diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 06:59:16 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 06:59:16 +0000 |
commit | 49aa76a1085053d4ec0f0beac81638dd7e88fe6a (patch) | |
tree | e8dc8a9e40e0a17f7b9ff24df82c473a9aa8f7b8 /crypto/sha2.cc | |
parent | 7e392f35915f9278e1105ee25eca1c898eb12593 (diff) | |
download | chromium_src-49aa76a1085053d4ec0f0beac81638dd7e88fe6a.zip chromium_src-49aa76a1085053d4ec0f0beac81638dd7e88fe6a.tar.gz chromium_src-49aa76a1085053d4ec0f0beac81638dd7e88fe6a.tar.bz2 |
Add presubmit check for bad anonymous variables
These types are all scoped locks and should never be in an anonymous
variable. A presubmit check is not watertight, but should go a long way
towards avoiding this class of bugs.
I ran this check over Chromium and there were no false positives in the
codebase.
This CL is meant as an alternative to the macro and extra parentheses
approach described in https://codereview.chromium.org/71713004/
BUG=none
Review URL: https://codereview.chromium.org/100743004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/sha2.cc')
0 files changed, 0 insertions, 0 deletions