Граф коммитов

1041 Коммитов

Автор SHA1 Сообщение Дата
Kevin 8e8f64e99d future notes & minor changes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42708 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 21:28:47 +00:00
Chris Lattner 7e620729fc simplify the interface to create ObjcClassDecl's.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42706 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 20:08:36 +00:00
Chris Lattner b97de3eddf simplify the interface for creating ObjcForwardProtocolDecl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42705 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 20:05:59 +00:00
Chris Lattner 2204ec1663 add a missing ;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42704 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 19:08:22 +00:00
Chris Lattner 9fa5e65d08 stub out some printing of objc decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42703 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 18:52:10 +00:00
Chris Lattner d15fa82aeb speed up clang startup another 28% by avoiding std::vector<std::string>
for holding builtin target-specific macros.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42689 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 06:57:34 +00:00
Chris Lattner eab7792031 speed up clang startup time by about 23% by avoiding lots of
stringmap operations when there are no secondary targets.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42688 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 06:29:41 +00:00
Chris Lattner bafc68f6cf fix grammaro
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42685 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:48:57 +00:00
Chris Lattner a08ee28346 edits
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42684 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:42:47 +00:00
Chris Lattner 89ac4d0959 fix accidental commit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42683 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:38:32 +00:00
Chris Lattner 96e778bac4 edits
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42682 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:30:19 +00:00
Chris Lattner 7a27439393 various minor edits, e.g. & -> &amp;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42681 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:23:00 +00:00
Kevin d68c8f4c00 New directory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42680 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:15:30 +00:00
Chris Lattner 36f0935143 add a warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42679 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:13:47 +00:00
Chris Lattner f8cc40d433 minor edits
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42678 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 05:09:04 +00:00
Bill Wendling 30d177599e Fix spacing issues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42676 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 01:56:01 +00:00
Bill Wendling 9f94f9ba34 Just say "No" to non-ASCII things.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42675 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 01:53:09 +00:00
Bill Wendling 3c80a5195e Remove non-ASCII '
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42674 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 01:44:57 +00:00
Kevin aef89fc653 1. May fix encoding issues: server uses UTF; HTML file assumes Western (ISO 8859-1).
2. Added strict doctype.

Closing out tags like <br/> and <meta.../> may still be a problem (necessary for XHTML, but wrong for HTML)....

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42673 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-06 01:28:23 +00:00
Ted Kremenek d2d5fabf31 Modifications to XCode project:
- Added include/Analysis/ExprDeclBitVector.h
- Added include/Analysis/ProgramEdge.h
- Removed include/Analysis/Visitors/DataflowStmtVisitor.h



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42663 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 23:32:54 +00:00
Ted Kremenek 48569ed922 Removed DataflowStmtVisitor. It is no longer used, and is obsoleted
by newer visitor interfaces.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42662 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 23:27:24 +00:00
Kevin 13043a4b89 A message on the main page about bulding clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42652 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 21:44:03 +00:00
Kevin bc8e50fa28 new site -- the rest of it
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42651 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 21:18:52 +00:00
Kevin a5dc235fed new site
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42650 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 21:17:52 +00:00
Fariborz Jahanian 245f92a886 This is the first patch toward supporting protocol conforming
objective-c types. It also removes use of Scope* parameter in
getObjCProtocolDecl.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42649 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 21:01:53 +00:00
Devang Patel 2d79d0f3ac Support case statement ranges.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42648 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 20:54:07 +00:00
Kevin ae1d4122cf Per request... about to make changes to the website.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42646 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 20:31:57 +00:00
Chris Lattner 85994260c4 Implement DenseMapInfo for Selector, allowing use of DenseMap/DenseSet of
Selector's instead of requiring void* to be used.  I converted one use of
DenseSet<void*> over to use DenseSet<Selector> but the others should change
as well.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42645 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 20:15:24 +00:00
Steve Naroff 29238a0bf7 Layering refinements for selectors (suggested by Chris). Specifics...
- Add SelectorTable, which enables us to remove MultiKeywordSelector from the public header.
- Remove FoldingSet from IdentifierInfo.h and Preprocessor.h.
- Remove Parser::ObjcGetUnarySelector and Parser::ObjcGetKeywordSelector, they are subsumed by SelectorTable.
- Add MultiKeywordSelector to IdentifierInfo.cpp.
- Move a bunch of selector related methods from ParseObjC.cpp to IdentifierInfo.cpp.
- Added some comments.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42643 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 18:42:47 +00:00
Fariborz Jahanian 85ff2646c1 Patch for 1) Checking for duplicate methods decls in intterface and category.
2) Use of the new DenseSet<t> abstractions instead of DenseMap<t,char>.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42641 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-05 18:00:57 +00:00
Devang Patel 51b09f2c52 switch statement code gen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42616 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 23:45:31 +00:00
Fariborz Jahanian b384d329e0 this patch accomodates clattner's comments on expression processing in @try-statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42611 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 20:19:06 +00:00
Fariborz Jahanian 5951965a39 More tab removal activity.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42608 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 17:06:28 +00:00
Chris Lattner 0e2dfd3963 minor cleanups, make code more defensive, less branchy in Selector ctor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42603 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 05:21:22 +00:00
Chris Lattner 1b386424df fix an incorrect assertion
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42602 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 05:16:42 +00:00
Fariborz Jahanian 3f5faf7c28 Fixed tabs in couple of sources.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42601 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 00:45:27 +00:00
Fariborz Jahanian 4b6df3fa95 Fixed all my recent test cases to have the RUN command and
fixed consequence of these changes in clang.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42600 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-04 00:22:33 +00:00
Chris Lattner c97c20446a minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42596 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-03 22:03:06 +00:00
Chris Lattner 16533e5c29 move DeclObjc.h down to be alphabetically organized
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42594 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-03 21:56:39 +00:00
Steve Naroff 3a165b066e Finish renaming ObjC declaration actions.
Add comments.
Switch to new indentation style for the Action class. Since many actions take many arguments, the new style will...
- make it easier to add/remove arguments without messing up the indentation...
- make it easier to add comments to each argument (see ActOnMethodDeclaration for an example)...
- in general, just makes it easier to see what is being passed.

The rest of Actions will be converted "lazily"...there is no immediate need to hack all the existing methods.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42587 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-03 21:00:46 +00:00
Fariborz Jahanian 79139a1217 Renamed getCatLoc() to getLocation() to be consistant for such
getter names.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42577 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-03 16:23:52 +00:00
Ted Kremenek e260e62dda Fixed bug where intrusive_ptr_add_ref and intrusive_ptr_release were
not declared "static inline."

Removed member templates for operator= and copy constructor.  They simply
didn't work as expected.

Fixed reference counting bug when a smart pointer is assigned the
value of another smart pointer that refers to the same address.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42562 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-03 00:48:55 +00:00
Steve Naroff 37e58d104d Rename several ObjC action methods to use the "ActOn" prefix (still a few more to do).
Remove Action::ObjCStartCategoryInterface/ObjCFinishInterface - they are unused.
.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42559 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 22:39:18 +00:00
Fariborz Jahanian 93efc029bf Unified SuperClass field name in an objective-c class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42556 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 22:12:45 +00:00
Fariborz Jahanian 7ed9e0f97f Unified such names as protocol references, instance methods and class methods
and their accessors in a variety of objective-c classes.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42555 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 22:05:16 +00:00
Steve Naroff a5997c4f36 Remove Action::ActOnImpleIvarVsClassIvars(), it is only called by Sema (not Parser).
Add Sema::CheckImplementationIvars() to replace the previous action.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42553 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 21:43:37 +00:00
Steve Naroff 768f26ee58 Rename ObjcInterfaceDecl::getIsForwardDecl() to isForwardDecl().
Rename ObjcProtocolDecl::getIsForwardProtoDecl() to isForwardDecl().
Rename ObjcInterfaceDecl::setIsForwardDecl() to setForwardDecl().
Rename ObjcProtocolDecl::setIsForwardProtoDecl() to setForwardDecl().

Two reasons:

#1: boolean predicates should start with "is".
#2: Since these two sets of methods represent the same concept, they should be named the same (polymorphism is good:-)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42545 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 20:26:23 +00:00
Fariborz Jahanian ca3adf7e8c Previously, I warned those methods not implemented in implementation class/category.
Now, I also warn those class/categories which are incomplete because of this.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42544 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 20:06:01 +00:00
Steve Naroff 6a8a9a41e9 - Add ObjcInterfaceDecl::lookupInstanceMethod(), lookupClassMethod().
- Add ObjcMessageExpr::getSelector(), getClassName().
- Change Sema::getObjCInterfaceDecl() to simply take an IdentifierInfo (no Scope needed).
- Remove FIXME for printing ObjCMessageExpr's.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42543 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 20:01:56 +00:00
Fariborz Jahanian 60199032e4 ObjcCategoryDecl Does not subclass from ScopedDecl any more.
Ted may want to take a look at the change I made at 
FGRecStmtDeclVisitor.h.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42535 91177308-0d34-0410-b5e6-96231b3b80d8
2007-10-02 17:36:55 +00:00