forked from qt-creator/qt-creator
		
	Preprocessor: fix macro definition line.
The line corresponding to the macro definition is simply the token's line. This caused errors in the macro definitions, since there were multiple macros defined on the same line of the same file. Task-number: QTCREATORBUG-7217 Change-Id: I56d17eeba677ac51f9eed283c0e964019bdfe4b7 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
		
				
					committed by
					
						 Roberto Raggi
						Roberto Raggi
					
				
			
			
				
	
			
			
			
						parent
						
							fcb825d4f6
						
					
				
				
					commit
					68471c2100
				
			| @@ -1189,7 +1189,7 @@ void Preprocessor::handleDefineDirective(PPToken *tk) | ||||
|  | ||||
|     Macro macro; | ||||
|     macro.setFileName(m_env->currentFile); | ||||
|     macro.setLine(m_env->currentLine); | ||||
|     macro.setLine(tk->lineno); | ||||
|     QByteArray macroName = tk->asByteArrayRef().toByteArray(); | ||||
|     macro.setName(macroName); | ||||
|     macro.setOffset(tk->offset); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user