Skip to content

Commit ee3de47

Browse files
committed
issue #10762 Macro define a class name to a different one causes extra whitespace to appear
Problem looks like a side effect of ``` 00ee930 is the first bad commit commit 00ee930 Date: Sun Mar 13 10:12:46 2016 +0100 reimplemented removeRedundantWhiteSpace() to improve performance src/util.cpp | 385 +++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 231 insertions(+), 154 deletions(-) ``` the preprocessor should not add extra spaces to the result.
1 parent cc81338 commit ee3de47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pre.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,6 +2983,7 @@ static bool expandExpression(yyscan_t yyscanner,QCString &expr,QCString *rest,in
29832983
i=p+l;
29842984
}
29852985
}
2986+
expr = expr.stripWhiteSpace();
29862987
//printf("<expandExpression(expr='%s',rest='%s',pos=%d,level=%d)\n",qPrint(expr),rest ? qPrint(*rest) : "", pos,level);
29872988
return TRUE;
29882989
}

0 commit comments

Comments
 (0)