forked from qt-creator/qt-creator
		
	Finding the class definition for a forward declaration or finding the function definition from its declaration is mostly determined by the file iteration order. Documents with the most common path prefix are checked first. This works fine as long as the files of your project have a common ancestor. If that's not the case, FollowSymbol might take you to the definition within another project. Fix that issue by considering the project part id when constructing the file iteration order. Since the cached file iteration order now depends on the projects, ensure to clear it if projects are added, changed or removed. Task-number: QTCREATORBUG-15116 Change-Id: I529166bac363959c9fee0b946747fd0370a88809 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			579 B
		
	
	
	
		
			QML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			579 B
		
	
	
	
		
			QML
		
	
	
	
	
	
| import qbs
 | |
| 
 | |
| Project {
 | |
|     name: "CPlusPlus autotests"
 | |
|     references: [
 | |
|         "ast/ast.qbs",
 | |
|         "c99/c99.qbs",
 | |
|         "checksymbols/checksymbols.qbs",
 | |
|         "codeformatter/codeformatter.qbs",
 | |
|         "cxx11/cxx11.qbs",
 | |
|         "fileiterationorder/fileiterationorder.qbs",
 | |
|         "findusages/findusages.qbs",
 | |
|         "lexer/lexer.qbs",
 | |
|         "lookup/lookup.qbs",
 | |
|         "misc/misc.qbs",
 | |
|         "preprocessor/preprocessor.qbs",
 | |
|         "semantic/semantic.qbs",
 | |
|         "translationunit/translationunit.qbs",
 | |
|         "typeprettyprinter/typeprettyprinter.qbs"
 | |
|     ]
 | |
| }
 |