summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-altivec.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Altivec vector literal parser hack for C++11.Eli Friedman2013-08-131-1/+5
| | | | | | | It doesn't make any sense to accept "..." in the argument to a C-style cast, so use a separate expression list parsing routine which rejects it. PR16874. llvm-svn: 188330
* Modify how the -verify flag works. Currently, the verification string andRichard Trieu2011-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | diagnostic message are compared. If either is a substring of the other, then no error is given. This gives rise to an unexpected case: // expect-error{{candidate function has different number of parameters}} will match the following error messages from Clang: candidate function has different number of parameters (expected 1 but has 2) candidate function has different number of parameters It will also match these other error messages: candidate function function has different number of parameters number of parameters This patch will change so that the verification string must be a substring of the diagnostic message before accepting. Also, all the failing tests from this change have been corrected. Some stats from this cleanup: 87 - removed extra spaces around verification strings 70 - wording updates to diagnostics 40 - extra leading or trailing characters (typos, unmatched parens or quotes) 35 - diagnostic level was included (error:, warning:, or note:) 18 - flag name put in the warning (-Wprotocol) llvm-svn: 146619
* comparison of AltiVec vectors now gives bool result (fix for 7533)Anton Yartsev2010-11-181-18/+8
| | | | llvm-svn: 119678
* Add more error checking to attribute vecreturnJohn Thompson2010-09-181-0/+17
| | | | llvm-svn: 114251
* Added vecreturn attribute parsing.John Thompson2010-08-091-0/+35
| | | | llvm-svn: 110609
* Fix vector literal/cast confusion - bug 6895.John Thompson2010-06-301-0/+8
| | | | llvm-svn: 107347
* improve altivec vector bool/pixel support, patch by Anton YartsevChris Lattner2010-06-231-3/+14
| | | | | | with several tweaks by me. llvm-svn: 106619
* reapply john's patch, he broke mainline again by changing the test.Chris Lattner2010-04-201-0/+2
| | | | llvm-svn: 101871
* revert r101863, whcih is causing Sema/altivec-init.c to fail on a tonChris Lattner2010-04-201-2/+0
| | | | | | | | | | of buildbots with: error: 'error' diagnostics expected but not seen: Line 9: too few elements in vector initialization (expected 8 elements, have 2) 1 warning and 1 error generated. llvm-svn: 101864
* Altivec vector literal initializer count mismatch error removed.John Thompson2010-04-201-0/+2
| | | | llvm-svn: 101863
* improve altivec c++ support by adding casts, patch byChris Lattner2010-04-141-1/+0
| | | | | | Anton Yartsev! llvm-svn: 101281
* implement altivec.h and a bunch of support code, patch by Anton Yartsev!Chris Lattner2010-04-141-2/+2
| | | | llvm-svn: 101215
* Improve diagnostics when we fail to convert from a source type to aDouglas Gregor2010-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | destination type for initialization, assignment, parameter-passing, etc. The main issue fixed here is that we used rather confusing wording for diagnostics such as t.c:2:9: warning: initializing 'char const [2]' discards qualifiers, expected 'char *' [-pedantic] char *name = __func__; ^ ~~~~~~~~ We're not initializing a 'char const [2]', we're initializing a 'char *' with an expression of type 'char const [2]'. Similar problems existed for other diagnostics in this area, so I've normalized them all with more precise descriptive text to say what we're initializing/converting/assigning/etc. from and to. The warning for the code above is now: t.c:2:9: warning: initializing 'char *' from an expression of type 'char const [2]' discards qualifiers [-pedantic] char *name = __func__; ^ ~~~~~~~~ Fixes <rdar://problem/7447179>. llvm-svn: 100832
* implement support for -Wno-deprecated, PR6534. WhileChris Lattner2010-03-071-18/+18
| | | | | | | I'm in there, change the altivec diagnostics to use 'double' instead of "double" for consistency. llvm-svn: 97919
* First stage of adding AltiVec supportJohn Thompson2010-02-051-0/+108
llvm-svn: 95335
OpenPOWER on IntegriCloud