summaryrefslogtreecommitdiffstats
path: root/clang/Sema
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't call non-existent method... sorry about the spam; the fix seemed Eli Friedman2008-02-151-1/+1
| | | | | | trivial, but I forgot that method doesn't exist yet. llvm-svn: 47175
* Get rid of unused variable warning.Eli Friedman2008-02-151-1/+1
| | | | llvm-svn: 47174
* Split out incomplete arrays from VariableArrayType into Eli Friedman2008-02-152-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 Friedman2008-02-151-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 insteadAnders Carlsson2008-02-151-5/+6
| | | | llvm-svn: 47155
* Get rid of outdated code that masks type errors. Fixes PR2036.Eli Friedman2008-02-151-10/+0
| | | | llvm-svn: 47154
* avoid making implicit casts that just remove typedefs.Chris Lattner2008-02-131-1/+1
| | | | llvm-svn: 47074
* Use IgnoreParenCasts.Anders Carlsson2008-02-131-9/+1
| | | | llvm-svn: 47041
* Move IgnoreParenCasts to be a method on Expr.Chris Lattner2008-02-132-18/+4
| | | | llvm-svn: 47040
* Fix unsafe static cast...Steve Naroff2008-02-121-2/+2
| | | | llvm-svn: 46980
* After yesterday's discussion ↵Steve Naroff2008-02-111-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 Carlsson2008-02-111-3/+13
| | | | | | implicit cast expr or a paren expr. llvm-svn: 46950
* Add a comment/FIXME to an earlier change.Steve Naroff2008-02-111-1/+5
| | | | llvm-svn: 46947
* Fix http://llvm.org/bugs/show_bug.cgi?id=1988.Steve Naroff2008-02-111-0/+5
| | | | | | Sema::CheckInitializerListTypes() needs to ignore invalid structures. llvm-svn: 46942
* Fix PR1992 by computing the right type for string literals, whichChris Lattner2008-02-111-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 Friedman2008-02-101-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 Naroff2008-02-102-49/+26
| | | | llvm-svn: 46936
* Fix spelling in comment.Steve Naroff2008-02-091-1/+1
| | | | llvm-svn: 46906
* Fix <rdar://problem/5733511> clang doesn't emit error for const array.Steve Naroff2008-02-091-2/+11
| | | | llvm-svn: 46905
* A bunch-o changes to fix <rdar://problem/5716046> incomplete implementation ↵Steve Naroff2008-02-082-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 Friedman2008-02-081-5/+5
| | | | llvm-svn: 46873
* Detabify SemaExpr. My text editor defaults to 8 spaces per tab, so it Eli Friedman2008-02-081-26/+26
| | | | | | gets kind of annoying. llvm-svn: 46872
* Improve diagnostic for illegal array initialization.Eli Friedman2008-02-081-0/+6
| | | | llvm-svn: 46869
* Put back the top-level asm code; all tests pass now.Anders Carlsson2008-02-082-1/+9
| | | | llvm-svn: 46868
* Back out 46855 for now, it causes test failures on Darwin.Anders Carlsson2008-02-082-9/+1
| | | | llvm-svn: 46867
* Handle top-level asm declarations.Anders Carlsson2008-02-072-1/+9
| | | | llvm-svn: 46855
* Add a FIXME for alternate address spaces.Eli Friedman2008-02-071-0/+1
| | | | llvm-svn: 46841
* Implement -fms-extensions. This allows us to fuzzy parse non-standard MS ↵Steve Naroff2008-02-071-2/+3
| | | | | | constructs used in "windows.h". llvm-svn: 46838
* Make sure to propagate qualifiers through the member operator.Eli Friedman2008-02-061-3/+12
| | | | llvm-svn: 46830
* move the codegen ASTConsumer out of the driver into libcodegen,Chris Lattner2008-02-061-2/+0
| | | | | | | eliminating a bunch of forwarding methods and generally simplifying things. llvm-svn: 46792
* inform astconsumer about tagdecls as they are defined.Chris Lattner2008-02-061-4/+7
| | | | llvm-svn: 46788
* pass the astconsumer into Sema's ctor, clean up some stuff in Chris Lattner2008-02-063-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 Lattner2008-02-061-3/+3
| | | | llvm-svn: 46786
* kill the ASTStreamer class, inlining it into its only client: clang::ParseASTChris Lattner2008-02-061-50/+14
| | | | llvm-svn: 46785
* Handle simple asm statements correctly.Anders Carlsson2008-02-052-0/+3
| | | | llvm-svn: 46777
* simplify some code.Chris Lattner2008-02-051-8/+5
| | | | llvm-svn: 46774
* Add experimental support for address space qualified types. Address spaceChristopher Lamb2008-02-042-1/+49
| | | | | | qualifiers use the __attribute__((address_space(id))) syntax. llvm-svn: 46691
* Rename diagnostic to reflect it's role...Steve Naroff2008-02-011-1/+1
| | | | llvm-svn: 46650
* getPrimaryDecl can return null.Anders Carlsson2008-02-011-1/+1
| | | | llvm-svn: 46638
* It is allowed to get the address of an array subscript, even if the array ↵Anders Carlsson2008-02-011-10/+16
| | | | | | has the register qualifier, if the array is really a pointer. llvm-svn: 46634
* make some diagnostics more terse, update testcases.Chris Lattner2008-02-011-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, butChris Lattner2008-02-011-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 feedbackNate Begeman2008-01-311-5/+19
| | | | llvm-svn: 46601
* Hack Sema::MergeTypeDefDecl() to silently ignore duplicate typedef's in ↵Steve Naroff2008-01-301-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_overloadNate Begeman2008-01-301-11/+19
| | | | llvm-svn: 46572
* Add TODO marker so that it is easier to search.Devang Patel2008-01-301-1/+1
| | | | llvm-svn: 46561
* Ignore __aligned__ with zero arguments in addition to __aligned__ with Eli Friedman2008-01-301-3/+6
| | | | | | one argument. Lets stuff using pthread.h compile. llvm-svn: 46559
* Fix codegen for conditionals with incommpatible pointer types. Code Eli Friedman2008-01-301-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 Naroff2008-01-301-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 Jahanian2008-01-291-1/+1
| | | | | | @sychronized to be rewritten. llvm-svn: 46533
OpenPOWER on IntegriCloud