- Dec 19, 2007
-
-
Ted Kremenek authored
both Preprocessor and ASTContext, we no longer need to explicitly pass MainFileID around in function calls that also pass either Preprocessor or ASTContext. This resulted in some nice cleanups in the ASTConsumers and the driver. llvm-svn: 45228
-
Steve Naroff authored
Various tweaks to the get/lookup instance/class method API's. llvm-svn: 45224
-
Chris Lattner authored
llvm-svn: 45205
-
Chris Lattner authored
llvm-svn: 45204
-
Fariborz Jahanian authored
protocol list. llvm-svn: 45203
-
Anders Carlsson authored
llvm-svn: 45202
-
Steve Naroff authored
Revert Anders r45191 commit...it broke several of the tests. llvm-svn: 45199
-
Anders Carlsson authored
llvm-svn: 45195
-
Anders Carlsson authored
llvm-svn: 45191
-
Chris Lattner authored
llvm-svn: 45189
-
Chris Lattner authored
llvm-svn: 45188
-
- Dec 18, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 45174
-
Chris Lattner authored
llvm-svn: 45152
-
Steve Naroff authored
Add DefaultFunctionArrayConversion() to the indirection operator in Sema::ActOnUnaryOp(). This fixes a bug Chris forwarded from Oliver Hunt... typedef struct { char name[100]; } entry; char f1(entry *e) { return *e->name; } llvm-svn: 45148
-
Steve Naroff authored
Fixe bogus error for variable argument methods. Sema::ObjcGetTypeForMethodDefinition() wasn't preserving the isVariadic boolean. Another fix is to avoid synthsizing the function decl entirely, however this is a separate issue that I don't want to deal with now. Also added a FIXME to Sema::CheckFunctionCall(), which is currently emitting a bogus warning. llvm-svn: 45146
-
Steve Naroff authored
Improve how we find private method decls. This involved: - Changed Sema::ObjcActOnStartOfMethodDef() to register the methods with the global pools. - Changed Sema::ActOnInstanceMessage() to look in global pools (should be much less error prone). - Added a test case to message.m (for lookup that was broken). Misc changes while I was investigating this... - Changed Sema::ActOnAtEnd() to call AddFactoryMethodToGlobalPool (this looked like a cut/paste error). - Added a comment and tweaked another where I was using the first person. llvm-svn: 45142
-
- Dec 17, 2007
-
-
Fariborz Jahanian authored
the protocol list (id<P,...> types). llvm-svn: 45121
-
Ted Kremenek authored
following hold: (1) A vprintf-like function is called that takes the argument list via a via_list argument. (2) The format string is a non-literal that is the parameter value of the enclosing function, e.g: void logmessage(const char *fmt,...) { va_list ap; va_start(ap,fmt); fprintf(fmt,ap); // Do not emit a warning. } In the future this special case will be enhanced to consult the "format" attribute attached to a function declaration instead of just allowing a blank check for all function parameters to be used as format strings to vprintf-like functions. This will happen when more support for attributes becomes available. llvm-svn: 45114
-
Ted Kremenek authored
llvm-svn: 45110
-
- Dec 16, 2007
-
-
Steve Naroff authored
Sema::ActOnMemberReferenceExpr() needs to perform the default conversions. Bug and test case provided by Carl Lewis. llvm-svn: 45078
-
- Dec 15, 2007
-
-
Steve Naroff authored
- Remove getInstanceMethods/getClassMethods API on ObjcInterfaceDecl, ObjcProtocolDecl, and ObjcCategoryDecl. These methods are replaced by the respective iterators on each class. - Add getInstanceMethodForSelector to ObjcInterfaceDecl, ObjcProtocolDecl, and ObjcCatgoryDecl. This hook will do a "shallow" lookup. This is a convenience method that reducing some of the iterator usage. - Various changes to convert all clients to the above API's... llvm-svn: 45046
-
- Dec 13, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 45014
-
Steve Naroff authored
Sema::ActOnFinishFunctionBody(): Since we no longer synthesize a FunctionDecl for each method, remove the unconditional initialization to 0 and corresponding comment. llvm-svn: 45008
-
Chris Lattner authored
Don't do integer promotions of LHS for compound shift assignment. The LHS has to be a modifiable lvalue. llvm-svn: 44993
-
Fariborz Jahanian authored
llvm-svn: 44964
-
- Dec 12, 2007
-
-
Ted Kremenek authored
Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation. Added many utility methods to FullSourceLoc to provide shorthand for: FullLoc.getManager().someMethod(FullLoc.getLocation()); instead we have: FullLoc.someMethod(); Modified TextDiagnostics (and related classes) to use this short-hand. llvm-svn: 44957
-
Chris Lattner authored
llvm-svn: 44945
-
Chris Lattner authored
llvm-svn: 44941
-
Chris Lattner authored
llvm-svn: 44938
-
Chris Lattner authored
llvm-svn: 44925
-
Chris Lattner authored
int test(int x, long long y) { return x << y; } we now realize the type of the shift is int, not long long. This fixes a fixme from june. llvm-svn: 44912
-
Chris Lattner authored
this is passed to sema and ignored there, so the second part of the string will not make it into the AST. Passing to Fariborz to finish Sema + AST construction. llvm-svn: 44898
-
Chris Lattner authored
return a loc. llvm-svn: 44890
-
- Dec 11, 2007
-
-
Ted Kremenek authored
SourceManager is passed by reference, allowing the SourceManager to be associated with a specific translation unit, and not the entire execution of the driver. Modified all users of Diagnostics to comply with this new interface. Integrated SourceManager as a member variable of TargetInfo. TargetInfo will eventually be associated with a single translation unit (just like SourceManager). Made the SourceManager reference in ASTContext private. Provided accessor getSourceManager() for clients to use instead. Modified clients to comply with new interface. llvm-svn: 44878
-
Fariborz Jahanian authored
llvm-svn: 44872
-
Steve Naroff authored
Avoid the first person in a recently added comment. llvm-svn: 44843
-
Steve Naroff authored
Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC). llvm-svn: 44840
-
Steve Naroff authored
Explicitly set the string literal type from "char *" to "constant array of char". At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy. That said, I've commented out the two lines in globalinit.c that are causing problems. Chris, please have a look...thanks! llvm-svn: 44823
-
- Dec 10, 2007
-
-
Steve Naroff authored
Add support for initializing char arrays from string literals. Adapted from a patch by Anders Carlsson. llvm-svn: 44816
-
- Dec 09, 2007
-
-
Chris Lattner authored
C99 6.5.6. llvm-svn: 44746
-