- Aug 24, 2011
-
-
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
-
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
-
Argyrios Kyrtzidis authored
since it is a bit more efficient. llvm-svn: 138379
-
Argyrios Kyrtzidis authored
llvm-svn: 138378
-
Argyrios Kyrtzidis authored
llvm-svn: 138377
-
Argyrios Kyrtzidis authored
the extra SourceManager::getFileID call. llvm-svn: 138376
-
Argyrios Kyrtzidis authored
llvm-svn: 138375
-
Jordy Rose authored
[analyzer] Move function retain-count effect summary log from CFRefCount to RetainReleaseChecker, and then explicitly provide the summary log when creating CFRefReports. No functionality change. llvm-svn: 138374
-
Ted Kremenek authored
incorrectly in the CFG, and also the static analyzer. This patch regresses the analyzer a bit, but that needs to be followed up with a better solution. Fixes <rdar://problem/10008112>. llvm-svn: 138372
-
Jordy Rose authored
[analyzer] Move helper method Update from CFRefCount to RetainReleaseChecker. No functionality change. llvm-svn: 138370
-
Eli Friedman authored
llvm-svn: 138369
-
Eli Friedman authored
llvm-svn: 138368
-
Jordy Rose authored
[analyzer] Move helper method handleAutoreleaseCounts from CFRefCount to RetainReleaseChecker. No functionality change. llvm-svn: 138365
-
Jordy Rose authored
[analyzer] Move ReturnStmt retain-count analysis from CFRefCount to RetainReleaseChecker. Tweak CFRefReport to reflect that fact that ReturnStmt checks are pre-statement, not post-statement. No intended functionality change. llvm-svn: 138358
-
Jordy Rose authored
llvm-svn: 138353
-
Caitlin Sadowski authored
system flags an error when unlocking a lock which was not held, locking the same lock twice, having a different lockset on each iteration of a loop, or going out of scope while still holding a lock. In order to successfully use the lockset, this patch also makes sure that attribute arguments are attached correctly for later parsing. This patch was also worked on by DeLesley Hutchins. Note: This patch has been reviewed by Chandler Carruth and Jeffrey Yasskin. Feel free to provide post-commit review comments for a subsequent patch. llvm-svn: 138350
-
Eric Christopher authored
output on darwin so is hard coded there. As a note this will need a little bit of refactoring in the class hierarchy to separate it out for different verifiers based on input type. Fixes rdar://8256258. llvm-svn: 138343
-
Fariborz Jahanian authored
stmt expression, recursively walk down all substatements of the stmt expression. // rdar://10001085 llvm-svn: 138334
-
Nico Weber authored
This matches gcc's behavior. llvm-svn: 138324
-
Jordy Rose authored
[analyzer] Only allocate retain summaries for interesting functions/messages. This is a minor saving of memory but doesn't seem to cost any performance. llvm-svn: 138320
-
Matt Beaumont-Gay authored
For the test case added to function-redecl.cpp, we were previously complaining about a mismatch in the parameter types, since the definition used the typedef'd type. llvm-svn: 138318
-
Fariborz Jahanian authored
is captured by a given statement expression. // rdar://10001085 llvm-svn: 138314
-
Jordy Rose authored
[analyzer] Rename CFRefCount's evalSummary method to evalCallOrMessage, since it no longer, uh, evaluates call summaries. llvm-svn: 138313
-
-
Jordy Rose authored
[analyzer] Migrate the handling of retain-count-related RetEffects and ArgEffects from CFRefCount to RetainReleaseChecker. No intended functionality change. llvm-svn: 138309
-
Anna Zaks authored
[analyzer] MacOSKeychainAPIChecker: Users of KeyChain API often use free() to deallocate the password. Catch this error explicitly and generate the error message at the place where free() is called. llvm-svn: 138296
-
- Aug 22, 2011
-
-
Fariborz Jahanian authored
llvm-svn: 138276
-
Anna Zaks authored
Static Analyzer Diagnostics: Allow checkers to add ExtraDescriptiveText, now renamed into ExtraText, to the diagnostic without subclassing BugReport. llvm-svn: 138272
-
Fariborz Jahanian authored
objc's decl context. llvm-svn: 138267
-
Ted Kremenek authored
Do not perform check for missing '[super dealloc]' under ARC as calling -dealloc is illegal in that mode. llvm-svn: 138261
-
Anna Zaks authored
llvm-svn: 138259
-
Eli Friedman authored
llvm-svn: 138257
-
Fariborz Jahanian authored
llvm-svn: 138253
-
Fariborz Jahanian authored
a context switching object. llvm-svn: 138248
-