[all-commits] [llvm/llvm-project] 25f540: [clang-tidy] Extend bugprone-string-constructor-ch...

Chris Kennelly via All-commits all-commits at lists.llvm.org
Wed Nov 18 18:16:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 25f5406f087579d43ca9a82dee7f3e76f0691bad
      https://github.com/llvm/llvm-project/commit/25f5406f087579d43ca9a82dee7f3e76f0691bad
  Author: Chris Kennelly <ckennelly at ckennelly.com>
  Date:   2020-11-18 (Wed, 18 Nov 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/StringConstructorCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/StringConstructorCheck.h
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst
    M clang-tools-extra/test/clang-tidy/checkers/bugprone-string-constructor.cpp

  Log Message:
  -----------
  [clang-tidy] Extend bugprone-string-constructor-check to std::string_view.

This allows for matching the constructors std::string has in common with
std::string_view.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list