- Feb 29, 2012
-
-
Jason W Kim authored
llvm-svn: 151738
-
Anna Zaks authored
funopen, setvbuf. Teach the checker and the engine about these APIs to resolve malloc false positives. As I am adding more of these APIs, it is clear that all this should be factored out into a separate callback (for example, region escapes). Malloc, KeyChainAPI and RetainRelease checkers could all use it. llvm-svn: 151737
-
Daniel Dunbar authored
info.", which broke some -O0 -g tests. llvm-svn: 151730
-
David Chisnall authored
llvm-svn: 151726
-
Sebastian Redl authored
Tentatively fix PR12117. The test case from the bug now passes, and all existing tests still pass, but there may still be corner cases. llvm-svn: 151716
-
James Molloy authored
The bug that was caught by Apple's internal buildbots was valid and also showed another bug in my implementation. These are now fixed, with regression tests added to catch them both (not Darwin-specific). Original log: ==================== Revert r151638 because it causes assertion hit on PCH creation for Cocoa.h Original log: --------------------- Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. --------------------- I also reverted r151641 which was enhancement on top of r151638. ==================== llvm-svn: 151712
-
Erik Verbruggen authored
because the CFG is fully linearized. llvm-svn: 151711
-
Ted Kremenek authored
[analyzer] Tweak the UnreachableCode checker to not warning about unreachable default blocks. Patch by Cyril Roelandt! llvm-svn: 151709
-
Eli Friedman authored
A couple minor bug-fixes for template instantiation for expressions which are sometimes potentially evaluated. llvm-svn: 151707
-
Argyrios Kyrtzidis authored
rdar://10459258 llvm-svn: 151706
-
Eric Christopher authored
This currently doesn't handle capturing the 'this' pointer for any enclosing class. Steal the lambda-expressions.cpp testcase and debugify it and try to use more variables to proof it against random changes. Part of rdar://10900684 llvm-svn: 151702
-
Eric Christopher authored
llvm-svn: 151701
-
Eric Christopher authored
llvm-svn: 151700
-
Eli Friedman authored
llvm-svn: 151699
-
Daniel Dunbar authored
of the SmallPtrSet way up to avoid commonly reallocating the buffer size. - I didn't see a good argument against it, so I bumped the limit to cover the max size we see during parsing Cocoa.h. llvm-svn: 151698
-
Daniel Dunbar authored
- This reduces our total # of allocations building a PCH for Cocoa.h by almost a whopping 50%. - A SmallPtrMap would be cleaner, but since we don't have one yet... llvm-svn: 151697
-
NAKAMURA Takumi authored
llvm-svn: 151695
-
NAKAMURA Takumi authored
FIXME: Could we guarantee not to get stack overflow also on mingw? llvm-svn: 151692
-
Daniel Dunbar authored
llvm-svn: 151689
-
Fariborz Jahanian authored
the ivar offset symbol. llvm-svn: 151683
-
Daniel Dunbar authored
llvm-svn: 151682
-
Eli Friedman authored
llvm-svn: 151674
-
Argyrios Kyrtzidis authored
llvm-svn: 151669
-
Argyrios Kyrtzidis authored
llvm-svn: 151668
-
Argyrios Kyrtzidis authored
Original log: --------------------- Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. --------------------- I also reverted r151641 which was enhancement on top of r151638. llvm-svn: 151667
-
Sebastian Redl authored
llvm-svn: 151666
-
Ted Kremenek authored
[analyzer diagnostics] Refactor filtration for PathDiagnosticConsumers that don't support cross-file diagnostics into a common place. Currently enable this filtration for Plist diagnostics as well. llvm-svn: 151664
-
Ted Kremenek authored
[analyzer diagnostics] start prototyping stripping PathDiagnostics of unnecessary cruft caused by path inlining. This introduces a concept of a "prunable" PathDiagnosticEvent. Currently this is a flag, but we may evolve the concept to make this more dynamically inferred. llvm-svn: 151663
-
- Feb 28, 2012
-
-
Fariborz Jahanian authored
llvm-svn: 151662
-
Anna Zaks authored
closest function context (RetainCountChecker). llvm-svn: 151661
-
Eli Friedman authored
Prefer bitcast+GEP over ptrtoint+sub+inttoptr: it's semantically equivalent here, and generally nicer to the optimizer. llvm-svn: 151659
-
Anna Zaks authored
message. llvm-svn: 151657
-
Anna Zaks authored
test. llvm-svn: 151656
-
Chad Rosier authored
rdar://10947759 llvm-svn: 151654
-
David Chisnall authored
llvm-svn: 151653
-
David Chisnall authored
It turns out -fno-cxa-atexit just produces broken code, so disable it on Solaris and we'll ship a __cxa_atexit implementation... llvm-svn: 151648
-
James Molloy authored
Un-break clang based on r151638 - What was meant to be a trivial variable name change went horribly wrong and I forgot to retest afterwards. llvm-svn: 151641
-
James Molloy authored
Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped. This fixes code such as: enum e {x, y}; int f(enum {y, x} n) { return 0; } This finally fixes PR5464 and PR5477. llvm-svn: 151638
-
Argyrios Kyrtzidis authored
make sure to record the source location of the ivar name. [libclang] When indexing @synthesized objc methods, report the @implementation as the lexical container. Fixes rdar://10905472 llvm-svn: 151635
-
Argyrios Kyrtzidis authored
the getter/setter objc method entities that the property is associated with. rdar://10244558 llvm-svn: 151634
-