summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-expr-2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* When transforming a C++ "new" expression's constructor arguments, dropDouglas Gregor2010-05-261-0/+31
| | | | | | | | | any arguments that are default-argument expressions. The can show up when we have a new expression whose constructor arguments are not type-dependent and whose allocated type is not dependent and has a constructor with default arguments. Fixes PR7202. llvm-svn: 104690
* Collapse the three separate initialization paths inDouglas Gregor2010-04-161-0/+19
| | | | | | | | | | | | | | | | | | TryStaticImplicitCast (for references, class types, and everything else, respectively) into a single invocation of InitializationSequence. One of the paths (for class types) was the only client of Sema::TryInitializationByConstructor, which I have eliminated. This also simplified the interface for much of the cast-checking logic, eliminating yet more code. I've kept the representation of C++ functional casts with <> 1 arguments the same, despite the fact that I hate it. That fix will come soon. To satisfy my paranoia, I've bootstrapped + tested Clang with these changes. llvm-svn: 101549
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* When type-checking a C++ "new" expression, don't type-check the actual Douglas Gregor2009-10-171-0/+15
| | | | | | | initialization if any of the constructor/initialization arguments are type-dependent. Fixes PR5224. llvm-svn: 84365
* Implement proper substitution for OverloadedFunctionDecls, but substituting ↵Douglas Gregor2009-09-011-0/+18
| | | | | | each of the functions in the overload set llvm-svn: 80692
* Fix a crasher involving template instantiation of non-dependentDouglas Gregor2009-09-011-0/+14
| | | | | | | expressions making use of an overloaded operator. Thanks for the test case, Anders! llvm-svn: 80679
* Implement template instantiation for member operator access.Douglas Gregor2009-08-311-0/+16
| | | | llvm-svn: 80609
* Introduce basic support for instantiating the definitions of memberDouglas Gregor2009-05-141-2/+2
| | | | | | | functions of class templates. Only compound statements and expression statements are currently implemented. llvm-svn: 71814
* Introduce a stack of instantiation scopes that are used to store the mapping ↵Douglas Gregor2009-05-141-4/+1
| | | | | | from variable declarations that occur within templates to their instantiated counterparts llvm-svn: 71799
* Link FunctionDecls instantiated from the member functions of a classDouglas Gregor2009-05-141-0/+13
| | | | | | | | template to the FunctionDecls from which they were instantiated. This is a necessary first step to support instantiation of the definitions of such functions, but by itself does essentially nothing. llvm-svn: 71792
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* added type dependent testcaseGabor Greif2009-03-181-2/+19
| | | | llvm-svn: 67230
* cleanup instantiation code, tighten testcaseGabor Greif2009-03-181-1/+5
| | | | llvm-svn: 67148
* instantiate ?: expressionsGabor Greif2009-03-181-0/+34
| | | | llvm-svn: 67145
* Implement template instantiation for the prefix unary operators. AsDouglas Gregor2009-03-131-0/+15
| | | | | | | | always, refactored the existing logic to tease apart the parser action and the semantic analysis shared by the parser and template instantiation. llvm-svn: 66987
* Devious test-case involved overload resolution and ADL during template ↵Douglas Gregor2009-03-131-0/+52
instantiation. llvm-svn: 66951
OpenPOWER on IntegriCloud