aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/VariadicFunctionTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2011-12-17As Doug pointed out (and I really should know), it is perfectly easy toChandler Carruth1-4/+4
make VariadicFunction actually be trivial. Do so, and also make it look more like your standard trivial functor by making it a struct with no access specifiers. The unit test is updated to initialize its functors properly. llvm-svn: 146827
2011-12-16Put the '*' in the right place in the unit test. Forgot to fix up thisChandler Carruth1-7/+7
bit of style, sorry. llvm-svn: 146733
2011-12-16Add a generic collection of class templates to ADT for buildingChandler Carruth1-0/+110
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! llvm-svn: 146729