summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/vector.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Lit Test] Updated 34 Lit tests to be C++11 compatible.Charles Li2015-11-171-1/+7
| | | | | | | Added expected diagnostics new to C++11. Expanded RUN line to: default, C++98/03 and C++11. llvm-svn: 253371
* Print detailed vector type information on diagnostics.Benjamin Kramer2014-04-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | We never aka vector types because our attributed syntax for it is less comprehensible than the typedefs. This leaves the user in the dark when the typedef isn't named that well. Example: v2s v; v4f w; w = v; The naming in this cases isn't even that bad, but the error we give is useless without looking up the actual typedefs. t.c:6:5: error: assigning to 'v4f' from incompatible type 'v2s' Now: t.c:6:5: error: assigning to 'v4f' (vector of 4 'float' values) from incompatible type 'v2s' (vector of 2 'int' values) We do this for all diagnostics that print a vector type. llvm-svn: 207267
* vector_size cannot be applied to Booleans. Updated the semantic checking ↵Aaron Ballman2013-09-131-6/+9
| | | | | | logic, as well as the comment and added a test case. Fixes PR12649 llvm-svn: 190721
* Fix Expr::Classify to correctly classify ExtVectorElementExprs. PR16204.Eli Friedman2013-06-171-0/+4
| | | | llvm-svn: 184123
* Allow vector types in pseudo-destructor expressions. Fixes PR13798.Douglas Gregor2012-09-101-0/+11
| | | | llvm-svn: 163514
* Add (hopefully) the last missing lvalue-to-rvalue conversion. Add an assertionRichard Smith2011-10-281-0/+49
| | | | | | to catch some future implicit lvalue-to-rvalue casts of inappropriate kinds. llvm-svn: 143182
* Fix Sema::CheckVectorOperands so that it doesn't try to insert a cast ↵Eli Friedman2011-06-231-4/+4
| | | | | | | | expression into the LHS of a compound assignment. Fixes compound assignment of various "compatible" vector types, including NEON-vector and gcc-vector types. <rdar://problem/9640356> llvm-svn: 133737
* With lax vector conversions (the default) make sure we convert between twoEric Christopher2010-08-261-6/+8
| | | | | | | | | vectors that are the same size. Fix up testcases accordingly and add a new one to make sure we still error if lax vector conversions are disabled. Fixes rdar://8328190 llvm-svn: 112122
* Don't allow vector conversions to sneak in under the guise ofDouglas Gregor2010-06-221-0/+30
| | | | | | | | floating-point conversions or floating-integral conversions. We really, really, really need to make isFloatingType() and friends not apply to vector types. llvm-svn: 106551
* Implement C++ builtin operator candidates for vector types.Douglas Gregor2010-05-191-4/+70
| | | | llvm-svn: 104105
* Basic test for user-defined conversions involving vector typesDouglas Gregor2010-05-181-3/+23
| | | | llvm-svn: 104085
* Implement C++ support for vector and extended vector types. ThisDouglas Gregor2010-05-181-0/+102
involves extending implicit conversion sequences to model vector conversions and vector splats, along with teaching the C++ conditional operator-checking code about vector types. Fixes <rdar://problem/7983501>. llvm-svn: 104081
OpenPOWER on IntegriCloud