Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Don't call non-existent method... sorry about the spam; the fix seemed | Eli Friedman | 2008-02-15 | 1 | -1/+1 | |
| | | | | | | trivial, but I forgot that method doesn't exist yet. llvm-svn: 47175 | |||||
* | Get rid of unused variable warning. | Eli Friedman | 2008-02-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 47174 | |||||
* | Split out incomplete arrays from VariableArrayType into | Eli Friedman | 2008-02-15 | 2 | -15/+16 | |
| | | | | | | | | | | IncompleteArrayType. This should make code dealing with both incomplete and variable length arrays much more readable, plus it allows properly making the distinction between isVariableArrayType() and isVariablyModifiedType(). The patch is a little big, but it's strightforward. so I don't think there should be any issues. llvm-svn: 47165 | |||||
* | Part of clearing up the whole VariableArrayType + incomplete arrays | Eli Friedman | 2008-02-15 | 1 | -20/+9 | |
| | | | | | | thing. Some cleanups that can be done independently of the fix. llvm-svn: 47158 | |||||
* | Get rid of AttributeList in the AST and use the new Attr class instead | Anders Carlsson | 2008-02-15 | 1 | -5/+6 | |
| | | | | llvm-svn: 47155 | |||||
* | Get rid of outdated code that masks type errors. Fixes PR2036. | Eli Friedman | 2008-02-15 | 1 | -10/+0 | |
| | | | | llvm-svn: 47154 | |||||
* | avoid making implicit casts that just remove typedefs. | Chris Lattner | 2008-02-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 47074 | |||||
* | Use IgnoreParenCasts. | Anders Carlsson | 2008-02-13 | 1 | -9/+1 | |
| | | | | llvm-svn: 47041 | |||||
* | Move IgnoreParenCasts to be a method on Expr. | Chris Lattner | 2008-02-13 | 2 | -18/+4 | |
| | | | | llvm-svn: 47040 | |||||
* | Fix unsafe static cast... | Steve Naroff | 2008-02-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 46980 | |||||
* | After yesterday's discussion ↵ | Steve Naroff | 2008-02-11 | 1 | -5/+2 | |
| | | | | | | | | (http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-February/001044.html), decided not to change the semantics of Type::isIncompleteType(). This commit simply changes a couple comments to reflect this decision. llvm-svn: 46970 | |||||
* | Get rid of bogus warnings when the second argument in va_start is either an ↵ | Anders Carlsson | 2008-02-11 | 1 | -3/+13 | |
| | | | | | | implicit cast expr or a paren expr. llvm-svn: 46950 | |||||
* | Add a comment/FIXME to an earlier change. | Steve Naroff | 2008-02-11 | 1 | -1/+5 | |
| | | | | llvm-svn: 46947 | |||||
* | Fix http://llvm.org/bugs/show_bug.cgi?id=1988. | Steve Naroff | 2008-02-11 | 1 | -0/+5 | |
| | | | | | | Sema::CheckInitializerListTypes() needs to ignore invalid structures. llvm-svn: 46942 | |||||
* | Fix PR1992 by computing the right type for string literals, which | Chris Lattner | 2008-02-11 | 1 | -10/+14 | |
| | | | | | | | | is an array type not a pointer type. This requires updating some diags that change and updating the code generator to handle the proper form of strings. llvm-svn: 46941 | |||||
* | Fix the type of conditionals involving void* to be self-consistent and | Eli Friedman | 2008-02-10 | 1 | -4/+16 | |
| | | | | | | | | spec-compliant. I'll put together some testcases in a bit. llvm-svn: 46937 | |||||
* | Add a diagnostics helper to remove some redundant code. | Steve Naroff | 2008-02-10 | 2 | -49/+26 | |
| | | | | llvm-svn: 46936 | |||||
* | Fix spelling in comment. | Steve Naroff | 2008-02-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 46906 | |||||
* | Fix <rdar://problem/5733511> clang doesn't emit error for const array. | Steve Naroff | 2008-02-09 | 1 | -2/+11 | |
| | | | | llvm-svn: 46905 | |||||
* | A bunch-o changes to fix <rdar://problem/5716046> incomplete implementation ↵ | Steve Naroff | 2008-02-08 | 2 | -27/+42 | |
| | | | | | | | | of ObjC class warning is incomplete As part of this fix, I made a low-level change to the text diagnostics machinery (to basically avoid printing duplicate source lines/carets when you have multiple diagnostics that refer to the same exact place). For now, this only happens with we don't have a source range (could be extended to support source ranges as well). llvm-svn: 46897 | |||||
* | Fix indentation. | Eli Friedman | 2008-02-08 | 1 | -5/+5 | |
| | | | | llvm-svn: 46873 | |||||
* | Detabify SemaExpr. My text editor defaults to 8 spaces per tab, so it | Eli Friedman | 2008-02-08 | 1 | -26/+26 | |
| | | | | | | gets kind of annoying. llvm-svn: 46872 | |||||
* | Improve diagnostic for illegal array initialization. | Eli Friedman | 2008-02-08 | 1 | -0/+6 | |
| | | | | llvm-svn: 46869 | |||||
* | Put back the top-level asm code; all tests pass now. | Anders Carlsson | 2008-02-08 | 2 | -1/+9 | |
| | | | | llvm-svn: 46868 | |||||
* | Back out 46855 for now, it causes test failures on Darwin. | Anders Carlsson | 2008-02-08 | 2 | -9/+1 | |
| | | | | llvm-svn: 46867 | |||||
* | Handle top-level asm declarations. | Anders Carlsson | 2008-02-07 | 2 | -1/+9 | |
| | | | | llvm-svn: 46855 | |||||
* | Add a FIXME for alternate address spaces. | Eli Friedman | 2008-02-07 | 1 | -0/+1 | |
| | | | | llvm-svn: 46841 | |||||
* | Implement -fms-extensions. This allows us to fuzzy parse non-standard MS ↵ | Steve Naroff | 2008-02-07 | 1 | -2/+3 | |
| | | | | | | constructs used in "windows.h". llvm-svn: 46838 | |||||
* | Make sure to propagate qualifiers through the member operator. | Eli Friedman | 2008-02-06 | 1 | -3/+12 | |
| | | | | llvm-svn: 46830 | |||||
* | move the codegen ASTConsumer out of the driver into libcodegen, | Chris Lattner | 2008-02-06 | 1 | -2/+0 | |
| | | | | | | | eliminating a bunch of forwarding methods and generally simplifying things. llvm-svn: 46792 | |||||
* | inform astconsumer about tagdecls as they are defined. | Chris Lattner | 2008-02-06 | 1 | -4/+7 | |
| | | | | llvm-svn: 46788 | |||||
* | pass the astconsumer into Sema's ctor, clean up some stuff in | Chris Lattner | 2008-02-06 | 3 | -37/+39 | |
| | | | | | | | Sema::ActOnTranslationUnitScope. The various ObjC pieces at the top of Sema.cpp should be moved into SemaObjC or something. llvm-svn: 46787 | |||||
* | rename ASTSTreamer.{h|cpp} -> ParseAST.{h|cpp} | Chris Lattner | 2008-02-06 | 1 | -3/+3 | |
| | | | | llvm-svn: 46786 | |||||
* | kill the ASTStreamer class, inlining it into its only client: clang::ParseAST | Chris Lattner | 2008-02-06 | 1 | -50/+14 | |
| | | | | llvm-svn: 46785 | |||||
* | Handle simple asm statements correctly. | Anders Carlsson | 2008-02-05 | 2 | -0/+3 | |
| | | | | llvm-svn: 46777 | |||||
* | simplify some code. | Chris Lattner | 2008-02-05 | 1 | -8/+5 | |
| | | | | llvm-svn: 46774 | |||||
* | Add experimental support for address space qualified types. Address space | Christopher Lamb | 2008-02-04 | 2 | -1/+49 | |
| | | | | | | qualifiers use the __attribute__((address_space(id))) syntax. llvm-svn: 46691 | |||||
* | Rename diagnostic to reflect it's role... | Steve Naroff | 2008-02-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 46650 | |||||
* | getPrimaryDecl can return null. | Anders Carlsson | 2008-02-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 46638 | |||||
* | It is allowed to get the address of an array subscript, even if the array ↵ | Anders Carlsson | 2008-02-01 | 1 | -10/+16 | |
| | | | | | | has the register qualifier, if the array is really a pointer. llvm-svn: 46634 | |||||
* | make some diagnostics more terse, update testcases. | Chris Lattner | 2008-02-01 | 1 | -9/+8 | |
| | | | | | | | | | | Fix Sema::ActOnInstanceMessage to correctly do things in terms of canonical types, fixing bogus errors like: NSDistantObject.m:10383:120: error: bad receiver type 'typeof((id<NSMutableCopying>)self)' id mess = ({ id __inv__ = ((void *)0); id __mb__ = _NSMessageBuilder((id <NSMutableCopying>)self, &__inv__); (void)[(__typeof__((id <NSMutableCopying>)self))__mb__ mutableCopyWithZone:((void *)0)]; if (!objc_collecting_enabled()) object_dispose(__mb__); __inv__; }); llvm-svn: 46633 | |||||
* | Sema::ActOnInstanceMessage is generally doing bad things with typedefs, but | Chris Lattner | 2008-02-01 | 1 | -8/+9 | |
| | | | | | | | | here I fix just one. The loop that rips through pointers should use getAsPointerType() not static_cast<PointerType*> to get the pointee. This fixes a crash on a large testcase. llvm-svn: 46632 | |||||
* | Remainder of the __builtin_overload feedback | Nate Begeman | 2008-01-31 | 1 | -5/+19 | |
| | | | | llvm-svn: 46601 | |||||
* | Hack Sema::MergeTypeDefDecl() to silently ignore duplicate typedef's in ↵ | Steve Naroff | 2008-01-30 | 1 | -0/+20 | |
| | | | | | | | | system headers files. A bizarre, non-standard hook that many compilers appear to implement (sigh:-). llvm-svn: 46583 | |||||
* | Implement first round of feedback on __builtin_overload | Nate Begeman | 2008-01-30 | 1 | -11/+19 | |
| | | | | llvm-svn: 46572 | |||||
* | Add TODO marker so that it is easier to search. | Devang Patel | 2008-01-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 46561 | |||||
* | Ignore __aligned__ with zero arguments in addition to __aligned__ with | Eli Friedman | 2008-01-30 | 1 | -3/+6 | |
| | | | | | | one argument. Lets stuff using pthread.h compile. llvm-svn: 46559 | |||||
* | Fix codegen for conditionals with incommpatible pointer types. Code | Eli Friedman | 2008-01-30 | 1 | -1/+7 | |
| | | | | | | | that causes this isn't really correct, but if we're going to accept this, it should come up with a consistent AST. llvm-svn: 46557 | |||||
* | Many refinements to Sema::MergeVarDecl(). This routine still needs some ↵ | Steve Naroff | 2008-01-30 | 1 | -12/+42 | |
| | | | | | | | | re-work to fully handle tentative decls. This includes a fix to bz1908. llvm-svn: 46540 | |||||
* | Rewriting of @synchronized. This has one FIXME in it. But this should allow ↵ | Fariborz Jahanian | 2008-01-29 | 1 | -1/+1 | |
| | | | | | | @sychronized to be rewritten. llvm-svn: 46533 |