[all-commits] [llvm/llvm-project] dfa8f5: [clang-tidy] Fix init-list handling in readability...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Wed Apr 5 03:42:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfa8f5b13e58cd742821860c351005e63f9ce890
      https://github.com/llvm/llvm-project/commit/dfa8f5b13e58cd742821860c351005e63f9ce890
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion.cpp

  Log Message:
  -----------
  [clang-tidy] Fix init-list handling in readability-implicit-bool-conversion

Adds support for explicit casts using initListExpr,
for example: int{boolValue} constructions.

Fixes: #47000

Reviewed By: ccotter

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




More information about the All-commits mailing list