summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/template-specialization.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Moving a C++ test out of Sema and into SemaCXX; NFC.Aaron Ballman2017-04-121-0/+21
| | | | llvm-svn: 300071
* Use explicitly-specified template argument lists to help namingDouglas Gregor2009-09-251-6/+0
| | | | | | explicit template specializations, when available. llvm-svn: 82824
* This takes a long time to crash, just disable it for now.Chris Lattner2009-07-171-1/+2
| | | | llvm-svn: 76263
* Improved semantic analysis and AST respresentation for functionDouglas Gregor2009-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | templates. For example, this now type-checks (but does not instantiate the body of deref<int>): template<typename T> T& deref(T* t) { return *t; } void test(int *ip) { int &ir = deref(ip); } Specific changes/additions: * Template argument deduction from a call to a function template. * Instantiation of a function template specializations (just the declarations) from the template arguments deduced from a call. * FunctionTemplateDecls are stored directly in declaration contexts and found via name lookup (all forms), rather than finding the FunctionDecl and then realizing it is a template. This is responsible for most of the churn, since some of the core declaration matching and lookup code assumes that all functions are FunctionDecls. llvm-svn: 74213
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Ultrasimplistic sketch for the parsing of C++ template-ids. This won'tDouglas Gregor2008-12-181-0/+4
become useful or correct until we (1) parse template arguments correctly, (2) have some way to turn template-ids into types, declarators, etc., and (3) have a real representation of templates. llvm-svn: 61208
OpenPOWER on IntegriCloud