From 146ec4b5521fd92ec7bd306a4218336b6353aaec Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Mon, 15 Feb 2021 19:57:55 -0800 Subject: [PATCH] #1: check for const std::string --- src/transform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform.cc b/src/transform.cc index 8f2c12b..cf2236e 100644 --- a/src/transform.cc +++ b/src/transform.cc @@ -141,7 +141,7 @@ struct RewriteArgument { auto const& first_arg = *arg_iter; QualType const& type = first_arg->getType(); // fmt::print("type={}\n", type.getAsString()); - if (type.getAsString() == "std::string") { + if (type.getAsString() == "std::string" or type.getAsString() == "const std::string") { // fmt::print("first argument is string\n"); first_is_string = true; arg_iter++;