Commit e77166a0 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Don't include whitespaces and comments at the end of macro definitions.

parent 9101e467
......@@ -1228,7 +1228,7 @@ void Preprocessor::processDefine(TokenIterator firstToken, TokenIterator lastTok
} else {
// ### make me fast!
const char *startOfDefinition = startOfToken(*tk);
const char *endOfDefinition = startOfToken(*lastToken);
const char *endOfDefinition = endOfToken(lastToken[- 1]);
QByteArray definition(startOfDefinition,
endOfDefinition - startOfDefinition);
definition.replace("\\\n", " ");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment