summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/conditional-expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch initialization of parameters in a call over toDouglas Gregor2009-12-221-6/+5
| | | | | | | | | | | InitializationSequence (when a FunctionDecl is present). This required a few small fixes to initialization sequences: - Make sure to use the adjusted parameter type for initialization of function parameters. - Implement transparent union calling semantics in C llvm-svn: 91902
* 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
* Turn off -Wsign-compare warnings by defaultDouglas Gregor2009-11-061-1/+1
| | | | llvm-svn: 86233
* Implement the conditional-operator part of -Wsign-compare. TurnJohn McCall2009-11-051-2/+20
| | | | | | | | | | | | DiagnoseSignCompare into Sema::CheckSignCompare and call it from more places. Add some enumerator tests. These seem to expose some oddities in the types we're converting C++ enumerators to; in particular, they're converting to unsigned before int, which seems to contradict 4.5 [conv.prom] p2. Note to self: stop baiting Doug in my commit messages. llvm-svn: 86128
* Diagnose taking the address of a bit-field inside a conditional operator.Anders Carlsson2009-09-141-1/+3
| | | | llvm-svn: 81808
* Implement support for equality comparisons (!=, ==) of memberDouglas Gregor2009-08-241-1/+1
| | | | | | | | | | pointers, by extending the "composite pointer type" logic to include member pointer types. Introduce test cases for member pointer comparisons, including those that involve the builtin operator candidates implemented earlier. llvm-svn: 79925
* Disable access control by default. It can be enabled with the ↵Anders Carlsson2009-05-131-1/+1
| | | | | | -faccess-control option. When we have better support for it, we can enable it by default again. llvm-svn: 71706
* Make reference class unification in conditional expressions check for ↵Sebastian Redl2009-04-261-5/+5
| | | | | | validity of the conversion. llvm-svn: 70121
* Conditional operator C++ checking complete. What issues remain are in more ↵Sebastian Redl2009-04-191-4/+10
| | | | | | general code. llvm-svn: 69555
* Bring member pointer operands of the conditional operator to a common type. ↵Sebastian Redl2009-04-191-5/+17
| | | | | | We're getting there ... llvm-svn: 69548
* Another piece of the conditional operator puzzle. We'll want to use ↵Sebastian Redl2009-04-191-5/+5
| | | | | | FindCompositePointerType in some other places, too. llvm-svn: 69534
* Implement lvalue test for conditional expressions.Sebastian Redl2009-04-171-13/+32
| | | | | | Add a few commented lines to the test case that point out things that don't work yet. llvm-svn: 69354
* Fix a crash bug when comparing overload quality of conversion operators with ↵Sebastian Redl2009-04-161-0/+144
conversion constructors. Remove an atrocious amount of trailing whitespace in the overloaded operator mangler. Sorry, couldn't help myself. Change the DeclType parameter of Sema::CheckReferenceInit to be passed by value instead of reference. It wasn't changed anywhere. Let the parser handle C++'s irregular grammar around assignment-expression and conditional-expression. And finally, the reason for all this stuff: implement C++ semantics for the conditional operator. The implementation is complete except for determining lvalueness. llvm-svn: 69299
OpenPOWER on IntegriCloud