Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								b7f59d6bbd 
								
							 
						 
						
							
							
								
								[clang-tidy] Use new ASTMatchers to identify template instantiations instead of copying it everywhere.  
							
							 
							
							... 
							
							
							
							No intended functionality change.
llvm-svn: 217035 
							
						 
						
							2014-09-03 13:21:51 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								01f5686298 
								
							 
						 
						
							
							
								
								[clang-tidy] MemsetZeroLenghtChecker: Don't crash trying to evaluate dependent values.  
							
							 
							
							... 
							
							
							
							llvm-svn: 213238 
							
						 
						
							2014-07-17 08:56:55 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								806bcabcda 
								
							 
						 
						
							
							
								
								[clang-tidy] As a simple heuristic don't emit a swap fixit that would create  
							
							 
							
							... 
							
							
							
							negative-sized memsets.
memset(x, -1, 0) is still useless but swapping makes no sense here. Just emit
a warning.
llvm-svn: 213157 
							
						 
						
							2014-07-16 14:52:07 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								d6a499077a 
								
							 
						 
						
							
							
								
								[clang-tidy] Also emit a warning for memset(x, 0, 0)  
							
							 
							
							... 
							
							
							
							It doesn't make sense to suggest swapping the arguments here but it's
still useless code
llvm-svn: 213156 
							
						 
						
							2014-07-16 14:42:43 +00:00  
						
					 
				
					
						
							
							
								 
								Benjamin Kramer
							
						 
						
							 
							
							
							
							
								
							
							
								ebab1500e0 
								
							 
						 
						
							
							
								
								[clang-tidy] Add a checker for zero-length memset.  
							
							 
							
							... 
							
							
							
							If there's memset(x, y, 0) in the code it's most likely a mistake. The
checker suggests a fix-it to swap 'y' and '0'.
I think this has the potential to be promoted into a general clang warning
after some testing in clang-tidy.
Differential Revision: http://reviews.llvm.org/D4535 
llvm-svn: 213155 
							
						 
						
							2014-07-16 14:30:19 +00:00