a393e68b27 
								
							 
						 
						
							
							
								
								[analyzer] Move analyzer-eagerly-assume to AnalyzerOptions, enable by default  
							
							... 
							
							
							
							Differential Revision: https://reviews.llvm.org/D51251 
llvm-svn: 340963 
							
						 
						
							2018-08-29 20:29:17 +00:00  
				
					
						
							
							
								 
						
							
								afe62cdc4e 
								
							 
						 
						
							
							
								
								[analyzer] Improve the modeling of memset().  
							
							... 
							
							
							
							Since there is no perfect way bind the non-zero value with the default binding, this patch only considers the case where buffer's offset is zero and the char value is 0. And according to the value for overwriting, decide how to update the string length.
Reviewers: dcoughlin, NoQ, xazax.hun, a.sidorin, george.karpenkov
Reviewed By: NoQ
Differential Revision: https://reviews.llvm.org/D44934 
llvm-svn: 332463 
							
						 
						
							2018-05-16 12:37:53 +00:00  
				
					
						
							
							
								 
						
							
								db65f969f2 
								
							 
						 
						
							
							
								
								[analyzer] CStringChecker: pr34460: Avoid a crash when a cast is not modeled.  
							
							... 
							
							
							
							The checker used to crash when a mempcpy's length argument is symbolic. In this
case the cast from 'void *' to 'char *' failed because the respective
ElementRegion that represents cast is hard to add on top of the existing
ElementRegion that represents the offset to the last copied byte, while
preseving a sane memory region structure.
Additionally, a few test cases are added (to casts.c) which demonstrate problems
caused by existing sloppy work we do with multi-layer ElementRegions. If said
cast would be modeled properly in the future, these tests would need to be
taken into account.
Differential Revision: https://reviews.llvm.org/D38797 
llvm-svn: 315742 
							
						 
						
							2017-10-13 20:11:00 +00:00  
				
					
						
							
							
								 
						
							
								184c6242fa 
								
							 
						 
						
							
							
								
								Reland 4: [analyzer] NFC: Update test infrastructure to support multiple constraint managers  
							
							... 
							
							
							
							Summary: Replace calls to %clang/%clang_cc1 with %clang_analyze_cc1 when invoking static analyzer, and perform runtime substitution to select the appropriate constraint manager, per D28952.
Reviewers: xazax.hun, NoQ, zaks.anna, dcoughlin
Subscribers: mgorny, rgov, mikhail.ramalho, a.sidorin, cfe-commits
Differential Revision: https://reviews.llvm.org/D30373 
llvm-svn: 296895 
							
						 
						
							2017-03-03 18:02:02 +00:00  
				
					
						
							
							
								 
						
							
								09d66f7528 
								
							 
						 
						
							
							
								
								Revert "Reland 3: [analyzer] NFC: Update test infrastructure to support multiple constraint managers"  
							
							... 
							
							
							
							This reverts commit ea36f1406e1f36bf456c3f3929839b024128e468.
llvm-svn: 296841 
							
						 
						
							2017-03-02 23:30:53 +00:00  
				
					
						
							
							
								 
						
							
								feaf9ff5ee 
								
							 
						 
						
							
							
								
								Reland 3: [analyzer] NFC: Update test infrastructure to support multiple constraint managers  
							
							... 
							
							
							
							Summary: Replace calls to %clang/%clang_cc1 with %clang_analyze_cc1 when invoking static analyzer, and perform runtime substitution to select the appropriate constraint manager, per D28952.
Reviewers: xazax.hun, NoQ, zaks.anna, dcoughlin
Subscribers: mgorny, rgov, mikhail.ramalho, a.sidorin, cfe-commits
Differential Revision: https://reviews.llvm.org/D30373 
llvm-svn: 296837 
							
						 
						
							2017-03-02 23:05:45 +00:00  
				
					
						
							
							
								 
						
							
								4a90bf8c3f 
								
							 
						 
						
							
							
								
								Revert "Reland 2: [analyzer] NFC: Update test infrastructure to support multiple constraint managers"  
							
							... 
							
							
							
							This reverts commit f93343c099fff646a2314cc7f4925833708298b1.
llvm-svn: 296836 
							
						 
						
							2017-03-02 22:58:06 +00:00  
				
					
						
							
							
								 
						
							
								1cb0256a3c 
								
							 
						 
						
							
							
								
								Reland 2: [analyzer] NFC: Update test infrastructure to support multiple constraint managers  
							
							... 
							
							
							
							Summary: Replace calls to %clang/%clang_cc1 with %clang_analyze_cc1 when invoking static analyzer, and perform runtime substitution to select the appropriate constraint manager, per D28952.
Reviewers: xazax.hun, NoQ, zaks.anna, dcoughlin
Subscribers: mgorny, rgov, mikhail.ramalho, a.sidorin, cfe-commits
Differential Revision: https://reviews.llvm.org/D30373 
llvm-svn: 296835 
							
						 
						
							2017-03-02 22:45:24 +00:00  
				
					
						
							
							
								 
						
							
								00355a51d0 
								
							 
						 
						
							
							
								
								Revert "Reland: [analyzer] NFC: Update test infrastructure to support multiple constraint managers"  
							
							... 
							
							
							
							This reverts commit 1b28d0b10e1c8feccb971abb6ef7a18bee589830.
llvm-svn: 296422 
							
						 
						
							2017-02-28 01:50:23 +00:00  
				
					
						
							
							
								 
						
							
								59cd893320 
								
							 
						 
						
							
							
								
								Reland: [analyzer] NFC: Update test infrastructure to support multiple constraint managers  
							
							... 
							
							
							
							Summary: Replace calls to %clang/%clang_cc1 with %clang_analyze_cc1 when invoking static analyzer, and perform runtime substitution to select the appropriate constraint manager, per D28952.
Reviewers: xazax.hun, NoQ, zaks.anna, dcoughlin
Subscribers: mgorny, rgov, mikhail.ramalho, a.sidorin, cfe-commits
Differential Revision: https://reviews.llvm.org/D30373 
llvm-svn: 296414 
							
						 
						
							2017-02-28 00:02:36 +00:00  
				
					
						
							
							
								 
						
							
								8589e10c30 
								
							 
						 
						
							
							
								
								Revert "[analyzer] NFC: Update test infrastructure to support multiple constraint managers"  
							
							... 
							
							
							
							This reverts commit 8e7780b9e59ddaad1800baf533058d2c064d4787.
llvm-svn: 296317 
							
						 
						
							2017-02-27 03:29:25 +00:00  
				
					
						
							
							
								 
						
							
								02064a3076 
								
							 
						 
						
							
							
								
								[analyzer] NFC: Update test infrastructure to support multiple constraint managers  
							
							... 
							
							
							
							Summary: Replace calls to %clang/%clang_cc1 with %clang_analyze_cc1 when invoking static analyzer, and perform runtime substitution to select the appropriate constraint manager, per D28952.
Reviewers: xazax.hun, NoQ, zaks.anna, dcoughlin
Subscribers: mgorny, rgov, mikhail.ramalho, a.sidorin, cfe-commits
Differential Revision: https://reviews.llvm.org/D30373 
llvm-svn: 296312 
							
						 
						
							2017-02-27 02:36:15 +00:00  
				
					
						
							
							
								 
						
							
								9165df129e 
								
							 
						 
						
							
							
								
								[analyzer] Invalidate destination of std::copy() and std::copy_backward().  
							
							... 
							
							
							
							Now that the libcpp implementations of these methods has a branch that doesn't call
memmove(), the analyzer needs to invalidate the destination for these methods explicitly.
rdar://problem/23575656
llvm-svn: 260043 
							
						 
						
							2016-02-07 16:55:44 +00:00