Skip to content

Commit

Permalink
Merge pull request #4300 from PoeticPete/cpp20-strings
Browse files Browse the repository at this point in the history
Add C++20 support by updating strings
  • Loading branch information
micheleCTDEAdmin committed May 24, 2024
2 parents ee3c62f + 50d234f commit c17d7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/make_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, name, dval, decl, desc):
def write_declaration(self, out):
out.write(u'{} {} = {{\n'.format(self.decl, self.name))
out.write(u' "{}",\n'.format(self.name))
out.write(u' u8R"__(\n{}\n)__"'.format(self.desc))
out.write(u' R"__(\n{}\n)__"'.format(self.desc))
if self.dval is not None:
out.write(u',\n {}'.format(self.dval))
out.write(u'\n};\n\n')
Expand Down Expand Up @@ -90,7 +90,7 @@ def write_declarations(out, args):
# -----------------------------------------------------------------------------
def write_registrations(out, args):
for group in groups:
out.write(u'\n begin_option_group(u8R"__(\n{}\n)__");\n\n'.format(
out.write(u'\n begin_option_group(R"__(\n{}\n)__");\n\n'.format(
group.desc))

for option in group.options:
Expand Down
2 changes: 1 addition & 1 deletion src/option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace uncrustify
namespace
{

static const char *DOC_TEXT_END = u8R"___(
static const char *DOC_TEXT_END = R"___(
# Meaning of the settings:
# Ignore - do not do any changes
# Add - makes sure there is 1 or more space/brace/newline/etc
Expand Down

0 comments on commit c17d7b7

Please sign in to comment.