1243cdda6330139c55e8ecc033fcb559581e6870 |
|
17-Dec-2011 |
Chandler Carruth <chandlerc@gmail.com> |
As Doug pointed out (and I really should know), it is perfectly easy to 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146827 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/VariadicFunctionTest.cpp
|
db21f4c187816b03d7b30d0d238f71cbd8a0a9a7 |
|
16-Dec-2011 |
Chandler Carruth <chandlerc@gmail.com> |
Put the '*' in the right place in the unit test. Forgot to fix up this bit of style, sorry. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/VariadicFunctionTest.cpp
|
d916ce3c8e1c88352703db12b47862b1794c7dad |
|
16-Dec-2011 |
Chandler Carruth <chandlerc@gmail.com> |
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
/external/llvm/unittests/ADT/VariadicFunctionTest.cpp
|