[PATCH] D137782: [clang-tidy]bugprone-fold-init-type

Clement Courbet via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 10 05:14:54 PST 2022


courbet created this revision.
courbet added a reviewer: aaron.ballman.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
courbet requested review of this revision.
Herald added a project: clang-tools-extra.

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

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137782

Files:
  clang-tools-extra/clang-tidy/bugprone/FoldInitTypeCheck.cpp
  clang-tools-extra/test/clang-tidy/checkers/bugprone/fold-init-type.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137782.474518.patch
Type: text/x-patch
Size: 7374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221110/f29aba3e/attachment.bin>


More information about the cfe-commits mailing list