Skip to content
Snippets Groups Projects
Verified Commit 523e6bd0 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

use prefix notation `R"()"` for quote in quotes

(cherry picked from commit e9049aa8)
parent 6b0884a1
Branches
Tags
No related merge requests found
Pipeline #2903 passed
...@@ -56,7 +56,7 @@ Driver::parse(const string &file_arg, const string &basename_arg, istream &modfi ...@@ -56,7 +56,7 @@ Driver::parse(const string &file_arg, const string &basename_arg, istream &modfi
// If the input is an array. Issue #1578 // If the input is an array. Issue #1578
command_line_defines_with_endl << "@#define " << var << " = " << val << endl; command_line_defines_with_endl << "@#define " << var << " = " << val << endl;
else else
command_line_defines_with_endl << "@#define " << var << R"( = ")" << val << '"' << endl; command_line_defines_with_endl << "@#define " << var << R"( = ")" << val << R"(")" << endl;
} }
Driver m(env, true); Driver m(env, true);
istream is(command_line_defines_with_endl.rdbuf()); istream is(command_line_defines_with_endl.rdbuf());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment