[clang-tools-extra] r176406 - Make the UseAuto test case generator compatible with python 2.5.
Benjamin Kramer
benny.kra at googlemail.com
Sat Mar 2 01:24:42 PST 2013
Author: d0k
Date: Sat Mar 2 03:24:42 2013
New Revision: 176406
URL: http://llvm.org/viewvc/llvm-project?rev=176406&view=rev
Log:
Make the UseAuto test case generator compatible with python 2.5.
Modified:
clang-tools-extra/trunk/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py
Modified: clang-tools-extra/trunk/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py?rev=176406&r1=176405&r2=176406&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py Sat Mar 2 03:24:42 2013
@@ -42,26 +42,26 @@ int main(int argc, char **argv) {""".lst
for c in containers:
print """
- {{
- std::{0}<int> C;
- std::{0}<int>::iterator I = C.begin();
+ {
+ std::%(0)s<int> C;
+ std::%(0)s<int>::iterator I = C.begin();
// CHECK: auto I = C.begin();
- }}
- {{
- std::{0}<int> C;
- std::{0}<int>::reverse_iterator I = C.rbegin();
+ }
+ {
+ std::%(0)s<int> C;
+ std::%(0)s<int>::reverse_iterator I = C.rbegin();
// CHECK: auto I = C.rbegin();
- }}
- {{
- const std::{0}<int> C;
- std::{0}<int>::const_iterator I = C.begin();
+ }
+ {
+ const std::%(0)s<int> C;
+ std::%(0)s<int>::const_iterator I = C.begin();
// CHECK: auto I = C.begin();
- }}
- {{
- const std::{0}<int> C;
- std::{0}<int>::const_reverse_iterator I = C.rbegin();
+ }
+ {
+ const std::%(0)s<int> C;
+ std::%(0)s<int>::const_reverse_iterator I = C.rbegin();
// CHECK: auto I = C.rbegin();
- }}""".format(c)
+ }""" % {"0": c}
print """
return 0;
More information about the cfe-commits
mailing list