summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-expr-1.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace inline asm constraint "=a" by the more general constraint "=r".Simon Atanasyan2012-05-221-1/+1
| | | | | | That extend a range of platforms support this test case. llvm-svn: 157247
* Pedantic diagnostic correction: in C++, we have integral constant expressions,Richard Smith2012-01-151-1/+1
| | | | | | | | not integer constant expressions. In passing, fix the 'folding is an extension' diagnostic to not claim we're accepting the code, since that's not true in -pedantic-errors mode, and add this diagnostic to -Wgnu. llvm-svn: 148209
* When transforming the arguments for a C++ "new" expression, make sureDouglas Gregor2011-10-181-1/+8
| | | | | | | to drop the implicitly-generated value initialization expression used for initializing scalars. Fixes <rdar://problem/10283928>. llvm-svn: 142330
* PR10864: make sure we correctly delay type-checking for inline asm tied ↵Eli Friedman2011-09-141-0/+13
| | | | | | operands with dependent type. Patch by Likai Liu. llvm-svn: 139716
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-101-7/+7
| | | | | | | | | | therefore not creating ElaboratedTypes, which are still pretty-printed with the written tag). Most of these testcase changes were done by script, so don't feel too sorry for my fingers. llvm-svn: 98149
* Make sure to mark constructors, operator new, and operator delete asDouglas Gregor2010-02-261-0/+17
| | | | | | | | | used when we instantiate C++ new expressions, delete expressions, and object-construction expressions. Fixes PR6424, although we can't test all of it until we finish implementing lookup of "operator delete" for new expressions (!). llvm-svn: 97195
* When we decide to re-use an existing CXXConstructExpr node, make sureDouglas Gregor2010-02-261-0/+16
| | | | | | | | to mark the constructor as referenced. Fixes the narrow issue reported in PR6424, but there are a few other places that I'll fix before closing out that PR. llvm-svn: 97185
* When adding ADL candidates for overloadedDouglas Gregor2010-02-051-0/+12
| | | | | | | post-increment/post-decrement operators, be sure to consider both arguments. Fixes PR6237. llvm-svn: 95361
* Land test case.Anders Carlsson2010-01-241-0/+13
| | | | llvm-svn: 94362
* use DiagRuntimeBehavior to silence the div/rem by zero warning whenChris Lattner2010-01-121-2/+1
| | | | | | not in an evaluated context. This removes some bogus warnings. llvm-svn: 93258
* implement PR6004, warning about divide and remainder by zero.Chris Lattner2010-01-121-1/+2
| | | | llvm-svn: 93256
* 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
* Fix template instantiation for non-dependent calls to overloaded callDouglas Gregor2009-12-131-0/+18
| | | | | | operators. Fixes PR5266. llvm-svn: 91252
* When instantiating a UnaryOperator, allow the resulting expression toDouglas Gregor2009-11-051-1/+26
| | | | | | | | | | | | | still be dependent or invoke an overloaded operator. Previously, we only supported builtin operators. BinaryOperator/CompoundAssignOperator didn't have this issue because we always built a CXXOperatorCallExpr node, even when name lookup didn't find any functions to save until instantiation time. Now, that code builds a BinaryOperator or CompoundAssignOperator rather than a CXXOperatorCallExpr, to save some space. llvm-svn: 86087
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Implement template instantiation for the prefix unary operators. AsDouglas Gregor2009-03-131-0/+16
| | | | | | | | 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
* Implement template instantiation for several more kinds of expressions:Douglas Gregor2009-03-131-0/+10
| | | | | | | | | | | | - C++ function casts, e.g., T(foo) - sizeof(), alignof() More importantly, this allows us to verify that we're performing overload resolution during template instantiation, with argument-dependent lookup and the "cached" results of name lookup from the template definition. llvm-svn: 66947
* Implement template instantiation for builtin binary operatorsDouglas Gregor2009-03-121-0/+33
| | | | llvm-svn: 66835
* Straw man for instantiation of expressions. Use it to instantiate theDouglas Gregor2009-03-121-0/+12
width of bitfields. I'll be burning this down and replacing it with a properly-dispatched implementation like the one used for types. llvm-svn: 66796
OpenPOWER on IntegriCloud