summaryrefslogtreecommitdiffstats
path: root/clang/test/Rewriter
Commit message (Collapse)AuthorAgeFilesLines
...
* Test for // rdar://9846759Fariborz Jahanian2011-07-311-0/+32
| | | | llvm-svn: 136602
* Fixup more objc rwriter bug having to do withFariborz Jahanian2011-04-111-3/+8
| | | | | | | rewriting of blocks which have objective-c stuff which need be rewritten as well. // rdar://9254348 llvm-svn: 129300
* Fixes a rewrting bug of a property-dot syntax expression insideFariborz Jahanian2011-04-081-0/+27
| | | | | | a block. First part of // rdar://9254348 llvm-svn: 129171
* Fixes a rewriter bug rewriting call to a byrefFariborz Jahanian2011-04-011-0/+8
| | | | | | block pointer nested inside a block. // rdar:// 9204669 llvm-svn: 128747
* ANother rewrite bug, rewriting a call ofFariborz Jahanian2011-04-011-0/+1
| | | | | | __byref block. // rdar://9204669 llvm-svn: 128726
* Fix couple of rewriter bugs related to rewriting aFariborz Jahanian2011-03-311-0/+8
| | | | | | __block block declaration. //rdar://9204669 llvm-svn: 128682
* Fix objc rewriting bug casting to qualified objective-c pointetr.Fariborz Jahanian2011-02-261-0/+27
| | | | | | // rdar://9056351 llvm-svn: 126536
* Fix a rewriter bug involving call to property'sFariborz Jahanian2011-02-261-0/+15
| | | | | | block. // rdar://9055596 llvm-svn: 126535
* Teach objc-rewriter to pass -fobjc-exceptions along.Fariborz Jahanian2011-02-251-1/+1
| | | | llvm-svn: 126497
* Fix a rewrite bug. // rdar://9039342Fariborz Jahanian2011-02-243-2/+39
| | | | llvm-svn: 126435
* Make clang -cc1 disable Objective-C exceptions by default, and add a ↵Anders Carlsson2011-02-223-3/+3
| | | | | | | | -fobjc-exceptions flag to turn them on. Update all tests accordingly. llvm-svn: 126177
* Warn about code that uses variables and functions with internal linkageJohn McCall2011-02-191-1/+1
| | | | | | | | | | | | | | without defining them. This should be an error, but I'm paranoid about "uses" that end up not actually requiring a definition. I'll revisit later. Also, teach IR generation to not set internal linkage on variable declarations, just for safety's sake. Doing so produces an invalid module if the variable is not ultimately defined. Also, fix several places in the test suite where we were using internal functions without definitions. llvm-svn: 126016
* Block rewriting bug. Don't take address of captured Fariborz Jahanian2011-02-161-0/+35
| | | | | | | byref variables again when passing them to inner blocks. // rdar://9006279 llvm-svn: 125690
* Fix an objective-c rewriter bug rewriting a __block Fariborz Jahanian2011-01-271-0/+17
| | | | | | | variable declaration of a struct declared type. // rdar://8918702 llvm-svn: 124451
* Change the wording of the bad-decl-for-attribute warning and errorJohn McCall2011-01-251-1/+1
| | | | | | to make it clear that we're talking about the declarations and not the types. llvm-svn: 124175
* Fix rewriter to match recent changes in property refFariborz Jahanian2010-12-042-9/+3
| | | | | | AST. llvm-svn: 120919
* Apparently properties.m does not always fail; make it.John McCall2010-12-041-0/+1
| | | | llvm-svn: 120894
* Although we currently have explicit lvalue-to-rvalue conversions, they'reJohn McCall2010-12-042-0/+8
| | | | | | | | | | | | | | | | | | | not actually frequently used, because ImpCastExprToType only creates a node if the types differ. So explicitly create an ICE in the lvalue-to-rvalue conversion code in DefaultFunctionArrayLvalueConversion() as well as several other new places, and consistently deal with the consequences throughout the compiler. In addition, introduce a new cast kind for loading an ObjCProperty l-value, and make sure we emit those nodes whenever an ObjCProperty l-value appears that's not on the LHS of an assignment operator. This breaks a couple of rewriter tests, which I've x-failed until future development occurs on the rewriter. Ted Kremenek kindly contributed the analyzer workarounds in this patch. llvm-svn: 120890
* Fixes a rewrite bug, rewriting nested property usage Fariborz Jahanian2010-11-081-0/+52
| | | | | | inside blocks. Fixes //rdar: //8608293. llvm-svn: 118425
* Proper rewriting of block envokation with Fariborz Jahanian2010-11-051-0/+6
| | | | | | | qualified ObjC pointer types in its argument list. // rdar: //8608902 llvm-svn: 118286
* Fixes a rewriting bug when type in a block argument typeFariborz Jahanian2010-11-031-0/+4
| | | | | | is a objc qualified class type. // rdar: //8608902 llvm-svn: 118208
* Patch to rewrite objc qualified types which occur inFariborz Jahanian2010-11-031-0/+20
| | | | | | | block pointer type arguments. Partial fix for // rdar: //8608902 llvm-svn: 118205
* Do not rewrite new accessor if user has defined accessors.Fariborz Jahanian2010-10-191-0/+30
| | | | | | Fixes //rdar: // 8570020. llvm-svn: 116882
* Fix a rewriting bug of rewriting properties declared inFariborz Jahanian2010-10-161-0/+22
| | | | | | protocols. // rdar: //8558702 llvm-svn: 116652
* Rewrite bug fix rewriting a property assignment whenFariborz Jahanian2010-10-141-0/+18
| | | | | | its RHS is an ivar. Fixes //rdar: //8541517. llvm-svn: 116539
* When dealing with an assignment with LHS being a property referenceFariborz Jahanian2010-10-081-0/+21
| | | | | | | | | expression, the entire assignment tree is rewritten into a property setter messaging. This includes rewriting the RHS. Do not attempt to rewrite RHS again. Never rewrite a rewritten text! Fixes //rdar: //8527018. llvm-svn: 116104
* Start and end location of a property-dot syntax expressionFariborz Jahanian2010-10-071-0/+28
| | | | | | | must match start and end location of the expression as expected by the rewriter client. Fixes // rdar: // 8520727 llvm-svn: 115934
* Fix a block rewriter bug where copy/dispose entries in Fariborz Jahanian2010-10-051-0/+18
| | | | | | | | block descriptor for outer block was missing even though the block was importing objects into its inner blocks. //rdar://84995992 llvm-svn: 115644
* Rewriting array element type of qualified-id.Fariborz Jahanian2010-09-301-0/+9
| | | | | | Fixes rdra://8475819. llvm-svn: 115201
* Fix rewriting of property declared in @protocol's.Fariborz Jahanian2010-09-241-0/+9
| | | | | | Fixed //rdar://8472487. llvm-svn: 114741
* make clang print types as "const int *" instead of "int const*",Chris Lattner2010-09-051-1/+1
| | | | | | | which is should have done from the beginning. As usual, the most fun with this sort of change is updating all the testcases. llvm-svn: 113090
* Initialize block's imported variable(s) in Fariborz Jahanian2010-07-281-0/+19
| | | | | | | block's synthesized constructor initalizer list. Fixes radar 8240371. llvm-svn: 109698
* Fix a rewriter bug which originates in SemaInit involvingFariborz Jahanian2010-07-211-0/+24
| | | | | | | Constructor Initialization which computes Source Location differently now. Fixes radar 8213998. llvm-svn: 109018
* fix PR7280 by making the warning on code like this:Chris Lattner2010-07-112-8/+8
| | | | | | | | | | int test1() { return; } default to an error. llvm-svn: 108108
* Rewriter: Use the appropriate printing context instead of the defaultDaniel Dunbar2010-06-301-0/+6
| | | | | | constructed one -- this is necessary to ensure types get printed correctly. llvm-svn: 107312
* Nasty rewriter bug which turns out to have an easy fix inFariborz Jahanian2010-06-301-0/+30
| | | | | | | rewriting a c-style cast expression in statement printer. Fixes radar 8143056. llvm-svn: 107289
* Patch to rewrite block pointers as arguments toFariborz Jahanian2010-05-251-0/+33
| | | | | | methods. (Radar 7987817). llvm-svn: 104608
* Fix a rewriting bug where a local static objective-cFariborz Jahanian2010-05-241-0/+24
| | | | | | pointer is copied into a block. Fixes radar 7924024. llvm-svn: 104526
* Fix an objective-c rewriter bug when pre-processed file's Fariborz Jahanian2010-05-241-0/+10
| | | | | | | class declaration's @end is not followed by a new-line. (radar 7946975). llvm-svn: 104512
* make the rewriter add a #ifndef around the #define of __attribute__.Chris Lattner2010-04-131-1/+1
| | | | | | | Without it, there is no reason for a compiler that supports it to emit the dead static globals that the rewriter labels attribute(used). llvm-svn: 101149
* Instead of counting totally diagnostics, split the count into a countChris Lattner2010-04-072-4/+4
| | | | | | | | | | | | | | | of errors and warnings. This allows us to emit something like this: 2 warnings and 1 error generated. instead of: 3 diagnostics generated. This also stops counting 'notes' because they are just follow-on information about the previous diag, not a diagnostic in themselves. llvm-svn: 100675
* Add tentative support for accessing local variables withFariborz Jahanian2010-03-111-0/+23
| | | | | | | external linkage (static, extern, etc.) in blocks in rewriter. wip. llvm-svn: 98265
* Change the 'super' messaging API in the rewriter.Fariborz Jahanian2010-03-101-0/+20
| | | | | | Fixes radar 7738452. llvm-svn: 98190
* Make rewritten source compiled with clang++.Fariborz Jahanian2010-03-041-11/+2
| | | | llvm-svn: 97762
* Make rewritten source compiled with clang++ for correctness.Fariborz Jahanian2010-03-041-4/+2
| | | | llvm-svn: 97761
* Change test to compile rewritten test with clang++.Fariborz Jahanian2010-03-041-1/+2
| | | | llvm-svn: 97756
* Fixes a bug whereby static const block var has static Fariborz Jahanian2010-03-041-0/+11
| | | | | | moved incorrectly. (radar 7714443). llvm-svn: 97734
* More rewriter of nested blocks fun stuff.Fariborz Jahanian2010-03-011-0/+47
| | | | | | Radar 7696893. llvm-svn: 97520
* Prevent rewriter crash when variable type is missing.Fariborz Jahanian2010-02-261-0/+3
| | | | | | Fixes radar 7692183. llvm-svn: 97281
* Fix rewriting of byref variables in nested blocks.Fariborz Jahanian2010-02-261-0/+23
| | | | | | Fixes radar 7692350. llvm-svn: 97254
OpenPOWER on IntegriCloud