- Aug 22, 2008
-
-
Eli Friedman authored
testing compatibility. This is necessary for some constructs, like merging redeclarations. Also, there are some ObjC changes to make sure that typesAreCompatible(a,b) == typesAreCompatible(b,a). I don't have any ObjC code beyond the testsuite, so please tell me if there are any cases where this doesn't behave as expected. llvm-svn: 55158
-
- Aug 14, 2008
-
-
Steve Naroff authored
Fix ASTContext::getObjCEncodingForType() to limit the type info for structure bodies (mimics gcc's adhoc rules). This fixes <rdar://problem/6140902> clang ObjC rewriter: If a class contains a struct ivar with a lot of members, ... llvm-svn: 54777
-
Daniel Dunbar authored
getIntegerConstantExprValue where appropriate. llvm-svn: 54771
-
- Aug 11, 2008
-
-
Daniel Dunbar authored
- Kill unnecessary #includes in .cpp files. This is an automatic sweep so some things removed are actually used, but happen to be included by a previous header. I tried to get rid of the obvious examples and this was the easiest way to trim the #includes in one fell swoop. - We now return to regularly scheduled development. llvm-svn: 54632
-
Daniel Dunbar authored
- Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and SourceLocation.h) - Move ASTContext constructor into implementation llvm-svn: 54627
-
- Aug 09, 2008
-
-
Chris Lattner authored
an invalid struct decl. Thanks to Martin Doucha for the isIncompleteArrayType part of this patch. llvm-svn: 54592
-
Argyrios Kyrtzidis authored
No functionality change. llvm-svn: 54588
-
Argyrios Kyrtzidis authored
llvm-svn: 54585
-
- Aug 07, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 54488
-
- Aug 04, 2008
-
-
Chris Lattner authored
Finally fix PR2189. This makes a fairly invasive but important change to move getAsArrayType into ASTContext instead of being a method on type. This is required because getAsArrayType(const AT), where AT is a typedef for "int[10]" needs to return ArrayType(const int, 10). Fixing this greatly simplifies getArrayDecayedType, which is a good sign. llvm-svn: 54317
-
- Jul 26, 2008
-
-
Chris Lattner authored
of doing it directly. This is required for PR2189. llvm-svn: 54102
-
Chris Lattner authored
First, fix canonical type handling of these, since protocol qualified id's are always canonical. Next, enhance SemaType to actually make these when used (instead of int) allowing them to actually be used when appropriate. Finally remove a bunch of logic relating to the mishandling of canonical types with protocol-qual id's. This fixes rdar://5986251 llvm-svn: 54083
-
- Jul 25, 2008
-
-
Ted Kremenek authored
llvm-svn: 53998
-
- Jun 30, 2008
-
-
Chris Lattner authored
1) add a new ASTContext::getFloatTypeSemantics method. 2) Use it from SemaExpr.cpp, CodeGenTypes.cpp and other places. 3) Change the TargetInfo.h get*Format methods to return their fltSemantics byref instead of by pointer. 4) Change CodeGenFunction::EmitBuiltinExpr to allow builtins which sometimes expand specially and othertimes fall back to libm. 5) Add support for __builtin_nan("") to codegen, cases that don't pass in an empty string are currently lowered to libm calls. 6) Fix codegen of __builtin_infl. llvm-svn: 52914
-
- Jun 28, 2008
-
-
Eli Friedman authored
integers which have the same width and different signedness work correctly. (The testcase in PR2501 uses a comparison between long and unsigned int). llvm-svn: 52853
-
- Jun 10, 2008
-
-
Argyrios Kyrtzidis authored
Added TagKind enum. Added getTagKind() method. Added convenience methods: isEnum(), isStruct(), isUnion(), isClass(). -RecordDecl/CXXRecordDecl::Create() accept a TagKind enum instead of a DeclKind one. llvm-svn: 52160
-
- Jun 06, 2008
-
-
Devang Patel authored
llvm-svn: 52035
-
Devang Patel authored
llvm-svn: 52034
-
Devang Patel authored
llvm-svn: 52033
-
- Jun 04, 2008
-
-
Devang Patel authored
Reuse RecordLayout. llvm-svn: 51968
-
Devang Patel authored
Move field layout code in a ASTRecordLayout member fn. llvm-svn: 51966
-
Ted Kremenek authored
Moved LangOptions from TranslationUnit to ASTContext. This induced a variety of cleanups in some ASTConsumers. llvm-svn: 51943
-
Steve Naroff authored
llvm-svn: 51939
-
- May 30, 2008
-
-
Eli Friedman authored
and union codepaths and fixes some minor bugs. I'm reasonably confident this is accurate, at least for X86. I'll correct any bugs as I find them; I haven't found any for a while, though. llvm-svn: 51762
-
- May 27, 2008
-
-
Eli Friedman authored
llvm-svn: 51575
-
- May 21, 2008
-
-
Ted Kremenek authored
the destruction of Decls and Stmts. llvm-svn: 51385
-
Steve Naroff authored
llvm-svn: 51380
-
- May 20, 2008
-
-
Eli Friedman authored
llvm-svn: 51322
-
- Apr 19, 2008
-
-
Nate Begeman authored
llvm-svn: 49942
-
- Apr 17, 2008
-
-
Argyrios Kyrtzidis authored
-Added TranslationUnitDecl class to serve as top declaration context -ASTContext gets a TUDecl member and a getTranslationUnitDecl() function -All ScopedDecls get the TUDecl as DeclContext when declared at global scope llvm-svn: 49855
-
- Apr 13, 2008
-
-
Douglas Gregor authored
llvm-svn: 49621
-
- Apr 07, 2008
-
-
Chris Lattner authored
llvm-svn: 49328
-
Chris Lattner authored
llvm-svn: 49327
-
Chris Lattner authored
llvm-svn: 49326
-
Chris Lattner authored
llvm-svn: 49325
-
Chris Lattner authored
llvm-svn: 49324
-
Chris Lattner authored
llvm-svn: 49323
-
Chris Lattner authored
and fix a bug. llvm-svn: 49322
-
Chris Lattner authored
if MyClass is a superclass of MyOtherClass, there is no need for an exact interface match. llvm-svn: 49320
-
Chris Lattner authored
llvm-svn: 49319
-