summaryrefslogtreecommitdiffstats
path: root/test/input/Function-template.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-26 20:34:24 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-21 21:04:46 (GMT)
commitfa551b8b9703c5877ac653344c3e01b2ef4de98b (patch)
tree8066e1ef2b28de78ea8d04cce4300b1ab23d19e8 /test/input/Function-template.cxx
parent556f3cb3e00dacea207124a1c954187d6ccb3b95 (diff)
downloadCastXML-fa551b8b9703c5877ac653344c3e01b2ef4de98b.zip
CastXML-fa551b8b9703c5877ac653344c3e01b2ef4de98b.tar.gz
CastXML-fa551b8b9703c5877ac653344c3e01b2ef4de98b.tar.bz2
Output: Generate function template instantiations and specializations
Teach the AddStartDecl and PrintMembersAttribute methods to queue function template instantiations and specializations for output using an AddFunctionTemplateDecl helper to share common implementation. Map the Clang SubstTemplateTypeParm type to its replacement type.
Diffstat (limited to 'test/input/Function-template.cxx')
-rw-r--r--test/input/Function-template.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/input/Function-template.cxx b/test/input/Function-template.cxx
new file mode 100644
index 0000000..b501b82
--- /dev/null
+++ b/test/input/Function-template.cxx
@@ -0,0 +1,3 @@
+template <typename T> T start(T) {}
+template <> char start<char>(char); // specialization
+template int start<int>(int); // instantiation