diff options
author | Angel Garcia Gomez <angelgarcia@google.com> | 2015-09-21 09:32:59 +0000 |
---|---|---|
committer | Angel Garcia Gomez <angelgarcia@google.com> | 2015-09-21 09:32:59 +0000 |
commit | f41a631b50f4c305da3b7033eb033cc129ead082 (patch) | |
tree | ddf75d8be31e32eeded2e3e892630cbfff2afe27 /clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp | |
parent | 5d7962880d67ee2351edf6e73b5984ad01bbb735 (diff) | |
download | bcm5719-llvm-f41a631b50f4c305da3b7033eb033cc129ead082.tar.gz bcm5719-llvm-f41a631b50f4c305da3b7033eb033cc129ead082.zip |
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
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |