summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite
Commit message (Collapse)AuthorAgeFilesLines
...
* modern objective-c translator: write the root class meta-data.Fariborz Jahanian2012-02-161-2/+74
| | | | llvm-svn: 150726
* modern objc translator: meta-data generation for firstFariborz Jahanian2012-02-161-22/+68
| | | | | | part of class meta-data. llvm-svn: 150714
* objective-c translator: fixes an obscure rewriting bugFariborz Jahanian2012-02-151-14/+14
| | | | | | which attempted to rewrite the same meta-data twice. llvm-svn: 150618
* modern objective-c translator: start writing the main classFariborz Jahanian2012-02-151-7/+133
| | | | | | meta-data. llvm-svn: 150548
* more objective-c translator for modern abi.Fariborz Jahanian2012-02-141-1/+19
| | | | | | | metadata for protocol definitions used on class qualifiers. llvm-svn: 150498
* more modern objc translator. Focusing on metadata for methods.Fariborz Jahanian2012-02-141-17/+61
| | | | llvm-svn: 150490
* modern objc translator. More ivar rewrite work.Fariborz Jahanian2012-02-131-14/+17
| | | | llvm-svn: 150415
* objc modern translator. ivar offset symbols.Fariborz Jahanian2012-02-131-2/+40
| | | | llvm-svn: 150413
* objective-c translator: more rewriting of ivar typesFariborz Jahanian2012-02-131-8/+29
| | | | | | into a c-type which closely matches the objective-c type. llvm-svn: 150406
* more of rewriting ivar types.Fariborz Jahanian2012-02-121-2/+6
| | | | llvm-svn: 150353
* Fix the rewriter that broke with r149987.Argyrios Kyrtzidis2012-02-122-0/+6
| | | | | | | | | | | | | r149987 changed the way parsing happens inside an @implementation; it aggregates the declarations inside and reports them together as a DeclGroup. This had the side effect that function declarations were reported together with their definition, while the rewriter expected for function declarations to be reported immediately to the consumer and thus not have a body. Fix this by having the rewriter actually check with isThisDeclarationADefinition() to make sure the body comes from the current decl before rewriting it. llvm-svn: 150325
* objective-c translator. more modern abi stuff, focusing on ivar relatedFariborz Jahanian2012-02-111-246/+33
| | | | | | meta-data. llvm-svn: 150310
* objc translator: more modern metadata stuff.Fariborz Jahanian2012-02-101-105/+33
| | | | llvm-svn: 150281
* objctive-c translator: modern metadata for ivars. wip.Fariborz Jahanian2012-02-101-28/+78
| | | | llvm-svn: 150275
* objc translator: mode modern abi stuff.Fariborz Jahanian2012-02-101-0/+96
| | | | llvm-svn: 150212
* last piece of metadata to complete modern metadata forFariborz Jahanian2012-02-081-3/+47
| | | | | | protocol definitions. llvm-svn: 150106
* More rewriting of objective-c moderin abi metadata.Fariborz Jahanian2012-02-081-17/+60
| | | | | | All protocol related metadata is close to completion. llvm-svn: 150084
* modern objc rewriter: mode metadata stuff. wip.Fariborz Jahanian2012-02-081-127/+40
| | | | llvm-svn: 150030
* modern objc abi rewriter: mode protocol metadataFariborz Jahanian2012-02-071-10/+59
| | | | | | for modern objc abi. llvm-svn: 150011
* Revert my patches which removed Diagnostic.h includes by moving some ↵Benjamin Kramer2012-02-071-1/+0
| | | | | | | | | | | | | | | | | | operator overloads out of line. This seems to negatively affect compile time onsome ObjC tests (which use a lot of partial diagnostics I assume). I have to come up with a way to keep them inline without including Diagnostic.h everywhere. Now adding a new diagnostic requires a full rebuild of e.g. the static analyzer which doesn't even use those diagnostics. This reverts commit 6496bd10dc3a6d5e3266348f08b6e35f8184bc99. This reverts commit 7af19b817ba964ac560b50c1ed6183235f699789. This reverts commit fdd15602a42bbe26185978ef1e17019f6d969aa7. This reverts commit 00bd44d5677783527d7517c1ffe45e4d75a0f56f. This reverts commit ef9b60ffed980864a8db26ad30344be429e58ff5. llvm-svn: 150006
* objc rewriter: modern metadata for protocol decls. wip.Fariborz Jahanian2012-02-071-8/+88
| | | | llvm-svn: 150002
* objc rewriter: start supporting modern objective-c abiFariborz Jahanian2012-02-074-7/+6110
| | | | | | in objective-c rewriter. wip. llvm-svn: 149989
* Basic: import SmallString<> into clang namespaceDylan Noblesmith2012-02-053-5/+5
| | | | | | | (I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) llvm-svn: 149799
* Basic: import OwningPtr<> into clang namespaceDylan Noblesmith2012-02-052-3/+3
| | | | llvm-svn: 149798
* Move a method from IdentifierTable.h out of line and remove the SmallString ↵Benjamin Kramer2012-02-041-0/+1
| | | | | | | | include. Fix all the transitive include users. llvm-svn: 149783
* Remove Diagnostic.h include from Preprocessor.h.Benjamin Kramer2012-02-041-0/+1
| | | | | | | - Move the offending methods out of line and fix transitive includers. - This required changing an enum in the PPCallback API into an unsigned. llvm-svn: 149782
* In FixItRecompile::BeginInvocation() reset the diagnostics before executingArgyrios Kyrtzidis2012-01-271-0/+1
| | | | | | the original action. llvm-svn: 149120
* In FixItRecompile::BeginInvocation(), check the return value of ↵Argyrios Kyrtzidis2012-01-271-18/+20
| | | | | | BeginSourceFile(). llvm-svn: 149107
* Remove the headers now that ::close() is not used.Argyrios Kyrtzidis2012-01-261-7/+0
| | | | llvm-svn: 149044
* In FixItRewriteToTemp::RewriteFilename don't try to close the file descriptorArgyrios Kyrtzidis2012-01-262-12/+19
| | | | | | | | with close(); return it instead. Fixes mingw build and eliminates possible racing issues. llvm-svn: 149043
* Rewrite/FrontendActions.cpp: Tweak to unbreak msvc.NAKAMURA Takumi2012-01-261-0/+6
| | | | llvm-svn: 149041
* Add missing include of <unistd.h>Douglas Gregor2012-01-261-0/+2
| | | | llvm-svn: 149035
* Introduce 3 new fixit options:Argyrios Kyrtzidis2012-01-262-6/+81
| | | | | | | | | | | | | | -fixit-recompile applies fixits and recompiles the result -fixit-to-temporary applies fixits to temporary files -fix-only-warnings">, applies fixits for warnings only, not errors Combining "-fixit-recompile -fixit-to-temporary" allows testing the result of fixits without touching the original sources. llvm-svn: 149027
* Per PR 11814, use Monospace instead of Andale Mono.Ted Kremenek2012-01-201-1/+1
| | | | llvm-svn: 148567
* Remove unreachable code in Clang. (replace with llvm_unreachable where ↵David Blaikie2012-01-171-1/+0
| | | | | | appropriate or when GCC requires it) llvm-svn: 148292
* Add IsImplicit field in ObjCMessageExpr that is true when the messageArgyrios Kyrtzidis2012-01-121-6/+12
| | | | | | | | | | was constructed, e.g. for a property access. This allows the selector identifier locations machinery for ObjCMessageExpr to function correctly, in that there are not real locations to handle/report for such a message. llvm-svn: 148013
* Fix uninitialized variable warning.Chad Rosier2012-01-061-2/+2
| | | | llvm-svn: 147678
* Fix canonicalization of protocol-qualified typesDouglas Gregor2012-01-021-1/+5
| | | | llvm-svn: 147421
* Eliminate ObjCForwardProtocolDecl, which is redundant now thatDouglas Gregor2012-01-011-7/+42
| | | | | | ObjCProtocolDecl modules forward declarations properly. llvm-svn: 147415
* Move the data that corresponds to the definition of a protocol into aDouglas Gregor2012-01-011-1/+1
| | | | | | | | | separately-allocated DefinitionData structure. Introduce various functions that will help with the separation of declarations from definitions (isThisDeclarationADefinition(), hasDefinition(), getDefinition()). llvm-svn: 147408
* Use declaresSameEntity() when comparing ObjCProtocolDecls, andDouglas Gregor2012-01-011-3/+3
| | | | | | | getCanonicalDecl() when putting ObjCProtocolDecls into a set. This is groundwork for making ObjCProtocolDecl redeclarable. llvm-svn: 147406
* Eliminate ObjCClassDecl, which is redundant now that ObjCInterfaceDeclDouglas Gregor2011-12-271-35/+28
| | | | | | | covers both declarations (@class) and definitions (@interface) of an Objective-C class. llvm-svn: 147299
* objc, objc rewriter. Fixes couple of bugs oneFariborz Jahanian2011-12-211-2/+2
| | | | | | | because of recent refactoring and one in the rewriter. llvm-svn: 147070
* Move ObjCInterfaceDecl's "EndLoc" into DefinitionData, since it onlyDouglas Gregor2011-12-151-1/+1
| | | | | | | | applies to an actual definition. Plus, clarify the purpose of this field and give the accessor a different name, since getLocEnd() is supposed to be the same as getSourceRange().getEnd(). llvm-svn: 146694
* Keep track of all declarations of an Objective-C class (both forwardDouglas Gregor2011-12-151-6/+16
| | | | | | | | | | declarations and definitions) as ObjCInterfaceDecls within the same redeclaration chain. This new representation matches what we do for C/C++ variables/functions/classes/templates/etc., and makes it possible to answer the query "where are all of the declarations of this class?" llvm-svn: 146679
* Replace all comparisons between ObjCInterfaceDecl pointers with callsDouglas Gregor2011-12-151-1/+1
| | | | | | | | to declaresSameEntity(), as a baby step toward tracking forward declarations of Objective-C classes precisely. Part of <rdar://problem/10583531>. llvm-svn: 146618
* More refactoring of objective-C rewriter.Fariborz Jahanian2011-12-081-991/+1036
| | | | llvm-svn: 146160
* More refactoring of objc rewriter.Fariborz Jahanian2011-12-051-87/+107
| | | | llvm-svn: 145867
* More objc rewriter refactoring.Fariborz Jahanian2011-12-051-48/+40
| | | | llvm-svn: 145841
* Some early refactoring of objective-c rewriter.Fariborz Jahanian2011-12-051-76/+79
| | | | llvm-svn: 145824
OpenPOWER on IntegriCloud