16176a2d3e934528c1b6a4c80d0fc53c86ec5933,scripts/cpp_lint.py,,,#,4239

Before Change



_RE_PATTERN_STRING = re.compile(r"\bstring\b")

_re_pattern_algorithm_header = []
for _template in ("copy", "max", "min", "min_element", "sort", "swap",
                  "transform"):
  // Match max<type>(..., ...), max(..., ...), but not foo->max, foo.max or
  // type::max().

After Change


    r"\s*<(?:<(?:<[^<>]*>|[^<>])*>|[^<>])*>|"
    r"::)+")
// A call-by-reference parameter ends with "& identifier".
_RE_PATTERN_REF_PARAM = re.compile(
    r"(" + _RE_PATTERN_TYPE + r"(?:\s*(?:\bconst\b|[*]))*\s*"
    r"&\s*" + _RE_PATTERN_IDENT + r")\s*(?:=[^,()]+)?[,)]")
// A call-by-const-reference parameter either ends with "const& identifier"
// or looks like "const type& identifier" when "type" is atomic.
_RE_PATTERN_CONST_REF_PARAM = (
    r"(?:.*\s*\bconst\s*&\s*" + _RE_PATTERN_IDENT +
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: BVLC/caffe
Commit Name: 16176a2d3e934528c1b6a4c80d0fc53c86ec5933
Time: 2014-04-22
Author: jeff.donahue@gmail.com
File Name: scripts/cpp_lint.py
Class Name:
Method Name:


Project Name: thoughtfulml/examples-in-python
Commit Name: 4630405d8134201e03780a9fb74878e6d39763ee
Time: 2020-07-20
Author: matt@matthewkirk.com
File Name: artificial_neural_networks/network.py
Class Name: Network
Method Name: _build_ann


Project Name: BVLC/caffe
Commit Name: 9572a68b8832a09f716017742fbd3b4f1da3d131
Time: 2014-08-12
Author: jeff.donahue@gmail.com
File Name: scripts/cpp_lint.py
Class Name:
Method Name: