- Mar 15, 2012
-
-
Anna Zaks authored
BugVisitor DiagnosticPieces. When checkers create a DiagnosticPieceEvent, they can supply an extra string, which will be concatenated with the call exit message for every call on the stack between the diagnostic event and the final bug report. (This is a simple version, which could be/will be further enhanced.) For example, this is used in Malloc checker to produce the ", which allocated memory" in the following example: static char *malloc_wrapper() { // 2. Entered call from 'use' return malloc(12); // 3. Memory is allocated } void use() { char *v; v = malloc_wrapper(); // 1. Calling 'malloc_wrappers' // 4. Returning from 'malloc_wrapper', which allocated memory } // 5. Memory is never released; potential memory leak llvm-svn: 152837
-
David Blaikie authored
llvm-svn: 152835
-
Fariborz Jahanian authored
llvm-svn: 152830
-
Douglas Gregor authored
llvm-svn: 152826
-
Argyrios Kyrtzidis authored
llvm-svn: 152823
-
Argyrios Kyrtzidis authored
-When printing location avoid printing the filename if it is same as the main file, not just if it has '.h' extension. -Make sure we allocate enough bytes for storing as string a huge line number. llvm-svn: 152821
-
Argyrios Kyrtzidis authored
to avoid a stack overflow with extreme cases. Part of rdar://10941790. llvm-svn: 152820
-
Argyrios Kyrtzidis authored
This allows us to handle extreme cases of chained binary operators without causing stack overflow. The binary operators that are handled with the data recursive evaluator are comma, logical, or operators that have operands with integral or enumeration type. Part of rdar://10941790. llvm-svn: 152819
-
Argyrios Kyrtzidis authored
llvm-svn: 152818
-
Fariborz Jahanian authored
for @protocol expression into their own section. llvm-svn: 152808
-
Sean Callanan authored
the external source to complete the Decl if it hasn't been completed already. This fixes a crash in LLDB. llvm-svn: 152807
-
Kostya Serebryany authored
llvm-svn: 152806
-
Kostya Serebryany authored
[asan] update asan docs: mention CMake problem and to explain the status of MacOS 10.7 and 32-bit Linux llvm-svn: 152805
-
Aaron Ballman authored
Patch thanks to Nikola Smiljanic llvm-svn: 152801
-
Bill Wendling authored
The functions memccpy, strdup, strndup, strlcat, and strlcpy should also have object size checking support. Of course, this is only good if the C library also supports these functions. <rdar://problem/10528974> llvm-svn: 152789
-
James Molloy authored
Patch by Silviu Baranga! llvm-svn: 152788
-
David Blaikie authored
Err on the side of brevity and rename (while providing aliases for the original name) -Wbool-conversions, -Wint-conversions, and -Wvector-conversions for consistency with constant, literal, string, and sign conversion warnings. And name the diagnostic groups explicitly while I'm here rather than rewriting the string in the groups and sema td files. Curiously, vector-conversion is not under -Wconversion. Perhaps it should be. llvm-svn: 152776
-
Richard Smith authored
breaking bootstrap. No test yet: it's quite hard to tickle the failure case. The specific testcase for this wouldn't be useful for testing anything more general than a reintroduction of this precise bug in any case. llvm-svn: 152775
-
David Blaikie authored
Original commit message: Provide -Wnull-conversion separately from -Wconversion. Like GCC, provide a NULL conversion to non-pointer conversion as a separate flag, on by default. GCC's flag is "conversion-null" which we provide for cross compatibility, but in the interests of consistency (with -Wint-conversion, -Wbool-conversion, etc) the canonical Clang flag is called -Wnull-conversion. Patch by Lubos Lunak. Review feedback by myself, Chandler Carruth, and Chad Rosier. llvm-svn: 152774
-
Daniel Dunbar authored
computing expr source...", it breaks bootstrap. llvm-svn: 152772
-
Richard Smith authored
getDeclSpecContextFromDeclaratorContext. llvm-svn: 152766
-
Chad Rosier authored
Abbreviated commit message: Provide -Wnull-conversion separately from -Wconversion. llvm-svn: 152765
-
Richard Smith authored
locations for diagnostics we're not going to emit, and don't track the subobject designator outside C++11 (since we're not going to use it anyway). This seems to give about a 0.5% speedup on 403.gcc/combine.c, but the results were sufficiently noisy that I can't reject the null hypothesis. llvm-svn: 152761
-
Richard Smith authored
llvm-svn: 152758
-
Aaron Ballman authored
llvm-svn: 152757
-
Chad Rosier authored
-fno-inline-functions. This behaves much like -fno-inline in gcc, but based on a discussion with Daniel it was decided that -fno-inline-functions should subsume -fno-inline. Please speak up if you object. The -fno-inline flag remains ignored. Final part of rdar://10972766 llvm-svn: 152754
-
Fariborz Jahanian authored
and metadata for "non-lazy" class and categories. llvm-svn: 152751
-
Richard Smith authored
scoped enumeration members. Later uses of an enumeration temploid as a nested name specifier should cause its instantiation. Plus some groundwork for explicit specialization of member enumerations of class templates. llvm-svn: 152750
-
Matt Beaumont-Gay authored
(Why are we keeping all of this code around anyway? Say the word and I'll start swinging the delete hammer.) llvm-svn: 152749
-
- Mar 14, 2012
-
-
David Blaikie authored
Like GCC, provide a NULL conversion to non-pointer conversion as a separate flag, on by default. GCC's flag is "conversion-null" which we provide for cross compatibility, but in the interests of consistency (with -Wint-conversion, -Wbool-conversion, etc) the canonical Clang flag is called -Wnull-conversion. Patch by Lubos Lunak. Review feedback by myself, Chandler Carruth, and Chad Rosier. llvm-svn: 152745
-
Fariborz Jahanian authored
for misc. objc meta-data. llvm-svn: 152743
-
Anna Zaks authored
llvm-svn: 152742
-
Aaron Ballman authored
llvm-svn: 152740
-
Nick Lewycky authored
qualified name lookups into transparent contexts. llvm-svn: 152739
-
Matt Beaumont-Gay authored
llvm-svn: 152738
-
Anna Zaks authored
in the callee. llvm-svn: 152734
-
Fariborz Jahanian authored
Add the _class_ro_t.reserved field for 64bit targets. // rdar://11040024 llvm-svn: 152731
-
Erik Verbruggen authored
MaterializeTemporaryExpr. llvm-svn: 152730
-
Douglas Gregor authored
llvm-svn: 152729
-
Douglas Gregor authored
llvm-svn: 152725
-