[all-commits] [llvm/llvm-project] 101267: [clang-tidy]bugprone-fold-init-type

Clement Courbet via All-commits all-commits at lists.llvm.org
Fri Apr 7 05:17:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1012677284b87091f76542c3c79da641101578ae
      https://github.com/llvm/llvm-project/commit/1012677284b87091f76542c3c79da641101578ae
  Author: Clement Courbet <courbet at google.com>
  Date:   2023-04-07 (Fri, 07 Apr 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/FoldInitTypeCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/fold-init-type.cpp

  Log Message:
  -----------
  [clang-tidy]bugprone-fold-init-type

Handle iterators that do not define a `value_type` type alias.

Get the value type from the return type of `Iter::operator*` instead.

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




More information about the All-commits mailing list