Fix whitespace in cv ref qualifiers
This commit is contained in:
parent
a2472cd075
commit
6e3e358002
1 changed files with 5 additions and 5 deletions
|
|
@ -636,15 +636,15 @@ namespace
|
||||||
case cpp_cv_none:
|
case cpp_cv_none:
|
||||||
break;
|
break;
|
||||||
case cpp_cv_const:
|
case cpp_cv_const:
|
||||||
output << keyword("const");
|
output << operator_ws << keyword("const");
|
||||||
need_ws = true;
|
need_ws = true;
|
||||||
break;
|
break;
|
||||||
case cpp_cv_volatile:
|
case cpp_cv_volatile:
|
||||||
output << keyword("volatile");
|
output << operator_ws << keyword("volatile");
|
||||||
need_ws = true;
|
need_ws = true;
|
||||||
break;
|
break;
|
||||||
case cpp_cv_const_volatile:
|
case cpp_cv_const_volatile:
|
||||||
output << keyword("const") << whitespace << keyword("volatile");
|
output << operator_ws << keyword("const") << whitespace << keyword("volatile");
|
||||||
need_ws = true;
|
need_ws = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -654,11 +654,11 @@ namespace
|
||||||
case cpp_ref_none:
|
case cpp_ref_none:
|
||||||
break;
|
break;
|
||||||
case cpp_ref_lvalue:
|
case cpp_ref_lvalue:
|
||||||
output << operator_ws << punctuation("&") << operator_ws;
|
output << operator_ws << punctuation("&");
|
||||||
need_ws = false;
|
need_ws = false;
|
||||||
break;
|
break;
|
||||||
case cpp_ref_rvalue:
|
case cpp_ref_rvalue:
|
||||||
output << operator_ws << punctuation("&&") << operator_ws;
|
output << operator_ws << punctuation("&&");
|
||||||
need_ws = false;
|
need_ws = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue