From f41a631b50f4c305da3b7033eb033cc129ead082 Mon Sep 17 00:00:00 2001 From: Angel Garcia Gomez Date: Mon, 21 Sep 2015 09:32:59 +0000 Subject: Refactor LoopConvertCheck. Summary: Reorder the code in a more logical and understandable way. Reviewers: klimek Subscribers: cfe-commits, alexfh Differential Revision: http://reviews.llvm.org/D12797 llvm-svn: 248144 --- clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp') diff --git a/clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp b/clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp index 635644a5d96..dd16cb26f62 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp @@ -406,12 +406,12 @@ public: for (const_iterator I = begin(), E = end(); I != E; ++I) (void) *I; // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: use range-based for loop instead - // CHECK-FIXES: for (auto & elem : *this) + // CHECK-FIXES: for (const auto & elem : *this) for (const_iterator I = C::begin(), E = C::end(); I != E; ++I) (void) *I; // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: use range-based for loop instead - // CHECK-FIXES: for (auto & elem : *this) + // CHECK-FIXES: for (const auto & elem : *this) for (const_iterator I = begin(), E = end(); I != E; ++I) { (void) *I; -- cgit v1.2.3