Code Duplication    Length = 14-14 lines in 2 locations

core/build-support/cpplint.py 1 location

@@ 5110-5123 (lines=14) @@
5107
  return False
5108
5109
5110
def IsOutOfLineMethodDefinition(clean_lines, linenum):
5111
  """Check if current line contains an out-of-line method definition.
5112
5113
  Args:
5114
    clean_lines: A CleansedLines instance containing the file.
5115
    linenum: The number of the line to check.
5116
  Returns:
5117
    True if current line contains an out-of-line method definition.
5118
  """
5119
  # Scan back a few lines for start of current function
5120
  for i in xrange(linenum, max(-1, linenum - 10), -1):
5121
    if Match(r'^([^()]*\w+)\(', clean_lines.elided[i]):
5122
      return Match(r'^[^()]*\w+::\w+\(', clean_lines.elided[i]) is not None
5123
  return False
5124
5125
5126
def IsInitializerList(clean_lines, linenum):

sdk/build-support/cpplint.py 1 location

@@ 5110-5123 (lines=14) @@
5107
  return False
5108
5109
5110
def IsOutOfLineMethodDefinition(clean_lines, linenum):
5111
  """Check if current line contains an out-of-line method definition.
5112
5113
  Args:
5114
    clean_lines: A CleansedLines instance containing the file.
5115
    linenum: The number of the line to check.
5116
  Returns:
5117
    True if current line contains an out-of-line method definition.
5118
  """
5119
  # Scan back a few lines for start of current function
5120
  for i in xrange(linenum, max(-1, linenum - 10), -1):
5121
    if Match(r'^([^()]*\w+)\(', clean_lines.elided[i]):
5122
      return Match(r'^[^()]*\w+::\w+\(', clean_lines.elided[i]) is not None
5123
  return False
5124
5125
5126
def IsInitializerList(clean_lines, linenum):