mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:22:43 +00:00 
			
		
		
		
	 ac435f914c
			
		
	
	
		ac435f914c
		
	
	
	
	
		
			
			Also adds tests for finding declaration of arrays inside CppComprehension which requires proper parsing for passing. Side-effect of this patch: if we ctrl+click on array variables, it should jump to the correct declaration inside HackStudio.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			154 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			154 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| void foo()
 | |
| {
 | |
|     int arr[2] = {1,2};
 | |
|     arr[1] = 0;
 | |
| 
 | |
|     int arr2[] = {5,6};
 | |
|     arr2[0] = 11;
 | |
|     
 | |
|     int arr3[1][2] = {{3,4}};
 | |
|     arr3[0][0] = 72;
 | |
| }
 |