- May 03, 2009
-
-
Eli Friedman authored
llvm-svn: 70664
-
Chris Lattner authored
llvm-svn: 70663
-
Chris Lattner authored
no functionality change. llvm-svn: 70662
-
Ted Kremenek authored
Convert ArgEffects from an std::vector to an ImmutableMap. This will make it much easier to clean up the summary generation logic with annotations. llvm-svn: 70660
-
Eli Friedman authored
reason for adding these is to error out in CodeGen when trying to generate them instead of silently emitting a call to a non-existent function. (Note that it is not valid to lower these to setjmp/longjmp; in addition to that lowering being different from the intent, setjmp and longjmp require a larger buffer.) llvm-svn: 70658
-
Ted Kremenek authored
llvm-svn: 70657
-
Douglas Gregor authored
fix-it hint is much worse than no fix-it hint. (Fixes PR4084). When we need to truncate a source line to fix in the terminal, make sure to take the width of the fix-it information into account, too. llvm-svn: 70656
-
Douglas Gregor authored
show an ellipsis where we have removed text. An example: /Users/dgregor/Projects/llvm/tools/clang/test/Misc/message-length.c:18:120: warning: comparison of distinct pointer types ('int *' and 'float *') ...a_func_to_call(ip == FloatPointer, ip[ALongIndexName], ... ~~ ^ ~~~~~~~~~~~~ llvm-svn: 70655
-
Douglas Gregor authored
word-wrapping by default in Emacs; yay!). Thanks, Daniel. Use LLVM's System layer rather than calling isatty() directly. Fix a thinko in printing the indentation string that was causing some weird output. llvm-svn: 70654
-
Daniel Dunbar authored
an interface. llvm-svn: 70652
-
Zhongxing Xu authored
simplify the retrieve logic. llvm-svn: 70651
-
- May 02, 2009
-
-
Daniel Dunbar authored
recognize the architecture. - This is an attempt to force gcc to the write target. - PR4094. llvm-svn: 70647
-
Daniel Dunbar authored
non-Darwin linker (sorry Gold + LTO-plugin users). llvm-svn: 70641
-
Chris Lattner authored
them with -Werror. Custom diags cannot be mapped, and this makes -Werror cause a determinstic crash for the checker and other clients of the custom diagnostics machinery. rdar://6816191 llvm-svn: 70639
-
Ted Kremenek authored
occurs in GC mode. llvm-svn: 70638
-
Anders Carlsson authored
llvm-svn: 70637
-
Daniel Dunbar authored
- Patch by Alex Hornung! llvm-svn: 70635
-
Anders Carlsson authored
llvm-svn: 70634
-
Douglas Gregor authored
into the left-hand side of an assignment expression. This completes most of PR3500; the only remaining part is to deal with the GCC-specific implementation-defined behavior for "unsigned long" (and other) bit-fields. llvm-svn: 70623
-
-
Chris Lattner authored
the runtime version number onto it, so that the debugger knows it's an objc interface, not a C struct. rdar://6848435 llvm-svn: 70618
-
Chris Lattner authored
llvm-svn: 70617
-
-
Douglas Gregor authored
Fix bitfield promotions in several more cases. We don't seem to work hard enough at determining whether an expression is a bitfield or not, yet. llvm-svn: 70613
-
Ted Kremenek authored
expressions not yet properly handled by the CFGBuilder. This failure resulted in a null CFGBlock* being used in rare cases (causing a crash). llvm-svn: 70612
-
Mike Stump authored
llvm-svn: 70601
-
Douglas Gregor authored
might be wider than we're supposed to print. In this case, we try to select the "important" subregion of the source line, which contains everything that we want to show (e.g., with underlining and the caret itself) and tries to also contain some of the context. From the fantastically long line in the test case, we get an error message that slices down to this: message-length.c:18:120: warning: comparison of distinct pointer types ('int *' and 'float *') a_func_to_call(ip == FloatPointer, ip[ALongIndexName], ~~ ^ ~~~~~~~~~~~~ There are a bunch of gee-it-sounds-good heuristics in here, which seem to do well on the various simple tests I've thrown at it. However, we're going to need to look at a bunch more diagnostics to tweak these heuristics. This is the second part of <rdar://problem/6711348>. Almost there! llvm-svn: 70597
-
Anders Carlsson authored
llvm-svn: 70595
-
Anders Carlsson authored
llvm-svn: 70586
-
Ted Kremenek authored
GRCoreEngine. This tends to result in shorter paths for pathological cases. llvm-svn: 70585
-
Anders Carlsson authored
llvm-svn: 70584
-
- May 01, 2009
-
-
Anders Carlsson authored
llvm-svn: 70579
-
Douglas Gregor authored
Also, put a line of whitespace between the diagnostic and the source code/caret line when the start of the actual source code text lines up (or nearly lines up) with the most recent line of the diagnostic. For example, here it's okay for the last line of the diagnostic to be (vertically) next to the source line, because there is horizontal whitespace to separate them: decl-expr-ambiguity.cpp:12:16: error: function-style cast to a builtin type can only take one argument typeof(int)(a,5)<<a; However, here is a case where we need the vertical separation (since there is no horizontal separation): message-length.c:10:46: warning: incompatible pointer types initializing 'void (int, float, char, float)', expected 'int (*)(int, float, short, float)' int (*fp1)(int, float, short, float) = f; This is part one of <rdar://problem/6711348>. llvm-svn: 70578
-
Douglas Gregor authored
llvm-svn: 70571
-
Fariborz Jahanian authored
class/protocol and implementation which could be an imm. implementation or down in the inheritance hierarchy. llvm-svn: 70568
-
Anders Carlsson authored
llvm-svn: 70567
-
Anders Carlsson authored
llvm-svn: 70566
-
Ted Kremenek authored
- Don't layer TypedViewRegions on top of any region except SymbolicRegions and AllocaRegions. This follows from my offline discussion within Zhongxing about how TypedViewRegions really only represent memory getting re-appropriated for a new purpose. Fallout from this change: - Move test case from xfail_rdar_6440393.m to misc-ps-64.m (it now passes). - test/Analysis/fields.c now fails for region store (crash). Marking XFAIL. - test/Analysis/rdar-6441136-region.c now fails (only runs with region store). Marking XFAIL. Diagnosis: The analyzer now correctly identifies an early out-of-bounds memory access then the one flagged: rdar-6541136-region.c:17:3: warning: Load or store into an out-of-bound memory position. *p = 1; ^~ Changing the line: char *p = (void*) &wonky[1]; to char *p = (void*) &wonky[0]; (which should delay the buffer overrun) causes region store to crash, probably because it expects a TypedViewRegion. - test/Analysis/casts.c (region store) now fails (crash). Marking XFAIL. llvm-svn: 70565
-
Ted Kremenek authored
llvm-svn: 70564
-
Ted Kremenek authored
llvm-svn: 70563
-