[all-commits] [llvm/llvm-project] f325b5: [clang-tidy] Support std::string_view in readabili...

tberghammer via All-commits all-commits at lists.llvm.org
Mon Jan 2 03:24:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f325b5b8cb1d6c16dd04c88380caea7b0a7750eb
      https://github.com/llvm/llvm-project/commit/f325b5b8cb1d6c16dd04c88380caea7b0a7750eb
  Author: Tamas Berghammer <tamas at hudson-trading.com>
  Date:   2023-01-02 (Mon, 02 Jan 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-cstr.cpp

  Log Message:
  -----------
  [clang-tidy] Support std::string_view in readability-redundant-string-cstr

Previously we were matching constructor calls for std::string and
llvm::StringRef and this change extends this set with including
std::string_view as well.

Reviewed By: njames93, carlosgalvezp

Differential Revision: https://reviews.llvm.org/D140018




More information about the All-commits mailing list