857dd06605 
								
							 
						 
						
							
							
								
								Fix the diagnostic when we are shadowing an external variable and there exists a locally scoped extern with the same name.  
							
							... 
							
							
							
							llvm-svn: 124580 
							
						 
						
							2011-01-31 07:04:50 +00:00  
				
					
						
							
							
								 
						
							
								f41860c882 
								
							 
						 
						
							
							
								
								'extern' variables in functions don't shadow externs in global scope. Fixes rdar://8883302.  
							
							... 
							
							
							
							llvm-svn: 124578 
							
						 
						
							2011-01-31 07:04:41 +00:00  
				
					
						
							
							
								 
						
							
								df8b37c3f8 
								
							 
						 
						
							
							
								
								-Wshadow should only warn about parameter declarations when we're  
							
							... 
							
							
							
							entering a function or block definition, not on every single declaration.
Unfortunately we don't have previous-lookup results around when it's time
to make this decision, so we have to redo the lookup.  The alternative is
to use delayed diagnostics.
llvm-svn: 99172 
							
						 
						
							2010-03-22 09:20:08 +00:00  
				
					
						
							
							
								 
						
							
								2d8c760df7 
								
							 
						 
						
							
							
								
								Implement -Wshadow for parameter declarations as well.  
							
							... 
							
							
							
							llvm-svn: 99037 
							
						 
						
							2010-03-20 04:12:52 +00:00  
				
					
						
							
							
								 
						
							
								319aa6c4b5 
								
							 
						 
						
							
							
								
								Remove warning about shadowing a built-in; built-ins aren't actually  
							
							... 
							
							
							
							considered to be a part of the translation unit unless they're named
in a way that brings them into existence.
llvm-svn: 98729 
							
						 
						
							2010-03-17 16:03:44 +00:00  
				
					
						
							
							
								 
						
							
								9a9ae00442 
								
							 
						 
						
							
							
								
								Forgot the testcases.  
							
							... 
							
							
							
							llvm-svn: 98685 
							
						 
						
							2010-03-16 21:50:59 +00:00