From 2802e2b4ee8158dba3f3584037e99907c6db7ec4 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 4 Feb 2019 22:19:56 +0100 Subject: Issue 6814: Further finetuning for inconsistent whitespace removal for operators in 1.8.15 --- src/util.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 3a3bfd3..53b176d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1847,7 +1847,8 @@ QCString removeRedundantWhiteSpace(const QCString &s) case '*': if (i>0 && pc!=' ' && pc!='\t' && pc!=':' && pc!='*' && pc!='&' && pc!='(' && pc!='/' && - pc!='.' && (osp<9 || !(pc=='>' && osp==11))) + pc!='.' && osp<9 + ) // avoid splitting &&, **, .*, operator*, operator->* { *dst++=' '; @@ -1855,7 +1856,7 @@ QCString removeRedundantWhiteSpace(const QCString &s) *dst++=c; break; case '&': - if (i>0 && isId(pc)) + if (i>0 && isId(pc) && osp<9) { if (nc != '=') // avoid splitting operator&= -- cgit v0.12