- Sep 17, 2008
-
-
Steve Naroff authored
Sema::CheckReturnStackAddr(): Make sure we skip over implicit casts. Added some more test cases... llvm-svn: 56254
-
- Sep 10, 2008
-
-
Steve Naroff authored
llvm-svn: 56064
-
- Sep 06, 2008
-
-
Steve Naroff authored
llvm-svn: 55862
-
- Sep 03, 2008
-
-
Daniel Dunbar authored
- Currently CodeGen always returns a conservative value for this (-1 or 0 depending on the context). llvm-svn: 55735
-
- Aug 19, 2008
-
-
Argyrios Kyrtzidis authored
Add ExplicitCastExpr to replace the current CastExpr, and have ImplicitCastExpr and ExplicitCastExpr derive from a common base class (CastExpr): Expr -> CastExpr -> ExplicitCastExpr -> ImplicitCastExpr llvm-svn: 54955
-
- Aug 11, 2008
-
-
Daniel Dunbar authored
- Kill unnecessary #includes in .cpp files. This is an automatic sweep so some things removed are actually used, but happen to be included by a previous header. I tried to get rid of the obvious examples and this was the easiest way to trim the #includes in one fell swoop. - We now return to regularly scheduled development. llvm-svn: 54632
-
Daniel Dunbar authored
- Drop {Decl.h,DeclObjC.h,IdentifierTable.h} from Expr.h - Moved Sema::getCurMethodDecl() out of line (dependent on ObjCMethodDecl via dyn_cast). llvm-svn: 54629
-
- Aug 10, 2008
-
-
Chris Lattner authored
llvm-svn: 54607
-
- Aug 07, 2008
-
-
rdar://problem/6125909Ted Kremenek authored
Unify logic in return-of-stack-check (Sema) for casts and implicit casts. llvm-svn: 54439
-
- Jul 27, 2008
-
-
Chris Lattner authored
ASTContext::getCanonicalType instead (PR2189) llvm-svn: 54105
-
- Jul 26, 2008
-
-
Ted Kremenek authored
llvm-svn: 54067
-
- Jul 22, 2008
-
-
Daniel Dunbar authored
This closes <rdar://problem/6080720>, support for __builtin_constant_p has been filed separately. llvm-svn: 53885
-
- Jul 09, 2008
-
-
Ted Kremenek authored
llvm-svn: 53332
-
- Jun 30, 2008
-
-
Chris Lattner authored
1) add a new ASTContext::getFloatTypeSemantics method. 2) Use it from SemaExpr.cpp, CodeGenTypes.cpp and other places. 3) Change the TargetInfo.h get*Format methods to return their fltSemantics byref instead of by pointer. 4) Change CodeGenFunction::EmitBuiltinExpr to allow builtins which sometimes expand specially and othertimes fall back to libm. 5) Add support for __builtin_nan("") to codegen, cases that don't pass in an empty string are currently lowered to libm calls. 6) Fix codegen of __builtin_infl. llvm-svn: 52914
-
- Jun 28, 2008
-
-
Argyrios Kyrtzidis authored
Replace CurFunctionDecl and CurMethodDecl with methods getCurFunctionDecl() and getCurMethodDecl() that return the appropriate Decl through CurContext. llvm-svn: 52852
-
- Jun 16, 2008
-
-
Ted Kremenek authored
Patch by Nikita Zhuk! llvm-svn: 52336
-
- May 20, 2008
-
-
Eli Friedman authored
Sema. No codegen yet. llvm-svn: 51307
-
- May 16, 2008
-
-
Eli Friedman authored
llvm-svn: 51196
-
Eli Friedman authored
llvm-svn: 51195
-
Ted Kremenek authored
in Sema::CheckFunctionCall: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080512/005706.html The bug was that the logic from the helper methods used by CheckFunctionCall were being inverted (a subtle bug). This would cause the parser to discard any valid AST nodes involving several builtins (see patch). This removes the last regression failure I'm seeing in the test suite: Analysis-Apple/NoReturn. llvm-svn: 51168
-
- May 14, 2008
-
-
Eli Friedman authored
expressing the full flexibility of the LLVM shufflevector instruction. The expected immediate usage is in *mmintrin.h, so that they don't depend on the mess of gcc-inherited (and not completely implemented) shuffle builtins. llvm-svn: 51113
-
- Mar 16, 2008
-
-
Chris Lattner authored
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
-
- Mar 03, 2008
-
-
Ted Kremenek authored
llvm-svn: 47843
-
- Feb 13, 2008
-
-
Anders Carlsson authored
llvm-svn: 47041
-
Chris Lattner authored
llvm-svn: 47040
-
- Feb 11, 2008
-
-
Anders Carlsson authored
Get rid of bogus warnings when the second argument in va_start is either an implicit cast expr or a paren expr. llvm-svn: 46950
-
- Jan 17, 2008
-
-
Ted Kremenek authored
llvm-svn: 46134
-
Ted Kremenek authored
Refactored the use of this method into both the Sema module and Analysis module, which were using their own static functions that did the same thing. llvm-svn: 46129
-
- Jan 07, 2008
-
-
Ted Kremenek authored
some naming inconsistencies in the names of classes pertaining to Objective-C support in clang. llvm-svn: 45715
-
- Dec 29, 2007
-
-
Chris Lattner authored
discussion of this change. llvm-svn: 45410
-
- Dec 28, 2007
-
-
Chris Lattner authored
llvm-svn: 45382
-
Chris Lattner authored
llvm-svn: 45381
-
Chris Lattner authored
and OwningPtr instead of constructing only after all of sema is done. This has a couple of effects: 1. it fixes memory leaks from all the error cases in sema 2. it simplifies the code significantly. The cost of this is that the error case now new's and delete's an expr where it did not before, but we don't care about the perf of the error case. llvm-svn: 45380
-
- Dec 20, 2007
-
-
Fariborz Jahanian authored
are due to arrive. llvm-svn: 45244
-
Chris Lattner authored
llvm-svn: 45239
-
Chris Lattner authored
llvm-svn: 45235
-
Chris Lattner authored
llvm-svn: 45234
-
- Dec 18, 2007
-
-
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
-
- Dec 17, 2007
-
-
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
-