- May 05, 2008
-
-
Ted Kremenek authored
Added test case for NSMakeCollectable. llvm-svn: 50653
-
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
llvm-svn: 50639
-
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
pedantic error. Perhaps I should add a class of 'extension' that is 'extension that warns by default', which would be cleaner. llvm-svn: 50633
-
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
-
Chris Lattner authored
llvm-svn: 50610
-
Chris Lattner authored
llvm-svn: 50609
-
Chris Lattner authored
llvm-svn: 50608
-
- May 03, 2008
-
-
Ted Kremenek authored
llvm-svn: 50598
-
Ted Kremenek authored
llvm-svn: 50597
-
Ted Kremenek authored
prefix for all files. llvm-svn: 50592
-
- May 02, 2008
-
-
Fariborz Jahanian authored
llvm-svn: 50589
-
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: 50581
-
Ted Kremenek authored
llvm-svn: 50580
-
Ted Kremenek authored
llvm-svn: 50579
-
Ted Kremenek authored
llvm-svn: 50577
-
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
-
Ted Kremenek authored
llvm-svn: 50540
-
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
-