- Jul 16, 2009
-
-
Ted Kremenek authored
llvm-svn: 76092
-
Steve Naroff authored
llvm-svn: 76078
-
Steve Naroff authored
Convert all clients to use the new predicate on Type. llvm-svn: 76076
-
Fariborz Jahanian authored
llvm-svn: 75861
-
Fariborz Jahanian authored
a test failure, until figuring out what caused the failure. llvm-svn: 75855
-
Fariborz Jahanian authored
base/members. llvm-svn: 75849
-
- Jul 15, 2009
-
-
Ted Kremenek authored
llvm-svn: 75832
-
Steve Naroff authored
Implement the ObjC pseudo built-in types as clang "BuiltinType's". I say pseudo built-in types, since Sema still injects a typedef for recognition (i.e. they aren't truly built-ins from a parser perspective). This removes the static data/methods on ObjCObjectPointerType while preserving the nice API (no need to fiddle with ASTContext:-). This patch also adds Type::isObjCBuiltinType(). This should be the last fairly large patch related to recrafting the ObjC type system. The follow-on patches should be fairly small. llvm-svn: 75808
-
Dan Gohman authored
Force flag to control whether the case of opening an existing file is considered an error. llvm-svn: 75802
-
Fariborz Jahanian authored
a dependent type in the ctor initializer-list. llvm-svn: 75712
-
Fariborz Jahanian authored
llvm-svn: 75692
-
- Jul 14, 2009
-
-
Fariborz Jahanian authored
ctor-initializer AST build. llvm-svn: 75662
-
Fariborz Jahanian authored
llvm-svn: 75651
-
Steve Naroff authored
I don't love the name, however it simplifies the code and is a worthwhile change. If/when we come up with a better name, we can do a search/replace. llvm-svn: 75650
-
Fariborz Jahanian authored
semantics of order of construction [class.init]. llvm-svn: 75649
-
Anders Carlsson authored
llvm-svn: 75641
-
Steve Naroff authored
Note: One day, it might be useful to consider adding this info to DeclGroup (as the comments in FunctionDecl/VarDecl suggest). For now, I think this works fine. I considered moving this to ValueDecl (a common ancestor of FunctionDecl/VarDecl/FieldDecl), however this would add overhead to EnumConstantDecl (which would burn memory and isn't necessary). llvm-svn: 75635
-
Alisdair Meredith authored
llvm-svn: 75622
-
Argyrios Kyrtzidis authored
llvm-svn: 75606
-
Argyrios Kyrtzidis authored
It iterates over all the redeclarations, regardless of the starting point. For example: 1) int f(); 2) int f(); 3) int f(); if you have the (2) FunctionDecl and call redecls_begin/redecls_end to iterate, you'll get this sequence: (2) (1) (3) The motivation to introduce this was that, previously, if (3) was a function definition, and you called getBody() at (2), it would not return it, since getBody() iterated over the previous declarations only, so it would only check (2) and (1). llvm-svn: 75604
-
Argyrios Kyrtzidis authored
For multiple redeclarations they return the last one. Also, add some non const versions of methods. llvm-svn: 75603
-
Argyrios Kyrtzidis authored
For multiple redeclarations they return the first one. llvm-svn: 75602
-
Argyrios Kyrtzidis authored
llvm-svn: 75598
-
Argyrios Kyrtzidis authored
llvm-svn: 75590
-
Fariborz Jahanian authored
llvm-svn: 75549
-
- Jul 13, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 75487
-
Chris Lattner authored
llvm-svn: 75442
-
- Jul 11, 2009
-
-
Alisdair Meredith authored
Fix breakage on Windows, cannot redeclare loop variable i in the immediate scope of loop. Rename variable to j. llvm-svn: 75365
-
Anders Carlsson authored
Implement more of C++0x 'auto'. A variable with an auto type specifier must have an initializer. Also, move some tests around to match the C++0x draft better. llvm-svn: 75322
-
Steve Naroff authored
The idea is to segregate Objective-C "object" pointers from general C pointers (utilizing the recently added ObjCObjectPointerType). The fun starts in Sema::GetTypeForDeclarator(), where "SomeInterface *" is now represented by a single AST node (rather than a PointerType whose Pointee is an ObjCInterfaceType). Since a significant amount of code assumed ObjC object pointers where based on C pointers/structs, this patch is very tedious. It should also explain why it is hard to accomplish this in smaller, self-contained patches. This patch does most of the "heavy lifting" related to moving from PointerType->ObjCObjectPointerType. It doesn't include all potential "cleanups". The good news is additional cleanups can be done later (some are noted in the code). This patch is so large that I didn't want to include any changes that are purely aesthetic. By making the ObjC types truly built-in, they are much easier to work with (and require fewer "hacks"). For example, there is no need for ASTContext::isObjCIdStructType() or ASTContext::isObjCClassStructType()! We believe this change (and the follow-up cleanups) will pay dividends over time. Given the amount of code change, I do expect some fallout from this change (though it does pass all of the clang tests). If you notice any problems, please let us know asap! Thanks. llvm-svn: 75314
-
- Jul 10, 2009
-
-
Anders Carlsson authored
llvm-svn: 75291
-
Fariborz Jahanian authored
in their order of construction for each class and use it to to check on propery order of base class construction under -Wreorder option. llvm-svn: 75270
-
Anders Carlsson authored
llvm-svn: 75265
-
Anders Carlsson authored
llvm-svn: 75175
-
- Jul 08, 2009
-
-
Douglas Gregor authored
function template. Most of the change here is in factoring out the common bits used for template argument deduction from a function call and when taking the address of a function template. llvm-svn: 75044
-
Douglas Gregor authored
llvm-svn: 74999
-
Fariborz Jahanian authored
when struct variables with GC'able members are copied into. Will provide a test case later. llvm-svn: 74984
-
Douglas Gregor authored
not Context.DependentTy. I'll let Anders check in the test case for this one... llvm-svn: 74975
-
- Jul 07, 2009
-
-
Douglas Gregor authored
FILE type, rather than using name lookup to find FILE within the translation unit. Within precompiled headers, FILE is treated as yet another "special type" (like __builtin_va_list). This change should provide a performance improvement (not verified), since the lookup into the translation unit declaration forces the (otherwise unneeded) construction of a large hash table. More importantly, with precompiled headers, the construction of that table requires deserializing most of the top-level declarations from the precompiled header, which are then unused. Fixes PR 4509. llvm-svn: 74911
-
Fariborz Jahanian authored
- Fariborz llvm-svn: 74909
-