| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 52092
|
|
|
|
|
|
| |
Patch by Mike Stump!
llvm-svn: 52081
|
|
|
|
| |
llvm-svn: 52054
|
|
|
|
| |
llvm-svn: 52025
|
|
|
|
|
|
| |
redefinition of 'XCElementToggler' as different kind of symbol
llvm-svn: 52024
|
|
|
|
| |
llvm-svn: 52014
|
|
|
|
| |
llvm-svn: 52006
|
|
|
|
|
|
|
|
|
| |
'void', expected 'int'.
- 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
|
|
|
|
|
|
|
|
| |
Sema::ActOnMemberReferenceExpr.
In addition to fixing the crasher, this commit fixes further improves property lookup (by searching protocols of qualified interfaces..."NSObject <prot>").
llvm-svn: 52001
|
|
|
|
| |
llvm-svn: 51976
|
|
|
|
| |
llvm-svn: 51969
|
|
|
|
| |
llvm-svn: 51964
|
|
|
|
|
|
| |
difference, but it's better to be consistent.
llvm-svn: 51961
|
|
|
|
|
|
|
|
| |
void as well.
Please confirm this is safe
llvm-svn: 51957
|
|
|
|
|
|
|
|
| |
to be
assigned to less protocol qualified object on LHS.
llvm-svn: 51956
|
|
|
|
|
|
| |
variety of cleanups in some ASTConsumers.
llvm-svn: 51943
|
|
|
|
|
|
| |
for private class methods.
llvm-svn: 51938
|
|
|
|
| |
llvm-svn: 51924
|
|
|
|
|
|
| |
Fix <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union
llvm-svn: 51919
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 51913
|
|
|
|
|
|
|
|
| |
Sema::CheckCompareOperands() and Sema::CheckAssignmentConstraints().
Fixes <rdar://problem/5980804> clang on xcode: error: incompatible type sending 'id<XDUMLType>', expected 'NSCellType'.
llvm-svn: 51902
|
|
|
|
| |
llvm-svn: 51901
|
|
|
|
|
|
| |
Fixes part of <rdar://problem/5980829> clang on xcode: used type 'NSRange' where arithmetic or pointer type is required.
llvm-svn: 51900
|
|
|
|
|
|
| |
identifier 'super'
llvm-svn: 51888
|
|
|
|
|
|
| |
this plugs the leak of attributes and also fixes a crash in the test
llvm-svn: 51862
|
|
|
|
|
|
|
|
|
|
| |
interface types on the RHS.
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
|
|
|
|
|
|
|
|
| |
This fixes a bogus error.
<rdar://problem/5967036> clang on xcode: error: incompatible operand types ('id<DTOutputStreams>' and 'DTFilterOutputStream *')
llvm-svn: 51828
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 51809
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 51778
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
- #include ExprObjC.h in many places
llvm-svn: 51703
|
|
|
|
| |
llvm-svn: 51586
|
|
|
|
| |
llvm-svn: 51585
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
encountered. Mixing up the decls is unintuitive, and confuses the AST
destruction code. Fixes PR2360.
Note that there is a need to look up the characteristics and
declarations of a function associated with a particular name or decl,
but the original swapping code doesn't solve it properly.
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-May/001644.html is one
suggestion for how to fix that.
llvm-svn: 51584
|
|
|
|
| |
llvm-svn: 51580
|
|
|
|
|
|
|
|
|
|
| |
it fixes PR2204. Not too much to say about the implementation; it works
in a similar way to the vector size attribute.
At some point, we need to modify the targets to provide information
about the appropriate types.
llvm-svn: 51577
|
|
|
|
|
|
| |
with unnamed members.
llvm-svn: 51557
|
|
|
|
|
|
| |
PR2151 (by not creating the empty implicit init list).
llvm-svn: 51556
|
|
|
|
|
|
| |
double-report errors; fixes PR2362.
llvm-svn: 51555
|
|
|
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=51498&r1=51497&r2=51498&view=diff
Turns out that there are multiple places where a redefinition diagnostic can be emitted. A cleaner solution (without touching Sema) is to have
the Driver turn off these diagnostics. (will submit this patch soon)
llvm-svn: 51502
|
|
|
|
| |
llvm-svn: 51498
|
|
|
|
|
|
|
|
| |
decl spec).
Also added a FIXME related to how we represent @properties in the ObjCInterfaceDecl AST.
llvm-svn: 51450
|
|
|
|
|
|
| |
void f(const void) in one place and rejecting it in another.
llvm-svn: 51424
|
|
|
|
|
|
|
|
|
| |
lib/CodeGen/CGExpr.cpp and to change include/clang/AST/Attr.h to
use its own enum for visibility types instead of using
llvm::GlobalValue::VisibilityTypes. These changes eliminate
dependencies in the AST library on LLVM's VMCore library.
llvm-svn: 51398
|