[PATCH] Add support for auto-generating LIT tests by the build
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 19 12:30:37 PST 2013
================
Comment at: test/cpp11-migrate/UseAuto/Inputs/gen_my_std.h.py:43
@@ +42,3 @@
+
+namespace std {"""
+
----------------
Note that in libc++ classes are defined not in the 'std' namespace directly:
```namespace std {
namespace __1 {
template<...skipped...>
class vector { ...skipped... };
} // __1
using __1::vector;
} // std```
================
Comment at: test/cpp11-migrate/UseAuto/Inputs/gen_my_std.h.py:61-62
@@ +60,4 @@
+ print """
+template <typename T>
+class {0} {{
+public:
----------------
Standard containers have more template arguments, but they have default values. I did not have time to review the refactoring code yet, so this is JFYI -- your code might be handling those correctly already.
http://llvm-reviews.chandlerc.com/D423
More information about the cfe-commits
mailing list