summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite
Commit message (Collapse)AuthorAgeFilesLines
* Introduced raw_identifier token kind.Abramo Bagnara2010-12-223-14/+14
| | | | llvm-svn: 122394
* Replace all uses of PathV1::get{Basename,Dirname,Suffix} with their PathV2 ↵Michael J. Spencer2010-12-181-5/+4
| | | | | | equivalents. llvm-svn: 122140
* Added missing IgnoreParens().Abramo Bagnara2010-12-141-1/+2
| | | | llvm-svn: 121795
* Restore r121752 without modification.John McCall2010-12-141-68/+43
| | | | llvm-svn: 121763
* Pull out r121752 in case it's causing the selfhost breakage.John McCall2010-12-141-43/+68
| | | | llvm-svn: 121759
* Factor out most of the extra state in a FunctionProtoType into a separateJohn McCall2010-12-141-68/+43
| | | | | | | class to be passed around. The line between argument and return types and everything else is kindof vague, but I think it's justifiable. llvm-svn: 121752
* Keep the source location of the selector in ObjCMessageExpr.Argyrios Kyrtzidis2010-12-101-4/+8
| | | | llvm-svn: 121516
* Fix rewriter to match recent changes in property refFariborz Jahanian2010-12-041-3/+11
| | | | | | AST. llvm-svn: 120919
* Simplify the ASTs by consolidating ObjCImplicitGetterSetterExpr and ↵John McCall2010-12-021-49/+33
| | | | | | | | ObjCPropertyRefExpr into the latter. llvm-svn: 120643
* Merge System into Support.Michael J. Spencer2010-11-293-3/+3
| | | | llvm-svn: 120297
* Minor whitespace fix, no functionality changeNico Weber2010-11-221-3/+3
| | | | llvm-svn: 119965
* Keep track of errors/warnings in FixItRewriter.Argyrios Kyrtzidis2010-11-181-0/+3
| | | | llvm-svn: 119735
* Refactoring of Diagnostic class.Argyrios Kyrtzidis2010-11-182-2/+3
| | | | | | | | | | | -Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
* Add an assertion, fix a whole bunch of bugs, comment the assertionJohn McCall2010-11-181-2/+2
| | | | | | out because there are still bugs left. llvm-svn: 119722
* Calculate the value kind of an expression when it's created andJohn McCall2010-11-181-60/+92
| | | | | | | | | | | | | store it on the expression node. Also store an "object kind", which distinguishes ordinary "addressed" l-values (like variable references and pointer dereferences) and bitfield, @property, and vector-component l-values. Currently we're not using these for much, but I aim to switch pretty much everything calculating l-valueness over to them. For now they shouldn't necessarily be trusted. llvm-svn: 119685
* Kill CK_Unknown references in the ObjC rewriter. The actualJohn McCall2010-11-151-27/+27
| | | | | | | choice of cast doesn't matter here, but I've tried to choose the right one anyway. llvm-svn: 119140
* Fixes a rewrite bug, rewriting nested property usage Fariborz Jahanian2010-11-081-0/+5
| | | | | | inside blocks. Fixes //rdar: //8608293. llvm-svn: 118425
* Proper rewriting of block envokation with Fariborz Jahanian2010-11-051-1/+13
| | | | | | | 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-3/+7
| | | | | | is a objc qualified class type. // rdar: //8608902 llvm-svn: 118208
* Patch to rewrite objc qualified types which occur inFariborz Jahanian2010-11-031-7/+57
| | | | | | | block pointer type arguments. Partial fix for // rdar: //8608902 llvm-svn: 118205
* Correct typos and whitespace, spotted by Nico Weber!Nick Lewycky2010-10-311-3/+3
| | | | llvm-svn: 117871
* More class anonymization.Benjamin Kramer2010-10-221-0/+2
| | | | llvm-svn: 117106
* Fixes a potential crash in rewriter when sending message Fariborz Jahanian2010-10-201-12/+17
| | | | | | to 'super'. llvm-svn: 116928
* GCC 4.4 warns that Receiver may be used uninitialized in this function.Duncan Sands2010-10-201-1/+1
| | | | | | | | | As far as I can see, gcc is right to think this! The following change will cause a nice segfault rather than undefined behaviour if this case occurs. Someone who understands what this code is supposed to do should probably take a proper look. llvm-svn: 116917
* Do not rewrite new accessor if user has defined accessors.Fariborz Jahanian2010-10-191-52/+57
| | | | | | Fixes //rdar: // 8570020. llvm-svn: 116882
* Silence uninitialized value warning.Ted Kremenek2010-10-191-1/+1
| | | | llvm-svn: 116877
* Fix a rewriting bug of rewriting properties declared inFariborz Jahanian2010-10-161-24/+25
| | | | | | protocols. // rdar: //8558702 llvm-svn: 116652
* Rewrite bug fix rewriting a property assignment whenFariborz Jahanian2010-10-141-0/+6
| | | | | | its RHS is an ivar. Fixes //rdar: //8541517. llvm-svn: 116539
* Eliminate usage of ObjCSuperExpr used forFariborz Jahanian2010-10-141-11/+41
| | | | | | | 'super' as receiver of property or a setter/getter methods. //rdar: //8525788 llvm-svn: 116483
* Some refactoring of property rewriting stuff Fariborz Jahanian2010-10-111-17/+11
| | | | | | in rewriter. No functionality change. llvm-svn: 116254
* This patch does a few things in the area of objective-cFariborz Jahanian2010-10-111-58/+103
| | | | | | | | | | | properties. 1. Generates the AST for lexical info. of accessing getter/setter methods using dot-syntax notation. This fixes //rdar: //8528170. 2. Modifes rewriter to handle the AST putout in 1. 3. Supportes in rewriter ObjCImplicitSetterGetter ASTs. llvm-svn: 116237
* When dealing with an assignment with LHS being a property referenceFariborz Jahanian2010-10-081-0/+9
| | | | | | | | | 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
* Fix a block rewriter bug where copy/dispose entries in Fariborz Jahanian2010-10-051-0/+6
| | | | | | | | 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/+4
| | | | | | Fixes rdra://8475819. llvm-svn: 115201
* Fix rewriting of property declared in @protocol's.Fariborz Jahanian2010-09-241-0/+4
| | | | | | Fixed //rdar://8472487. llvm-svn: 114741
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-9/+3
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-3/+9
| | | | | | of whatever we were using before... llvm-svn: 113631
* Clean up CMake dependenciesDouglas Gregor2010-09-091-1/+1
| | | | llvm-svn: 113489
* Clean up some of the CMake dependenciesDouglas Gregor2010-09-081-1/+3
| | | | llvm-svn: 113416
* zap more dead code.Chris Lattner2010-09-041-3/+3
| | | | llvm-svn: 113076
* "I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignmentChris Lattner2010-09-031-8/+2
| | | | | | | | | should probably be removed if it has no purpose, but I just #if'd it out in case it's usefulIdempotentOperationChecker::isTruncationExtensionAssignment should probably be removed if it has no purpose, but I just #if'd it out in case it's useful llvm-svn: 112949
* AST work to support [C++] [IRgen] for ?: with missing LHSFariborz Jahanian2010-08-311-3/+6
| | | | | | | This is also pr7726 and wip. No change in functionality at this time. llvm-svn: 112612
* Fix CMake dependenciesDouglas Gregor2010-08-301-0/+6
| | | | llvm-svn: 112475
* Fix the memory leak of FloatingLiteral/IntegerLiteral.Argyrios Kyrtzidis2010-08-281-5/+6
| | | | | | | | | | | For large floats/integers, APFloat/APInt will allocate memory from the heap to represent these numbers. Unfortunately, when we use a BumpPtrAllocator to allocate IntegerLiteral/FloatingLiteral nodes the memory associated with the APFloat/APInt values will never get freed. I introduce the class 'APNumericStorage' which uses ASTContext's allocator for memory allocation and is used internally by FloatingLiteral/IntegerLiteral. Fixes rdar://7637185 llvm-svn: 112361
* De-memberify the VarDecl and FunctionDecl StorageClass enums.John McCall2010-08-261-27/+27
| | | | | | This lets us remove Sema.h's dependency on Expr.h and Decl.h. llvm-svn: 112156
* GCC didn't care for my attempt at API compatibility, so brute-force everythingJohn McCall2010-08-251-40/+40
| | | | | | to the new constants. llvm-svn: 112047
* More incremental progress towards not including Expr.h in Sema.h.John McCall2010-08-251-1/+1
| | | | llvm-svn: 112044
* Fix crasher with IgnoringDiagClientDouglas Gregor2010-08-181-2/+1
| | | | llvm-svn: 111447
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-181-1/+4
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* Simplify FixItHint by eliminated the unnecessary InsertionLocDouglas Gregor2010-08-181-12/+0
| | | | | | location. Patch by Eelis van der Weegen! llvm-svn: 111362
OpenPOWER on IntegriCloud