parameters: (histogram_enum_name, source_enum_path, start_marker,
                           end_marker)
return_statement: return xml != new_xml
docstring: Reads a C++ enum from a .h file and does a dry run of updating
    histograms.xml to match. Returns true if the histograms.xml file would be
    changed.
  
    Args:
        histogram_enum_name: The name of the XML <enum> attribute to update.
        source_enum_path: A unix-style path, relative to src/, giving
            the C++ header file from which to read the enum.
        start_marker: A regular expression that matches the start of the C++ enum.
        end_marker: A regular expression that matches the end of the C++ enum.
docstring_summary: Reads a C++ enum from a .h file and does a dry run of updating
    histograms.xml to match. Returns true if the histograms.xml file would be
    changed.
docstring_tokens: Reads a C ++ enum from a . h file and does a dry run of updating histograms . xml to match . Returns true if the histograms . xml file would be changed .
function: def HistogramNeedsUpdate(histogram_enum_name, source_enum_path, start_marker,
                           end_marker):
    """Reads a C++ enum from a .h file and does a dry run of updating
    histograms.xml to match. Returns true if the histograms.xml file would be
    changed.
  
    Args:
        histogram_enum_name: The name of the XML <enum> attribute to update.
        source_enum_path: A unix-style path, relative to src/, giving
            the C++ header file from which to read the enum.
        start_marker: A regular expression that matches the start of the C++ enum.
        end_marker: A regular expression that matches the end of the C++ enum.
    """
    Log('Reading histogram enum definition from "{0}".'.format(source_enum_path))
    source_enum_values = ReadHistogramValues(source_enum_path, start_marker,
                                             end_marker)
  
    (xml, new_xml) = _GetOldAndUpdatedXml(histogram_enum_name, source_enum_values,
                                          source_enum_path)
    return xml != new_xml
function_tokens: def HistogramNeedsUpdate ( histogram_enum_name , source_enum_path , start_marker , end_marker ) : Log ( 'Reading histogram enum definition from "{0}".' . format ( source_enum_path ) ) source_enum_values = ReadHistogramValues ( source_enum_path , start_marker , end_marker ) ( xml , new_xml ) = _GetOldAndUpdatedXml ( histogram_enum_name , source_enum_values , source_enum_path ) return xml != new_xml