[PATCH] D12631: Avoid repeated replacements on loop-convert check.

Angel Garcia via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 4 05:02:03 PDT 2015


angelgarcia created this revision.
angelgarcia added a reviewer: klimek.
angelgarcia added subscribers: alexfh, cfe-commits.

The InitListExpr subtree is visited twice, this caused the check to do multiple replacements. Added a set to avoid it.

http://reviews.llvm.org/D12631

Files:
  clang-tidy/modernize/LoopConvertUtils.cpp
  clang-tidy/modernize/LoopConvertUtils.h
  test/clang-tidy/modernize-loop-convert-extra.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12631.34024.patch
Type: text/x-patch
Size: 5795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150904/ff6e9d5a/attachment.bin>


More information about the cfe-commits mailing list