- 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
-
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
-
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
-
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
-
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 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
-
-
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
-
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
-
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
-
James Molloy authored
-fpack-struct's handling has changed in CC1 (one of only two flags that needed changing) because the driver treats "-fpack-struct" as a boolean flag, and CC1 (did) treat it as an option with a separated value. This change causes -fpack-struct=X to be forwarded correctly to -fpack-struct=X instead of erroneously to "-fpack-struct X" llvm-svn: 155981
-
Andrew Trick authored
llvm-svn: 155977
-
Richard Smith authored
the parsing of such things appears to be a conforming extension, but it breaks libstdc++4.7's std::pair. llvm-svn: 155975
-
Andrew Trick authored
Really just a wild stab in the dark. llvm-svn: 155974
-
Ted Kremenek authored
Refine analyzer diagnostics by adding an expression "cone-of-influence" to reverse track interesting values through interesting expressions. This allows us to map from interesting values in a caller to interesting values in a caller, thus recovering some precision in diagnostics lost from IPA. Fixes <rdar://problem/11327497> llvm-svn: 155971
-
Anna Zaks authored
warning. llvm-svn: 155966
-
Kaelyn Uhrain authored
of giving unhelpful errors about undeclared identifers and missing semicolons. llvm-svn: 155965
-
Anna Zaks authored
llvm-svn: 155964
-
Anna Zaks authored
llvm-svn: 155963
-
Douglas Gregor authored
folding its one check into the normal path for checking overridden Objective-C methods. Good for another 3.6% speedup on the test case in <rdar://problem/11004361>. llvm-svn: 155961
-
Douglas Gregor authored
declared in a subclass has consistent parameter types with a method having the same selector in a superclass performs a significant number of lookups into the class hierarchy. In the example in <rdar://problem/11004361>, we spend 4.7% of -fsyntax-only time in these lookups. Optimize away most of the calls to this routine (Sema::CompareMethodParamsInBaseAndSuper) by first checking whether we have ever seen *any* method with that selector (using the global selector table). Since most selectors are unique, we can avoid the cost of this name lookup in many cases, for a 3.3% speedup. llvm-svn: 155958
-
rdar://problem/11333367Eli Friedman authored
While I'm here, fix source locations for other diagnostics related to property synthesis. llvm-svn: 155953
-