- Aug 24, 2011
-
-
Anna Zaks authored
[analyzer] MacOSKeychainAPIChecker: Provide reacher diagnostic trace by pointing to the allocation site when reporting a leak. llvm-svn: 138479
-
Jordy Rose authored
llvm-svn: 138477
-
Jordy Rose authored
[analyzer] Copy GC mode setting from CFRefCount to RetainReleaseChecker in preparation for getting rid of CFRefCount. This is a little hacky for now but will get better once we decide the best way to handle this. llvm-svn: 138476
-
Argyrios Kyrtzidis authored
llvm-svn: 138475
-
Anna Zaks authored
[analyzer] Allow checker writes to specify that no region should be accosiated with the report. (Useful when we report an error on endOfPath or deadSymbols, when the range of the last expression might have nothing to do with the error.) llvm-svn: 138474
-
Ivan Krasin authored
llvm-svn: 138470
-
Jordy Rose authored
This is a very small regression (actually introduced in r138309) because it won't catch leaks of objects passed by reference to CFDictionaryCreate (they're considered to have escaped and are ignored). If this is important we can put in a specific eval::Call to restore the functionality. llvm-svn: 138464
-
Douglas Gregor authored
module DAG-based lookup scheme. This required some reshuffling, so that each module stores its own mapping from DeclContexts to their lexical and visible sets for those DeclContexts (rather than one big "chain"). Overall, this allows simple qualified name lookup into the translation unit to gather results from multiple modules, with the lookup results in module B shadowing the lookup results in module A when B imports A. Walking all of the lexical declarations in a module DAG is still a mess; we'll end up walking the loaded module list backwards, which works fine for chained PCH but doesn't make sense in a DAG. I'll tackle this issue as a separate commit. llvm-svn: 138463
-
Jordy Rose authored
[analyzer] Slightly clean up the fix in 138432, so that it doesn't depend on the relative ordering of path-sensitive and path-insensitive checks. Still not ideal, but I think a real fix would require infrastructure that doesn't exist yet. llvm-svn: 138462
-
Caitlin Sadowski authored
Thread safety: Fix a few typos in last commit -- use LockID instead of Lock in comments and start a couple methods with a lowercase letter llvm-svn: 138460
-
Evan Cheng authored
llvm-svn: 138451
-
Axel Naumann authored
Reset FirstID (first diagnostic's file ID) to allow for invocations of the VerifyDiagnosticsClient on several input files. llvm-svn: 138434
-
Jordy Rose authored
[analyzer] Fix a Heisenbug concerning object lifetimes with a hack. Hopefully a better fix coming soon. See comment for more details. llvm-svn: 138432
-
Jordy Rose authored
[analyzer] Reapply 138390 "Clean up unused bits of CFRefCount", reverted in 138405. Ended up unrelated to any problems. llvm-svn: 138431
-
Jordy Rose authored
[analyzer] Fix potential crasher with RAII. No functionality change. (No test because this particular circumstance requires an impossible series of events, but this is future-proofing.) llvm-svn: 138430
-
Jordy Rose authored
[analyzer] Reapply 138382 and 138388 (reverted in 138419 and 138420). The issue seems to have been with the uninitialized variable fixed in 138424; a fix for another Heisencrasher coming soon. llvm-svn: 138426
-
Jordy Rose authored
llvm-svn: 138424
-
Bruno Cardoso Lopes authored
llvm-svn: 138422
-
Eric Christopher authored
Revert "[analyzer] Cleanup: Move temporary declarations of CFRefCount variables closer to their uses. No functionality change." This reverts commit d02b4af7bd6ca4a743c7074d64e205d718aa221d. llvm-svn: 138420
-
Eric Christopher authored
Revert "[analyzer] Make CFRefBug and CFRefReportVisitor not dependent on CFRefCount. Unfortunately, CFRefReport still is. No functionality change." This reverts commit e3fb7e428b7ba0d5d902dfe3f165d70e09b03a15. llvm-svn: 138419
-
Eric Christopher authored
After talking with John making this the case for all of these is the right way to go. Fixes rdar://9804564 and PR10414 llvm-svn: 138418
-
Anna Zaks authored
[analyzer] MacOSKeychainAPIChecker: Add reasoning about functions which MIGHT deallocate the memory region allocated with SecKeychain APIs. Specifically, when the buffer is passed to CFStringCreateWithBytesNoCopy along with a custom deallocator, which might potentially correctly release the memory. llvm-svn: 138417
-
Anna Zaks authored
[analyzer] MacOSKeychainAPIChecker: Retrieve the memory region which we are tracking even when it's no longer a SymbolicRegion, for example, when it is cast to char*. llvm-svn: 138415
-
Anna Zaks authored
llvm-svn: 138414
-
Eric Christopher authored
llvm-svn: 138413
-
Fariborz Jahanian authored
// rdar://9362887. llvm-svn: 138412
-
Bruno Cardoso Lopes authored
<i32 3, i32 2, i32 8, i32 11, i32 3, i32 6, i32 12, i32 15> generate: <i32 3, i32 2, i32 8, i32 11, i32 7, i32 6, i32 12, i32 15> llvm-svn: 138411
-
Ted Kremenek authored
handled SCC's of dead code, or simply having false negatives by overly suppressing warnings. WIP. llvm-svn: 138410
-
Ted Kremenek authored
CFG: record set of C++ 'try' dispatch blocks, which could be of interest to various analyses (e.g., reachability). llvm-svn: 138409
-
Ted Kremenek authored
llvm-svn: 138408
-
Ted Kremenek authored
llvm-svn: 138407
-
Eric Christopher authored
This reverts commit 6886a92640f5bffc972f67c0a1f302d6c6e7c322. llvm-svn: 138405
-
Eric Christopher authored
llvm-svn: 138404
-
Eli Friedman authored
Refactor and fix checking for initialization of flexible array members. The old version had the checks scattered across the code, missed some checks, and had a couple nasty bugs in existing checks. Fixes PR10648 and another similar accepts-invalid bug. llvm-svn: 138398
-
- Aug 23, 2011
-
-
Jordy Rose authored
llvm-svn: 138390
-
Eric Christopher authored
llvm-svn: 138389
-
Jordy Rose authored
[analyzer] Make CFRefBug and CFRefReportVisitor not dependent on CFRefCount. Unfortunately, CFRefReport still is. No functionality change. llvm-svn: 138388
-
Jordy Rose authored
[analyzer] Cleanup: Move temporary declarations of CFRefCount variables closer to their uses. No functionality change. llvm-svn: 138382
-
Argyrios Kyrtzidis authored
llvm-svn: 138381
-
Argyrios Kyrtzidis authored
to increased calls to SourceManager::getFileID. (rdar://9992664) Use a slightly different approach that is more efficient both in terms of speed (no extra getFileID calls) and in SLocEntries reduction. Comparing pre-r138129 and this patch we get: For compiling SemaExpr.cpp reduction of SLocEntries by 26%. For the boost enum library: -SLocEntries -34% (note that this was -5% for r138129) -Memory consumption -50% -PCH size -31% Reduced SLocEntries also benefit the hot function SourceManager::getFileID, evident by the reduced "FileID scans". llvm-svn: 138380
-