From: Benjamin Kramer Date: Sat, 2 Mar 2013 09:24:42 +0000 (+0000) Subject: Make the UseAuto test case generator compatible with python 2.5. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=336ec56081e775f9355bcc40f93ead0572bdc7c5;p=platform%2Fupstream%2Fllvm.git Make the UseAuto test case generator compatible with python 2.5. llvm-svn: 176406 --- diff --git a/clang-tools-extra/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py b/clang-tools-extra/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py index 8f11824..ae1ab36 100644 --- a/clang-tools-extra/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py +++ b/clang-tools-extra/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py @@ -42,26 +42,26 @@ int main(int argc, char **argv) {""".lstrip() # Strip leading newline for c in containers: print """ - {{ - std::{0} C; - std::{0}::iterator I = C.begin(); + { + std::%(0)s C; + std::%(0)s::iterator I = C.begin(); // CHECK: auto I = C.begin(); - }} - {{ - std::{0} C; - std::{0}::reverse_iterator I = C.rbegin(); + } + { + std::%(0)s C; + std::%(0)s::reverse_iterator I = C.rbegin(); // CHECK: auto I = C.rbegin(); - }} - {{ - const std::{0} C; - std::{0}::const_iterator I = C.begin(); + } + { + const std::%(0)s C; + std::%(0)s::const_iterator I = C.begin(); // CHECK: auto I = C.begin(); - }} - {{ - const std::{0} C; - std::{0}::const_reverse_iterator I = C.rbegin(); + } + { + const std::%(0)s C; + std::%(0)s::const_reverse_iterator I = C.rbegin(); // CHECK: auto I = C.rbegin(); - }}""".format(c) + }""" % {"0": c} print """ return 0;