summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Pull code from last commit. will put back soon.Steve Naroff2008-09-021-1/+2
| | | | llvm-svn: 55637
* Implement block pseudo-storage class modifiers (__block, __byref).Steve Naroff2008-09-021-0/+18
| | | | llvm-svn: 55635
* add the other test case for completeness and to avoid regressions in the futureNuno Lopes2008-09-021-1/+2
| | | | llvm-svn: 55629
* Fix for PR2747: allow pointer->int casts with a null base; these are Eli Friedman2008-09-021-0/+8
| | | | | | offset-of-like expressions. llvm-svn: 55627
* Fix for PR2750; don't check for an 'e' in the trash after the token.Eli Friedman2008-09-021-0/+13
| | | | | | | | Note that this isn't really a complete fix; I think there are other potential overrun situations. I don't really know what the best systematic fix is, though. llvm-svn: 55622
* An extremely hacky version of transparent_union support; it isn't Eli Friedman2008-09-021-0/+14
| | | | | | | | | anywhere near correct in terms of missing cases and missing diagnostics, but it's good enough to handle the uses in the Linux system headers, which are currently a constant pain for compiling applications on Linux. llvm-svn: 55621
* Make sure to take the unqualified versions of the canonical types for Eli Friedman2008-09-021-0/+6
| | | | | | | type-checking pointer subtraction; if the canonical types aren't used, the qualifiers won't always get stripped off correctly. llvm-svn: 55620
* readd test as it passes correctly. nice, but weirdNuno Lopes2008-09-011-0/+14
| | | | llvm-svn: 55615
* Backing out r55607 due to logic errors and test regression.Eli Friedman2008-09-011-14/+0
| | | | | | I'll try to come up with a correct fix for the testcase sometime soon. llvm-svn: 55614
* Tidy up sema processing of attribute "nonull":Ted Kremenek2008-09-012-4/+5
| | | | | | | | - warn about nonnull being applied to functions with no pointer arguments - continue processing argument list in the attribute when we encounter a non-pointer parameter being marked as nonnull - when no argument list is specified, only mark pointers as nonnull. This fixes PR 2732 and radar 6188814. llvm-svn: 55610
* fix one more this-is-not-a-constant error. test includedNuno Lopes2008-09-011-0/+3
| | | | llvm-svn: 55609
* make CheckArithmeticConstantExpression() aware of &foo and pointersNuno Lopes2008-09-011-0/+13
| | | | llvm-svn: 55607
* Temporarily disable some tests which due to dot-syntaxDaniel Dunbar2008-08-302-2/+2
| | | | | | access of methods. llvm-svn: 55569
* Allow 'make TESTDIRS=Sema' in test/ directory for only running aDaniel Dunbar2008-08-281-2/+2
| | | | | | subset of tests. llvm-svn: 55513
* Add parser/action support for block literal expressions.Steve Naroff2008-08-281-2/+10
| | | | | | Parser support for blocks is almost complete...just need to add support for the __block() storage class qualifier. llvm-svn: 55495
* Fix isIntegerConstantExpr eval of __builtin_offsetof to return resultDaniel Dunbar2008-08-282-0/+12
| | | | | | | | | with correct width. - PR2728. Also, fix PR2727 test case. llvm-svn: 55493
* Fix double-free error with sizeof applied to VLA types.Daniel Dunbar2008-08-281-0/+5
| | | | | | | | - PR2727. Also, fix warning in CodeGenTypes for new BlockPointer type. llvm-svn: 55479
* First wave of changes to support "blocks" (an extension to C).Steve Naroff2008-08-271-0/+18
| | | | | | This commit adds the declaration syntax (and associated type). llvm-svn: 55417
* Update test case (we were missing a warning here)Daniel Dunbar2008-08-271-1/+1
| | | | llvm-svn: 55408
* Add ObjCPropertyDecl::isReadOnly.Daniel Dunbar2008-08-261-0/+3
| | | | | | Respect isReadOnly when generating synthesized method decls. llvm-svn: 55364
* In incompatible pointer-typed ?: expressions, add implicit conversionDaniel Dunbar2008-08-262-0/+20
| | | | | | | | | | | | | | | | | | | | of RHSs to id type instead of void* if either has Objective-C object type. - This ensures the result can still be used in normal places an object can be used, like a message send. Add implicit conversions for ?: applied to qualified id types to ensure that the RHSs are compatible. - This prevents a codegen crash (creating invalid PHI nodes). - Again, this relates to the fact that qualified id types have no canonical types. - Note that the implicit type casted to is incorrect, however this doesn't currently cause problems because of the flexibility of the id type. Test cases for above. llvm-svn: 55346
* Do typechecking and codegen for K&R-style function declarations Eli Friedman2008-08-251-0/+5
| | | | | | | correctly. Not a regression, but made more obvious by my recent fix which made function type compatibility checking a bit more strict. llvm-svn: 55339
* Fix for PR2720; be a little bit more permissive in initializers for Eli Friedman2008-08-251-0/+3
| | | | | | | | | | casting pointers to integers. Eventually, we should check whether we can evaluate an expression using Expr::tryEvaluate, and this codepath should be tightened to only handle standard-compliant cases. llvm-svn: 55331
* Add test case for function-pointer-cast-of-global as constantDaniel Dunbar2008-08-251-0/+4
| | | | | | expression. llvm-svn: 55323
* Objective-C foreach selector elements must be lvalues.Anders Carlsson2008-08-251-0/+10
| | | | llvm-svn: 55316
* Fix silly bug in objc_gc attribute parsing and add test caseAnders Carlsson2008-08-241-0/+8
| | | | llvm-svn: 55286
* Add carbon.cpp and cocoa.mm testsAnders Carlsson2008-08-232-0/+10
| | | | llvm-svn: 55262
* treat bool literals as constatnt expressions.Anders Carlsson2008-08-231-0/+7
| | | | llvm-svn: 55255
* Handle Objective-C++ tests.Anders Carlsson2008-08-231-1/+1
| | | | llvm-svn: 55254
* Reserved C++ words are valid selectors in Objective-C++Anders Carlsson2008-08-231-0/+35
| | | | llvm-svn: 55253
* Add CodeGen support for CXXZeroInitValueExpr.Argyrios Kyrtzidis2008-08-231-0/+11
| | | | llvm-svn: 55249
* Add a null pointer test in the type-convert-construct.cpp tests.Argyrios Kyrtzidis2008-08-231-0/+3
| | | | llvm-svn: 55247
* Fix a FIXME by not creating an invalid AST on erroneous input. Also Chris Lattner2008-08-231-1/+12
| | | | | | | make diagnostic output in some other malformed cases significantly more useful. This fixes PR2708 llvm-svn: 55215
* Move the rest of the Sema C++ tests into the SemaCXX test directory.Argyrios Kyrtzidis2008-08-225-77/+77
| | | | llvm-svn: 55178
* Add support for C++'s "type-specifier ( expression-list )" expression:Argyrios Kyrtzidis2008-08-221-0/+10
| | | | | | | | | | -The Parser calls a new "ActOnCXXTypeConstructExpr" action. -Sema, depending on the type and expressions number: -If the type is a class, it will treat it as a class constructor. [TODO] -If there's only one expression (i.e. "int(0.5)" ), creates a new "CXXFunctionalCastExpr" Expr node -If there are no expressions (i.e "int()" ), creates a new "CXXZeroInitValueExpr" Expr node. llvm-svn: 55177
* make test fails if llvm is checked out to llvm-svn of if there is a dash ↵Nico Weber2008-08-221-1/+1
| | | | | | somewhere else in the path. fix that. llvm-svn: 55175
* Initial sema support for C++ static initializers.Anders Carlsson2008-08-221-0/+12
| | | | llvm-svn: 55166
* add a simple check to warn people who type "=+" when they probably meantChris Lattner2008-08-211-0/+9
| | | | | | "+=". llvm-svn: 55131
* Use full path to count script, and don't treat files with missing RUNDaniel Dunbar2008-08-211-1/+1
| | | | | | lines as errors. llvm-svn: 55109
* Missed a test case writing a .ll file.Daniel Dunbar2008-08-212-2/+2
| | | | | | | Suppress count output from 'make test' on errors (used to generate result code). llvm-svn: 55107
* Reorder the PATH used during testing so $(ToolDir) and the LLVMDaniel Dunbar2008-08-211-1/+1
| | | | | | | | | scripts dir appear before the user path. - This is an attempt to pick up the right executables. We should probably be substituting the exact things we want for clang a la the LLVM test script. llvm-svn: 55105
* Update a number of CodeGen tests to not create .ll files in the testDaniel Dunbar2008-08-2133-34/+34
| | | | | | | | directory. - Removed .ll from the svn:ignore lists to try and prevent this. - Added svn:ignore on test/Misc/Output llvm-svn: 55104
* Update test/Makefile to allow testing when using a separate objDaniel Dunbar2008-08-211-3/+4
| | | | | | | directory. - Also, return proper error code if testing fails. llvm-svn: 55103
* Fix a regression from my fix to PR2631. Fixes PR2692.Eli Friedman2008-08-201-0/+10
| | | | llvm-svn: 55083
* Fix a minor crash-on-invalid.Eli Friedman2008-08-201-0/+9
| | | | llvm-svn: 55082
* Fix subtle bug introduced in r54852.Daniel Dunbar2008-08-201-0/+10
| | | | | | | | | - UsualUnaryConversions takes an Expr *& and may modify its argument, this broke when it was refactored into Sema::CheckCastTypes. This meant that we were missing implicit casts in some places. - Seems pretty sad that this got through our tests. llvm-svn: 55039
* Fix test failure on Linux.Eli Friedman2008-08-201-0/+3
| | | | llvm-svn: 55032
* Fix some spam from make I accidentally introduced.Eli Friedman2008-08-201-1/+1
| | | | llvm-svn: 55027
* Get rid of the bogus -depth +0 argument; I really have no clue what the Eli Friedman2008-08-201-1/+1
| | | | | | | | | | heck it does on Darwin, but it's not part of POSIX, and the GNU version of find errors out on it. On a side note, there are a couple of new failures due to tests including OS X specific headers. llvm-svn: 55019
* Fix crasher in RewriteObjC::RewriteObjCSynchronizedStmt(). Can't depend on ↵Steve Naroff2008-08-191-0/+4
| | | | | | | | the source locations of the sync expression (since it may have been rewritten. Fixes <rdar://problem/6156363> clang ObjC rewriter: rewriting attached file causes assertion failure: invalid FileID llvm-svn: 54986
OpenPOWER on IntegriCloud