[all-commits] [llvm/llvm-project] 1097c7: [clang-tidy] Support functional cast in bugprone-d...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Wed Oct 25 22:10:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1097c71dbeefaff0c353c90cb57bc07b6ede6383
      https://github.com/llvm/llvm-project/commit/1097c71dbeefaff0c353c90cb57bc07b6ede6383
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/DanglingHandleCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/dangling-handle.cpp

  Log Message:
  -----------
  [clang-tidy] Support functional cast in bugprone-dangling-handle (#69067)

Add support for constructor conversion based functional
cast. Allows to detect issues like:
const std::string_view test1 = std::string(a);




More information about the All-commits mailing list