Add a generic collection of class templates to ADT for building
authorChandler Carruth <chandlerc@gmail.com>
Fri, 16 Dec 2011 08:58:59 +0000 (08:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 16 Dec 2011 08:58:59 +0000 (08:58 +0000)
commitd916ce3c8e1c88352703db12b47862b1794c7dad
tree6e47e776607739e93b30c452d06cc2afda2d22ac
parent9646acfccfae3e5dd4fc18bbb14b0a5c9cc9563e
Add a generic collection of class templates to ADT for building
variadic-like functions in C++98. See the comments in the header file
for a more detailed description of how these work. We plan to use these
extensively in the AST matching library. This code and idea were
originally authored by Zhanyong Wan. I've condensed it using macros
to reduce repeatition and adjusted it to fit better with LLVM's ADT.

Thanks to both David Blaikie and Doug Gregor for the review!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146729 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/VariadicFunction.h [new file with mode: 0644]
unittests/ADT/VariadicFunctionTest.cpp [new file with mode: 0644]
unittests/CMakeLists.txt