forked from qt-creator/qt-creator
		
	C++: Discard comments in macro definitions
Task-number: QTCREATORBUG-7815 Change-Id: Id3e6b018bfd58b0f0072c637d69721a4bde1603a Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
		@@ -1542,7 +1542,9 @@ void Preprocessor::handleDefineDirective(PPToken *tk)
 | 
			
		||||
        previousOffset = tk->offset;
 | 
			
		||||
        previousLine = tk->lineno;
 | 
			
		||||
 | 
			
		||||
        bodyTokens.push_back(*tk);
 | 
			
		||||
        // Discard comments in macro definitions (keep comments flag doesn't apply here).
 | 
			
		||||
        if (!tk->isComment())
 | 
			
		||||
            bodyTokens.push_back(*tk);
 | 
			
		||||
 | 
			
		||||
        lex(tk);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user