Mercurial > hg > CbC > CbC_llvm
diff clang/test/SemaCXX/warn-range-loop-analysis-trivially-copyable.cpp @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line diff
--- a/clang/test/SemaCXX/warn-range-loop-analysis-trivially-copyable.cpp Mon May 25 11:50:15 2020 +0900 +++ b/clang/test/SemaCXX/warn-range-loop-analysis-trivially-copyable.cpp Mon May 25 11:55:54 2020 +0900 @@ -16,7 +16,7 @@ char a[65]; }; - // expected-warning@+3 {{loop variable 'r' of type 'const Record' creates a copy from type 'const Record'}} + // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} Record records[8]; for (const auto r : records) @@ -40,7 +40,7 @@ char a[65]; }; - // expected-warning@+3 {{loop variable 'r' of type 'const Record' creates a copy from type 'const Record'}} + // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} Record records[8]; for (const auto r : records) @@ -55,7 +55,7 @@ int b; }; - // expected-warning@+3 {{loop variable 'r' of type 'const Record' creates a copy from type 'const Record'}} + // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} Record records[8]; for (const auto r : records) @@ -81,7 +81,7 @@ char a[65]; }; - // expected-warning@+3 {{loop variable 'r' of type 'const Record' creates a copy from type 'const Record'}} + // expected-warning@+3 {{loop variable 'r' creates a copy from type 'const Record'}} // expected-note@+2 {{use reference type 'const Record &' to prevent copying}} Record records[8]; for (const auto r : records)