From 6e3e3580025a510d104def6dbb38f6afd2e409a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Sat, 30 Sep 2017 11:36:56 +0200 Subject: [PATCH] Fix whitespace in cv ref qualifiers --- src/code_generator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/code_generator.cpp b/src/code_generator.cpp index 8f54149..10ff953 100644 --- a/src/code_generator.cpp +++ b/src/code_generator.cpp @@ -636,15 +636,15 @@ namespace case cpp_cv_none: break; case cpp_cv_const: - output << keyword("const"); + output << operator_ws << keyword("const"); need_ws = true; break; case cpp_cv_volatile: - output << keyword("volatile"); + output << operator_ws << keyword("volatile"); need_ws = true; break; case cpp_cv_const_volatile: - output << keyword("const") << whitespace << keyword("volatile"); + output << operator_ws << keyword("const") << whitespace << keyword("volatile"); need_ws = true; break; } @@ -654,11 +654,11 @@ namespace case cpp_ref_none: break; case cpp_ref_lvalue: - output << operator_ws << punctuation("&") << operator_ws; + output << operator_ws << punctuation("&"); need_ws = false; break; case cpp_ref_rvalue: - output << operator_ws << punctuation("&&") << operator_ws; + output << operator_ws << punctuation("&&"); need_ws = false; break; }