<commit_before>.. title:: clang-tidy - readability-redundant-string-init

readability-redundant-string-init
=================================


Finds unnecessary string initializations.

Examples:

.. code:: c++

  // Initializing string with empty string literal is unnecessary.
  std::string a = "";
  std::string b("");
<commit_msg>Remove a blank line at EOF. NFC<commit_after>.. title:: clang-tidy - readability-redundant-string-init

readability-redundant-string-init
=================================


Finds unnecessary string initializations.

Examples:

.. code:: c++

  // Initializing string with empty string literal is unnecessary.
  std::string a = "";
  std::string b("");
{'fraction_non_alphanumeric': 0.21106259097525473, 'fraction_numerical': 0.0, 'mean_word_length': 4.59349593495935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5627135', 'n_tokens_mistral': 199, 'n_tokens_neox': 189, 'n_words': 54}