- May 03, 2012
-
-
Anna Zaks authored
specifically checks for equality to null. Enforcing this general practice, which keeps the analyzer less noisy, in the CString Checker. This change suppresses "Assigned value is garbage or undefined" warning in the added test case. llvm-svn: 156085
-
Richard Smith authored
was unintentional. Found by -Wimplicit-fallthrough, patch by Alexander Kornienko! llvm-svn: 156082
-
Argyrios Kyrtzidis authored
failing to lex the string, as suggested by Eli. Part of rdar://11305263. llvm-svn: 156081
-
Chad Rosier authored
aren't necessary to reproduce the clang crash. Part of rdar://11285725 llvm-svn: 156079
-
Fariborz Jahanian authored
under -Wobjc-missing-property-synthesis which must be opted-in. // rdar://11295716 llvm-svn: 156078
-
David Blaikie authored
llvm-svn: 156074
-
Simon Atanasyan authored
Test case Clang::Driver/debug-options-as.c depends on the integrated assembler. Turn it on explicitly on all platforms by the "-integrated-as" option. llvm-svn: 156063
-
Jordy Rose authored
[analyzer] Equality ops are like relational ops in that the arguments shouldn't be converted to the result type. Fixes PR12206 and dupe PR12510. This was probably the original intent of r133041 (also me, a year ago). llvm-svn: 156062
-
Jordy Rose authored
llvm-svn: 156061
-
Bob Wilson authored
llvm-svn: 156058
-
Argyrios Kyrtzidis authored
Fixes rdar://11353109 & http://llvm.org/bugs/show_bug.cgi?id=12689 llvm-svn: 156056
-
Anna Zaks authored
We need to identify the value of ptr as ElementRegion (result of pointer arithmetic) in the following code. However, before this commit '(2-x)' evaluated to Unknown value, and as the result, 'p + (2-x)' evaluated to Unknown value as well. int *p = malloc(sizeof(int)); ptr = p + (2-x); llvm-svn: 156052
-
Anna Zaks authored
The resulting type info is stored in the SymSymExpr, so no reason not to support construction of expression with different subexpression types. llvm-svn: 156051
-
Anna Zaks authored
(Currently, this is only relevant for tainted data.) llvm-svn: 156050
-
Anna Zaks authored
The change resulted in multiple issues on the buildbot, so it's not ready for prime time. Only enable history tracking for tainted data(which is experimental) for now. llvm-svn: 156049
-
John McCall authored
x86_64-arguments.cpp test file and be sure to test the coerced case as well. Thanks to Wei-Ren Chen for bringing this test to my attention. llvm-svn: 156047
-
Richard Trieu authored
#define TEST int y; int x = y; void foo() { TEST } -Wuninitialized gives this warning: invalid-loc.cc:4:3: warning: variable 'y' is uninitialized when used here [-Wuninitialized] TEST ^~~~ invalid-loc.cc:2:29: note: expanded from macro 'TEST' #define TEST int y; int x = y; ^ note: initialize the variable 'y' to silence this warning 1 warning generated. The second note lacks filename, line number, and code snippet. This change will remove the fixit and only point to variable declaration. invalid-loc.cc:4:3: warning: variable 'y' is uninitialized when used here [-Wuninitialized] TEST ^~~~ invalid-loc.cc:2:29: note: expanded from macro 'TEST' #define TEST int y; int x = y; ^ invalid-loc.cc:4:3: note: variable 'y' is declared here TEST ^ invalid-loc.cc:2:14: note: expanded from macro 'TEST' #define TEST int y; int x = y; ^ 1 warning generated. llvm-svn: 156045
-
Argyrios Kyrtzidis authored
not as we expect; it may be due to racing issue of a file coming from PCH changing after the PCH is loaded. rdar://11353109 llvm-svn: 156043
-
Fariborz Jahanian authored
for __NSContainer_literal. llvm-svn: 156035
-
Richard Trieu authored
llvm-svn: 156033
-
Richard Smith authored
refactorings in that revision, and some of the subsequent bugfixes, which seem to be relevant even without delayed exception specification parsing. llvm-svn: 156031
-
DeLesley Hutchins authored
llvm-svn: 156030
-
- May 02, 2012
-
-
David Blaikie authored
Patches by Csaba Raduly (rcsaba@gmail.com) llvm-svn: 156027
-
Anders Waldenborg authored
llvm-svn: 156022
-
Anders Waldenborg authored
llvm-svn: 156017
-
Rafael Espindola authored
them, otherwise we cannot produce an error for both struct HIDDEN test4; // canonical struct test4; struct DEFAULT test4; and struct test5; // canonical struct HIDDEN test5; struct DEFAULT test5; llvm-svn: 156016
-
Anders Waldenborg authored
llvm-svn: 156009
-
Anders Waldenborg authored
llvm-svn: 156008
-
Anders Waldenborg authored
llvm-svn: 156007
-
DeLesley Hutchins authored
llvm-svn: 156005
-
Fariborz Jahanian authored
related to laying out ivar structs and accessing non-fragile-ivar in more compilated cases. // rdar://11323187 llvm-svn: 156004
-
Douglas Gregor authored
TableGen-generated StringMatcher, for a 1.2% speedup in -fparse-only time in <rdar://problem/11004361>. Thanks to Benjamin for pointing me at StringMatcher! llvm-svn: 156003
-
Douglas Gregor authored
we accept are not modeled somehow via Attr.td. llvm-svn: 155998
-
Douglas Gregor authored
as an AST node, and fold a number of such attributes into Attr.td. llvm-svn: 155995
-
David Blaikie authored
Without the '<' prefix in the doxycomment these comments were incorrectly attached to the proceeding comment on the next line, rather than the preceeding one. Fixes PR12722 llvm-svn: 155993
-
Douglas Gregor authored
and const (as "__const") using tblgen, rather than explicitly hacking them in. llvm-svn: 155991
-
Benjamin Kramer authored
Driver: Turn the default value for -fmath-errno into a proper target hook and disable it by default on more platforms. For now -fno-math-errno is the default on BSD-derived platforms (Darwin, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD). If the default is not right for your platform, please yell. I only verified the result with the default compilers on Darwin and FreeBSD. llvm-svn: 155990
-
Douglas Gregor authored
Benjamin has suggested a better approach. llvm-svn: 155989
-
Douglas Gregor authored
we're looking at a normal token. Tiny positive impact -fsyntax-only time for <rdar://problem/11004361>. llvm-svn: 155988
-
Douglas Gregor authored
IdentifierInfo *) with a static StringMap, improving -fsyntax-only performance by 1% for the example in <rdar://problem/11004361>. llvm-svn: 155987
-