- Nov 10, 2009
-
-
Ted Kremenek authored
Make -Wsemicolon-before-method-body opt-in (and part of -Wextra). Addresses <rdar://problem/7381735>. llvm-svn: 86731
-
- Nov 07, 2009
-
-
Steve Naroff authored
Still a work in progress... llvm-svn: 86323
-
- Nov 06, 2009
-
-
Fariborz Jahanian authored
(radar 7370882). llvm-svn: 86291
-
Chris Lattner authored
llvm-svn: 86240
-
- Nov 04, 2009
-
-
John McCall authored
appears in a deprecated context. In the new strategy, we emit the warnings as usual unless we're currently parsing a declaration, where "declaration" is restricted to mean a decl group or a few special cases in Objective C. If we *are* parsing a declaration, we queue up the deprecation warnings until the declaration has been completely parsed, and then emit them only if the decl is not deprecated. We also standardize the bookkeeping for deprecation so as to avoid special cases. llvm-svn: 85998
-
- Nov 03, 2009
-
-
John McCall authored
it easier to track within Sema whether the parser is parsing a declaration. llvm-svn: 85855
-
- Oct 20, 2009
-
-
Fariborz Jahanian authored
Fixes <rdar://problem/7308503> clang should disallow the trailing semicolon in method definitions llvm-svn: 84645
-
- Oct 18, 2009
-
-
Daniel Dunbar authored
llvm-svn: 84436
-
- Oct 08, 2009
-
-
Steve Naroff authored
llvm-svn: 83579
-
- Sep 29, 2009
-
-
Argyrios Kyrtzidis authored
llvm-svn: 83091
-
- Sep 09, 2009
-
-
Mike Stump authored
llvm-svn: 81346
-
- Jun 24, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 74080
-
- Jun 05, 2009
-
-
Fariborz Jahanian authored
change. More to follow. llvm-svn: 72951
-
- May 21, 2009
-
-
Douglas Gregor authored
redundant functionality. The result (ASTOwningVector) lives in clang/Parse/Ownership.h and is used by both the parser and semantic analysis. No intended functionality change. llvm-svn: 72214
-
Jay Foad authored
llvm-svn: 72210
-
- May 17, 2009
-
-
Anders Carlsson authored
llvm-svn: 71989
-
- May 04, 2009
-
-
Ted Kremenek authored
return type and the selector. This is inconsistent with C functions (where such attributes would be placed on the return type, not the the FunctionDecl), and is inconsistent with what people are use to seeing. llvm-svn: 70878
-
- Apr 30, 2009
-
-
Ted Kremenek authored
appear between the return type and the selector. This is a separate code path from regular attribute processing, as we only want to (a) accept only a specific set of attributes in this place and (b) want to distinguish to clients the context in which an attribute was added to an ObjCMethodDecl. Currently, the attribute 'objc_ownership_returns' is the only attribute that uses this new feature. Shortly I will add a warning for 'objc_ownership_returns' to be placed at the end of a method declaration. llvm-svn: 70504
-
Ted Kremenek authored
the return type and selector. Haven't hooked this up to Sema yet. llvm-svn: 70501
-
- Apr 12, 2009
-
-
rdar://6771034Chris Lattner authored
list of another protocol definition. This warning is very noisy and GCC doesn't produce it so existing code doesn't expect it. llvm-svn: 68894
-
- Apr 11, 2009
-
-
Chris Lattner authored
information in a little struct instead of individually. While we're at it, add per-argument loc info and attribute info. llvm-svn: 68871
-
Chris Lattner authored
since it only parses one identifier out of the selector, not the whole thing. llvm-svn: 68867
-
- Apr 08, 2009
-
-
Fariborz Jahanian authored
used as receiver. llvm-svn: 68631
-
-
- Mar 29, 2009
-
-
Chris Lattner authored
productions (except the already broken ObjC cases like @class X,Y;) in the parser that can produce more than one Decl return a DeclGroup instead of a Decl, etc. This allows elimination of the Decl::NextDeclarator field, and exposes various clients that should look at all decls in a group, but which were only looking at one (such as the dumper, printer, etc). These have been fixed. Still TODO: 1) there are some FIXME's in the code about potentially using DeclGroup for better location info. 2) ParseObjCAtDirectives should return a DeclGroup due to @class etc. 3) I'm not sure what is going on with StmtIterator.cpp, or if it can be radically simplified now. 4) I put a truly horrible hack in ParseTemplate.cpp. I plan to bring up #3/4 on the mailing list, but don't plan to tackle #1/2 in the short term. llvm-svn: 68002
-
- Mar 28, 2009
-
-
Chris Lattner authored
pointer. Its purpose in life is to be a glorified void*, but which does not implicitly convert to void* or other OpaquePtr's with a different UID. Introduce Action::DeclPtrTy which is a typedef for OpaquePtr<0>. Change the entire parser/sema interface to use DeclPtrTy instead of DeclTy*. This makes the C++ compiler enforce that these aren't convertible to other opaque types. We should also convert ExprTy, StmtTy, TypeTy, AttrTy, BaseTy, etc, but I don't plan to do that in the short term. The one outstanding known problem with this patch is that we lose the bitmangling optimization where ActionResult<DeclPtrTy> doesn't know how to bitmangle the success bit into the low bit of DeclPtrTy. I will rectify this with a subsequent patch. llvm-svn: 67952
-
- Mar 18, 2009
-
-
Fariborz Jahanian authored
whose sema decl is at the translation unit. llvm-svn: 67249
-
- Mar 12, 2009
-
-
Fariborz Jahanian authored
the selector for the property setter. llvm-svn: 66834
-
- Mar 10, 2009
-
-
Steve Naroff authored
llvm-svn: 66551
-
- Mar 09, 2009
-
-
Steve Naroff authored
This fixes <rdar://problem/6496506> Implement class setter/getter for properties. llvm-svn: 66465
-
- Mar 05, 2009
-
-
Chris Lattner authored
Introduce a new PrettyStackTraceDecl. Use it to add the top level LLVM IR generation stuff in Backend.cpp to stack traces. We now get crashes like: Stack dump: 0. Program arguments: clang t.c -emit-llvm 1. <eof> parser at end of file 2. t.c:1:5: LLVM IR generation of declaration 'a' Abort for IR generation crashes. llvm-svn: 66153
-
Chris Lattner authored
Stack dump: 0. message.m:53:13: in compound statement ('{}') 1. message.m:53:13: parsing Objective-C method 'xx' 2. clang message.m llvm-svn: 66121
-
- Mar 04, 2009
-
-
Fariborz Jahanian authored
c-style functions declared inside objc @implementations. llvm-svn: 66087
-
- Mar 03, 2009
-
-
rdar://problem/6640991Steve Naroff authored
Also necessary to fix: <rdar://problem/6632061> [sema] non object types should not be allowed in @catch statements <rdar://problem/6252237> [sema] qualified id should be disallowed in @catch statements llvm-svn: 65964
-
- Mar 02, 2009
-
-
rdar://problem/6636803Steve Naroff authored
Parser::ParseObjCMethodDefinition(): Make sure we don't exit the BodyScope until ActOnFinishFunctionBody() is complete. llvm-svn: 65880
-
- Feb 28, 2009
-
-
Steve Naroff authored
llvm-svn: 65695
-
- Feb 18, 2009
-
-
Douglas Gregor authored
us whether there was an error in trying to parse a type-name (type-id in C++). This allows propagation of errors further in the compiler, suppressing more bogus error messages. llvm-svn: 64922
-
Chris Lattner authored
llvm-svn: 64893
-
- Feb 15, 2009
-
-
Chris Lattner authored
llvm-svn: 64609
-
Chris Lattner authored
llvm-svn: 64608
-