Refactor and turn on modernize-raw-string-literal. See https://clang.llvm.org/extra/clang-tidy/checks/modernize-raw-string-literal.html. This is a bit noisy, but I think ultimately worth it.
The motivation is to replace barely-(human)-parseable code like:
HelpExampleCli("logging", "\"[\\\"all\\\"]\" \"[\\\"http\\\"]\"")
+ HelpExampleRpc("logging", "[\"all\"], [\"libevent\"]")
with more-readable code like:
HelpExampleCli("logging", R"("[\"all\"]" "[\"http\"]")")
+ HelpExampleRpc("logging", R"(["all"], ["libevent"])")
while keeping the same output. i.e:
Examples:
Examples:
> bitcoin-cli logging "[\"all\"]" "[\"http\"]"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "logging", "params": [["all"], ["libevent"]]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
Note that we already sporadically use raw string literals in the code base.