- Jun 16, 2008
-
-
Ted Kremenek authored
Patch by Nikita Zhuk! llvm-svn: 52336
-
- Jun 11, 2008
-
-
Eli Friedman authored
isn't guaranteed to exist. This fixes a crash with conflicting typedefs coming from stdin. This also fixes the crash in PR2406, but doesn't completely fix the issue; it appears there's something strange about the physical location for the definition of int64_t in stdlib.h. llvm-svn: 52209
-
- Jun 10, 2008
-
-
Argyrios Kyrtzidis authored
-ScopedDecls get chained to their DeclContext. -DeclContext's DeclChain replaces FunctionDecl's DeclChain and EnumDecl's ElementList. llvm-svn: 52164
-
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 09, 2008
-
-
Eli Friedman authored
pointer cast hack currently in isIntegerConstantExpr (in lib/AST/Expr.cpp). Also removes an odd test that even gcc doesn't accept. The reason the pointer cast hack is relevant here is that it makes Sema end up misinterpreting the relevant expression as a null pointer constant. The reason for this patch is that I plan to remove the pointer cast hack sometime soon because it causes strange issues, especially in its current form; see my recent email to cfe-dev "[PATCH] add constant expression evaluation to the AST and fix PR2413". llvm-svn: 52120
-
Eli Friedman authored
type; this isn't explicitly stated in the standard, but it doesn't really make sense for them to have an effect here. Fixes the included testcase, sent to me by Steve Naroff. llvm-svn: 52113
-
- Jun 08, 2008
-
-
Nuno Lopes authored
llvm-svn: 52092
-
Chris Lattner authored
Patch by Mike Stump! llvm-svn: 52081
-
- Jun 06, 2008
-
-
Eli Friedman authored
llvm-svn: 52054
-
Steve Naroff authored
llvm-svn: 52025
-
rdar://problem/5986085Steve Naroff authored
Second half of "fix" for <rdar://problem/5986085> clang on xcode: error: redefinition of 'XCElementToggler' as different kind of symbol llvm-svn: 52024
-
- Jun 05, 2008
-
-
Steve Naroff authored
llvm-svn: 52014
-
Steve Naroff authored
llvm-svn: 52006
-
rdar://problem/5986833Steve Naroff authored
- Changed Sema::ObjCActOnStartOfMethodDef() to more accurately type "self" in factory methods. - Changed Sema::ActOnInstanceMessage() to use the new type to restrict the lookup. llvm-svn: 52005
-
rdar://problem/5987482Steve Naroff authored
In addition to fixing the crasher, this commit fixes further improves property lookup (by searching protocols of qualified interfaces..."NSObject <prot>"). llvm-svn: 52001
-
Steve Naroff authored
llvm-svn: 51976
-
-
- Jun 04, 2008
-
-
Ted Kremenek authored
llvm-svn: 51964
-
Eli Friedman authored
difference, but it's better to be consistent. llvm-svn: 51961
-
Nuno Lopes authored
Please confirm this is safe llvm-svn: 51957
-
Fariborz Jahanian authored
assigned to less protocol qualified object on LHS. llvm-svn: 51956
-
Ted Kremenek authored
Moved LangOptions from TranslationUnit to ASTContext. This induced a variety of cleanups in some ASTConsumers. llvm-svn: 51943
-
Steve Naroff authored
Sema::ActOnClassMessage() needs to look through it's local implementation for private class methods. llvm-svn: 51938
-
Steve Naroff authored
llvm-svn: 51924
-
- Jun 03, 2008
-
-
Steve Naroff authored
Fix <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union llvm-svn: 51919
-
Eli Friedman authored
moves the check for the invalid construct to a point where it doesn't affect other uses of isIntegerConstantExpr, and we can warn properly when the extension is used. This makes it a bit more complicated, but it's a lot cleaner. Steve, please tell me if this check is sufficient to handle the relevant system header. I know it's enough to handle the testcase, but I don't know what exactly the original looks like. llvm-svn: 51918
-
Steve Naroff authored
llvm-svn: 51913
-
Steve Naroff authored
Allow implicit pointer/int conversions on ObjCQualifiedIdTypes in Sema::CheckCompareOperands() and Sema::CheckAssignmentConstraints(). Fixes <rdar://problem/5980804> clang on xcode: error: incompatible type sending 'id<XDUMLType>', expected 'NSCellType'. llvm-svn: 51902
-
Steve Naroff authored
llvm-svn: 51901
-
Steve Naroff authored
Fixes part of <rdar://problem/5980829> clang on xcode: used type 'NSRange' where arithmetic or pointer type is required. llvm-svn: 51900
-
-
- Jun 02, 2008
-
-
Nuno Lopes authored
this plugs the leak of attributes and also fixes a crash in the test llvm-svn: 51862
-
- Jun 01, 2008
-
-
Steve Naroff authored
This eliminates a bogus warning identified in the test below. This fixes <rdar://problem/5968256> clang on xcode: error: incompatible type initializing 'NSObject<XCSelectionSource> *', expected 'id<NSObject,XCSelectionSource>' llvm-svn: 51832
-
Steve Naroff authored
Teach Sema::CheckConditionalOperands() to check for ObjCQualifiedIdType's. This fixes a bogus error. <rdar://problem/5967036> clang on xcode: error: incompatible operand types ('id<DTOutputStreams>' and 'DTFilterOutputStream *') llvm-svn: 51828
-
- May 31, 2008
-
-
Ted Kremenek authored
TranslationUnit object instead of an ASTContext. By default it calls Initialize(ASTConstext& Context) (to match with the current interface used by most ASTConsumers). Modified the ObjC-Rewriter to use InitializeTU, and to tell the TranslationUnit to not free its Decls. This is a workaround for: <rdar://problem/5966749> llvm-svn: 51825
-
-
- May 30, 2008
-
-
Eli Friedman authored
required by the standard (the standard doesn't know anything about implicit casts). Disallow pointers cast to non-integral arithmetic types as constant expressions. This was previously allowed by accident. llvm-svn: 51779
-
Eli Friedman authored
llvm-svn: 51778
-
Steve Naroff authored
While it is far from complete, it does fix the following <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union llvm-svn: 51719
-
- May 29, 2008
-
-
Steve Naroff authored
- #include ExprObjC.h in many places llvm-svn: 51703
-