- Apr 16, 2008
-
-
Steve Naroff authored
Remove FileVarDecl and BlockVarDecl. They are replaced by VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl(). This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it). llvm-svn: 49748
-
- Apr 15, 2008
-
-
Fariborz Jahanian authored
llvm-svn: 49699
-
- Apr 14, 2008
-
-
Douglas Gregor authored
llvm-svn: 49631
-
Argyrios Kyrtzidis authored
llvm-svn: 49628
-
- Apr 13, 2008
-
-
Douglas Gregor authored
inheritance in C++. It'll parse the base-specifier list, e.g., class D : public B1, virtual public B2 { }; and do some of the simpler semantic checks (B1 and B2 are classes; they aren't unions or incomplete types, etc). llvm-svn: 49623
-
Douglas Gregor authored
llvm-svn: 49621
-
Chris Lattner authored
allows the parsing of "class" in addition to "struct" and "union" to declare a record. So this patch allows: class C { }; class C c1; But it does not contain the lookup bits, so this won't work yet: C c2; Patch by Doug Gregor! llvm-svn: 49613
-
Chris Lattner authored
Doug Gregor! llvm-svn: 49598
-
- Apr 12, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 49582
-
Argyrios Kyrtzidis authored
Moved IdDeclInfo class to anonymous namespace. Replaced array with a std::vector. llvm-svn: 49570
-
Argyrios Kyrtzidis authored
llvm-svn: 49567
-
Fariborz Jahanian authored
llvm-svn: 49565
-
- Apr 11, 2008
-
-
Steve Naroff authored
llvm-svn: 49553
-
Fariborz Jahanian authored
llvm-svn: 49539
-
Chris Lattner authored
llvm-svn: 49521
-
Chris Lattner authored
shadowing, instead of threading it through the AST. This patch contributed by Argiris Kirtzidis! llvm-svn: 49520
-
Fariborz Jahanian authored
1) objc ivar processing is split out of ActOnField into its own ActOnIvar method. 2) the new objc ivar action takes visibility info directly, eliminating AllVisibilities in ParseObjCClassInstanceVariables. llvm-svn: 49506
-
- Apr 10, 2008
-
-
Chris Lattner authored
void f(T); is only invalid in C++ mode, not C89 mode. llvm-svn: 49460
-
Chris Lattner authored
argument handling. I'll fix up the c89 (void) thing next. llvm-svn: 49459
-
- Apr 08, 2008
-
-
Chris Lattner authored
interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49370
-
Chris Lattner authored
interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369
-
- Apr 07, 2008
-
-
Chris Lattner authored
llvm-svn: 49325
-
Chris Lattner authored
llvm-svn: 49323
-
Chris Lattner authored
While it is similar to the other compatibility predicates in ASTContext, it is not used by them and is different. In addition, greatly simplify ObjCQualifiedIdTypesAreCompatible and fix some canonical type bugs. Also, simplify my Type::getAsObjC* methods. llvm-svn: 49313
-
Chris Lattner authored
getFloatingTypeOrder) instead of a type. Fix a fixme. llvm-svn: 49297
-
Chris Lattner authored
llvm-svn: 49296
-
Chris Lattner authored
llvm-svn: 49295
-
Chris Lattner authored
While I'm at it, clean up a bit of maxIntegerType. llvm-svn: 49292
-
- Apr 06, 2008
-
-
Chris Lattner authored
llvm-svn: 49273
-
Chris Lattner authored
-Renamed ContextDecl -> DeclContext -Removed DeclContext pointer from FieldDecl -EnumDecl inherits from DeclContext, instead of TagDecl Patch by Argiris Kirtzidis! llvm-svn: 49261
-
- Apr 05, 2008
-
-
Chris Lattner authored
subsuming) my patch for PR1999. llvm-svn: 49251
-
- Apr 04, 2008
-
-
Steve Naroff authored
Without this, the diagnostic is very confusing. The diag is now consistent with gcc as well. llvm-svn: 49214
-
Chris Lattner authored
-Added ContextDecl (no TranslationUnitDecl) -ScopedDecl class has a ContextDecl member -FieldDecl class has a ContextDecl member, so that a Field or a ObjCIvar can be traced back to their RecordDecl/ObjCInterfaceDecl easily -FunctionDecl, ObjCMethodDecl, TagDecl, ObjCInterfaceDecl inherit from ContextDecl. With TagDecl as ContextDecl, enum constants have a EnumDecl as their context. -Moved Decl class to a "DeclBase.h" along with ContextDecl class -CurContext is handled by Sema llvm-svn: 49208
-
Nate Begeman authored
This prevents things like a += b[0]; where a is a float4 and b is a float4 * (address_space 1) llvm-svn: 49199
-
- Apr 03, 2008
-
-
Chris Lattner authored
the LHS for null twice. llvm-svn: 49138
-
- Apr 02, 2008
-
-
Steve Naroff authored
Change ObjCInterfaceDecl to inherit from NamedDecl (not TypeDecl). While ObjCInterfaceDecl is arguably a TypeDecl, it isn't a ScopedDecl. Since TypeDecl's are scoped, it makes sense to simply treat them as NamedDecl's. I could have fiddled a bit more with the hierarchy (in terms of creating a non-scoped TypeDecl), however this probably isn't worth the effort. I also finished unifying access to scope decl change by converting Sema::getObjCInterfaceDecl() to use Sema::LookupDecl(). This is much cleaner now:-) llvm-svn: 49107
-
Chris Lattner authored
llvm-svn: 49101
-
Chris Lattner authored
allowing them to be treated the same in some contexts. A suggestion for a better name is welcome :) llvm-svn: 49100
-
Chris Lattner authored
llvm-svn: 49098
-
Steve Naroff authored
Two changes to Sema::LookupDecl() interface. (1) Remove IdLoc (it's never used). (2) Add a bool to enable/disable lazy builtin creaation (defaults to true). This enables us to use LookupDecl() in Sema::isTypeName(), which is also part of this commit. To make this work, I changed isTypeName() to be a non-const member function. I'm not happy with this, however I fiddled with making LookupDecl() and friends const and it got ugly pretty quickly. We can certainly add it back if/when someone has time to fiddle with it. For now, I thought this simplification was more important than retaining the const-ness. llvm-svn: 49087
-