From c491de89ce2f063e038068d99845d76ea91e52a1 Mon Sep 17 00:00:00 2001 From: Hazard Date: Sun, 29 Nov 2020 03:04:57 +0100 Subject: [PATCH] Fixed for both linux and windows --- src/methods.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/methods.cpp b/src/methods.cpp index 0ae6a4a..f090229 100644 --- a/src/methods.cpp +++ b/src/methods.cpp @@ -500,9 +500,7 @@ static Handler recordHandler(recordMatcher, [](const MatchFinder::MatchResult& r auto paramtype = origparamtype.getCanonicalType() .getUnqualifiedType(); auto typedata = Typedata(paramtype, record->getASTContext()); - // auto origparamtypestr = std::regex_replace(gg, reg::classstructenum, ""); - // auto origparamtypestr = param->getType().getAsString(); - auto origparamtypestr = typedata.cpptypestr; + auto origparamtypestr = paramtype->getCanonicalTypeInternal().getAsString(); if(!typedata.ok) {