- May 05, 2008
-
-
Ted Kremenek authored
highlight the most nested subexpression that appears most responsible (giving the user better diagnostic feedback). Updated test cases to illustrate this feature. Implements: <rdar://problem/5880443> llvm-svn: 50647
-
Chris Lattner authored
related to pp-expressions. Doing so is pretty simple and this patch implements it, yielding nice diagnostics like: t.c:2:7: error: division by zero in preprocessor expression #if 1 / (0 + 0) ~ ^ ~~~~~~~ t.c:5:14: error: expected ')' in preprocessor expression #if (412 + 42 ~~~~~~~~^ t.c:5:5: error: to match this '(' #if (412 + 42 ^ t.c:10:10: warning: left side of operator converted from negative value to unsigned: -42 to 18446744073709551574 #if (-42 + 0U) / -2 ~~~ ^ ~~ t.c:10:16: warning: right side of operator converted from negative value to unsigned: -2 to 18446744073709551614 #if (-42 + 0U) / -2 ~~~~~~~~~~ ^ ~~ 5 diagnostics generated. llvm-svn: 50638
-
Chris Lattner authored
the final part of PR2279 llvm-svn: 50635
-
Chris Lattner authored
llvm-svn: 50632
-
Chris Lattner authored
llvm-svn: 50631
-
- May 04, 2008
-
-
Chris Lattner authored
a) correct rejection of ',' in pp expressions. b) the precedence of ',' was wrong w.r.t. ?:. Thanks again to Neil for finding these and providing testcases. llvm-svn: 50625
-
Chris Lattner authored
for pointing this out. llvm-svn: 50624
-
Chris Lattner authored
llvm-svn: 50623
-
Chris Lattner authored
llvm-svn: 50617
-
Chris Lattner authored
Fix 'swapping' of attributes to not insert null values into the DeclAttrs map. llvm-svn: 50612
-
Chris Lattner authored
type should be internal, not weak/linkonce. llvm-svn: 50611
-
- May 03, 2008
-
-
Ted Kremenek authored
llvm-svn: 50597
-
- May 02, 2008
-
-
Ted Kremenek authored
llvm-svn: 50588
-
Fariborz Jahanian authored
protocols into class's property list and performing semantics on them for while doing so. llvm-svn: 50587
-
Ted Kremenek authored
llvm-svn: 50585
-
Ted Kremenek authored
basic warnings (dead stores, null dereferences) on the first pass. llvm-svn: 50584
-
Ted Kremenek authored
Bug fix in StmtPrinter to handle pretty-printing ObjCMessageExprs involving variadic methods (also did some cosmetic cleanups in the printing output). llvm-svn: 50583
-
Ted Kremenek authored
llvm-svn: 50579
-
Ted Kremenek authored
llvm-svn: 50557
-
Ted Kremenek authored
llvm-svn: 50556
-
Ted Kremenek authored
llvm-svn: 50553
-
Ted Kremenek authored
llvm-svn: 50549
-
Steve Naroff authored
Replace Sema::CheckInitializerListTypes() with a helper class (InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I also moved the code to SemaInit.cpp, to help reduce clutter in SemaDecl.cpp. NOTE: This work is incomplete and still fails many tests (as a result, it isn't enabled yet). Nevertheless, I wanted to check it in so I can work on it from home. llvm-svn: 50544
-
- May 01, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 50542
-
Ted Kremenek authored
Correctly invalidate reference count state when passing objects by reference in message expressions we don't understand. llvm-svn: 50541
-
Argyrios Kyrtzidis authored
Implicitly defined functions were getting the DeclContext of the function where they appeared, causing the bug: http://llvm.org/bugs/show_bug.cgi?id=2266. Fix it by making implicitly defined functions get the DeclContext of translation unit. llvm-svn: 50538
-
Ted Kremenek authored
Added temporary fix for Obj-C exception handling in the static analyzer: treat these as panic functions. llvm-svn: 50535
-
Ted Kremenek authored
llvm-svn: 50533
-
Fariborz Jahanian authored
llvm-svn: 50532
-
Ted Kremenek authored
llvm-svn: 50530
-
Ted Kremenek authored
Use pointer swizziling to unify in ObjCMessageExpr the receiver and classname "fields". This saves us a pointer. Implemented serialization for ObjCMessageExpr. llvm-svn: 50528
-
Ted Kremenek authored
should catch this one easily. llvm-svn: 50526
-
Ted Kremenek authored
lval passed as an argument. Fix: Inverted diagnostic messages. llvm-svn: 50513
-
Ted Kremenek authored
llvm-svn: 50512
-
Steve Naroff authored
Extend InitListExpr API/IMPL to support arbitrary add/remove (in support of the initializer rewrite I am doing). llvm-svn: 50511
-
Fariborz Jahanian authored
llvm-svn: 50508
-
Ted Kremenek authored
a CF memory leak occurred with GC enabled, etc. llvm-svn: 50507
-
Ted Kremenek authored
llvm-svn: 50503
-
Ted Kremenek authored
llvm-svn: 50502
-
- Apr 30, 2008
-
-
Ted Kremenek authored
llvm-svn: 50500
-