tools/metrics/histograms/find_unmapped_histograms.py
def removeComments(string):
  """Remove any comments from an expression, including leading and trailing
  whitespace. This does not correctly ignore comments embedded in strings, but
  that shouldn't matter for this script. Newlines in the removed text are
  preserved so that line numbers don't change.

  Args:
    string: The string to remove comments from, e.g.
    '  // My histogram\n   "My.Important.Counts" '

  Returns:
    The string with comments removed, e.g. '"\nMy.Important.Counts" '

  """
  return CPP_COMMENT.sub(keepOnlyNewlines, string)
Remove any comments from an expression, including leading and trailing
  whitespace. This does not correctly ignore comments embedded in strings, but
  that shouldn't matter for this script. Newlines in the removed text are
  preserved so that line numbers don't change.

  Args:
    string: The string to remove comments from, e.g.
    '  // My histogram\n   "My.Important.Counts" '

  Returns:
    The string with comments removed, e.g. '"\nMy.Important.Counts" '

  
Remove any comments from an expression, including leading and trailing
whitespace. This does not correctly ignore comments embedded in strings, but
that shouldn't matter for this script. Newlines in the removed text are
preserved so that line numbers don't change.

The string to remove comments from, e.g.
'  // My histogram\n   "My.Important.Counts" '

The string with comments removed, e.g.
Remove any comments from an expression including leading and trailing whitespace . This does not correctly ignore comments embedded in strings but that shouldn ' t matter for this script . Newlines in the removed text are preserved so that line numbers don ' t change . The string to remove comments from e . g . ' // My histogram \ n " My . Important . Counts " ' The string with comments removed e . g .
def removeComments(string):
  return CPP_COMMENT.sub(keepOnlyNewlines, string)
def removeComments ( string ) : return CPP_COMMENT . sub ( keepOnlyNewlines , string )
Remove any comments from an expression, including leading and trailing
whitespace.
Remove any comments from an expression including leading and trailing whitespace .
"""Remove any comments from an expression, including leading and trailing
  whitespace. This does not correctly ignore comments embedded in strings, but
  that shouldn't matter for this script. Newlines in the removed text are
  preserved so that line numbers don't change.

  Args:
    string: The string to remove comments from, e.g.
    '  // My histogram\n   "My.Important.Counts" '

  Returns:
    The string with comments removed, e.g. '"\nMy.Important.Counts" '

  """
string