- Mar 23, 2007
-
-
Steve Naroff authored
Submitted by: Reviewed by: Type Checking...round 2. This checkin "breaks" parsing carbon.h. I imagine that this will be true for the next week or so. Nevertheless, this round of changes includes the following: - Hacked various Expr classes to pass the appropriate TypeRef. Still have a few more classes to touch. - Implement type checking for ParseArraySubscriptExpr and ParseMemberReferenceExpr. - Added a debug hook to derive the class name for Stmt/Expr nodes. Currently a linear search...could easily optimize if important. - Changed the name of TaggedType->TagType. Now we have TagType and TagDecl (which are easier to remember). - Fixed a bug in StringLiteral conversion I did a couple weeks ago. hadError was not initialized (oops). - changed Sema::Diag to return true. This streamlines the type checking code considerably. - Added many diagnositics. This should be it! llvm-svn: 39361
-
- Mar 06, 2007
-
-
Steve Naroff authored
Submitted by: Reviewed by: More code to parse numeric constants. This checkin includes: - Feedback from Chris. - Support for parsing floating point constants. - Moved the code to "Sema". Changed API in Action. - More/better error diagnostics. At this point, the parsing support should be largely complete. Next step is to work on filling in sensible values (in IntegerLiteral/FloatLiteral). llvm-svn: 39349
-
- Feb 28, 2007
-
-
Steve Naroff authored
Go back to having the clang driver create ASTContext explicitly, passing it to Sema/ASTStreamer (separating the lifetime of ASTContext from the lifetime of Sema). One day it might be useful to consider creating a context object implicitly if one isn't provided (using default arguments in Sema's constructor). At this point, adding this convenience isn't necessary. llvm-svn: 39346
-
Steve Naroff authored
the prerocessor will be available via ASTContext). - Removed the public data member "PP" in ASTContext. - Changed ASTContext's contructor to take TargetInfo/IdentifierTable explicitly. - Implicitly create an ASTContext in Sema's constructor. This simplifies the clients job (and makes ASTContext more private). --As a side effect, added a "PrintStats" hook to Sema. To support this level of encapsulation, ASTContext is always dynamically allocated (by Sema). Previously, ASTContext was being allocated on the stack. I don't believe this should be a performance issue (since ASTContext is fairly course grain and tied to the lifetime of Sema currently). llvm-svn: 39345
-
- Nov 20, 2006
-
-
Chris Lattner authored
int A() { return X(); } llvm-svn: 39194
-
- Nov 10, 2006
-
-
Chris Lattner authored
llvm-svn: 39161
-
Chris Lattner authored
to SemaDecl.cpp llvm-svn: 39159
-
Chris Lattner authored
llvm-svn: 39157
-
Chris Lattner authored
llvm-svn: 39156
-
Chris Lattner authored
llvm-svn: 39155
-
Chris Lattner authored
interface exported by libast. llvm-svn: 39154
-
- Nov 09, 2006
-
-
Chris Lattner authored
llvm-svn: 39153
-
Chris Lattner authored
fundamentally requires having an AST around, so move all sema to the AST library. This is the first step, later steps will be needed to clean up libast. llvm-svn: 39150
-
- Nov 05, 2006
-
-
Chris Lattner authored
llvm-svn: 39121
-
Chris Lattner authored
llvm-svn: 39120
-
- Nov 04, 2006
-
-
Chris Lattner authored
llvm-svn: 39119
-
Chris Lattner authored
llvm-svn: 39116
-
Chris Lattner authored
llvm-svn: 39113
-
Chris Lattner authored
and should be implemented with an ASTBuilder subclass anyway. llvm-svn: 39107
-
- Nov 03, 2006
-
-
Chris Lattner authored
llvm-svn: 39095
-
- Oct 28, 2006
-
-
Chris Lattner authored
llvm-svn: 39075
-
- Oct 25, 2006
-
-
Chris Lattner authored
llvm-svn: 39051
-
Chris Lattner authored
llvm-svn: 39050
-
Chris Lattner authored
llvm-svn: 39049
-
Chris Lattner authored
llvm-svn: 39048
-
Chris Lattner authored
llvm-svn: 39046
-
Chris Lattner authored
llvm-svn: 39045
-
Chris Lattner authored
llvm-svn: 39044
-
Chris Lattner authored
llvm-svn: 39043
-
- Oct 17, 2006
-
-
Chris Lattner authored
llvm-svn: 38999
-
- Oct 16, 2006
-
-
Chris Lattner authored
llvm-svn: 38993
-
Chris Lattner authored
declarations through the asm streamer. For a testcase like: int G; int H, I, *J; int func() {} 'clang -parse-print-ast' prints: Read top-level decl: G Read top-level decl: H Read top-level decl: I Read top-level decl: J Read top-level decl: func llvm-svn: 38992
-
Chris Lattner authored
llvm-svn: 38991
-
- Oct 06, 2006
-
-
Chris Lattner authored
llvm-svn: 38965
-
Chris Lattner authored
llvm-svn: 38960
-
- Aug 24, 2006
-
-
Chris Lattner authored
llvm-svn: 38951
-
Chris Lattner authored
llvm-svn: 38950
-
Chris Lattner authored
llvm-svn: 38949
-
Chris Lattner authored
llvm-svn: 38948
-
Chris Lattner authored
llvm-svn: 38947
-