Skip to content

Commit

Permalink
#1: check for const std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Feb 16, 2021
1 parent 2dbbc84 commit 146ec4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 146ec4b

Please sign in to comment.