- Jun 28, 2008
-
-
Argyrios Kyrtzidis authored
Replace CurFunctionDecl and CurMethodDecl with methods getCurFunctionDecl() and getCurMethodDecl() that return the appropriate Decl through CurContext. llvm-svn: 52852
-
Chris Lattner authored
double in some places. llvm-svn: 52846
-
Chris Lattner authored
SemaDeclAttr, and do some cleanups. llvm-svn: 52844
-
- Jun 26, 2008
-
-
Chris Lattner authored
llvm-svn: 52792
-
Chris Lattner authored
cases where mutation can introduce bugs. Propagate around 'const'. llvm-svn: 52772
-
Chris Lattner authored
llvm-svn: 52771
-
Chris Lattner authored
used to mutate the attribute list for declspecs when the type was converted, breaking the case where one declspec was shared by multiple declarators. This fixes rdar://6032532. llvm-svn: 52769
-
- Jun 25, 2008
-
-
Argyrios Kyrtzidis authored
The assert at Sema::ObjCActOnStartOfMethodDef should check CurMethodDecl instead of CurFunctionDecl. llvm-svn: 52719
-
Argyrios Kyrtzidis authored
llvm-svn: 52698
-
Argyrios Kyrtzidis authored
Note that Parser::ParseCXXMemberSpecification is temporarily disabled until the Sema support is in place. Once ParseCXXMemberSpecification is enabled, the Parser/cxx-class.cpp test will pass. llvm-svn: 52694
-
- Jun 24, 2008
-
-
Ted Kremenek authored
ObjCMessageExpr objects that represent messages to class methods now can contain the ObjCInterfaceDecl* of the target class if it was available when the ObjCMessageExpr object was constructed. The original interfaces of the class has been preserved (requiring no functionality changes from clients), but now a "getClasSInfo" method returns both the ObjCInterfaceDecl* and IdentifierInfo* of the target class. llvm-svn: 52676
-
- Jun 22, 2008
-
-
Chris Lattner authored
llvm-svn: 52607
-
- Jun 21, 2008
-
-
Chris Lattner authored
"this patch adds code generation hooks for Objective-C constant strings. It also modifies Sema so that Objective-C constant strings are treated as untyped objects if the interface for the constant string class can not be found. This is consistent with Apple GCC. I thought it was consistent with GNU GCC, since this was causing failures when trying to compile GNUstep with (GNU) GCC, but it appears that this is not the case when attempting to produce a simple test case to demonstrate it. Possibly there is a way of making the error go away, but I haven't found out what it is yet." Patch by David Chisnall! llvm-svn: 52599
-
Chris Lattner authored
by David Chisnall. llvm-svn: 52597
-
Chris Lattner authored
"This moves built-in Objective-C types up the scope chains to where they can be replaced by versions included from the runtime library's headers." This makes it ok to use @"foo" without a declaration for NSConstantString. Patch by David Chisnall! llvm-svn: 52593
-
Chris Lattner authored
Patch by David Chisnall! llvm-svn: 52586
-
Chris Lattner authored
Patch by David Chisnall with objc rewriter and stmtdumper updates from me. llvm-svn: 52580
-
- Jun 17, 2008
-
-
Chris Lattner authored
Patch by David Chisnall! llvm-svn: 52422
-
- 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
-