Skip to content

Commit

Permalink
Fix compilation for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
7Hazard committed Nov 9, 2020
1 parent 23337f7 commit a499d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{
"label": "Generate Server Wrappings",
"type": "shell",
"command": "./gen-server",
"command": "./gen-server.sh",
"options": {
"cwd": "${workspaceFolder}/capi"
},
Expand Down
3 changes: 1 addition & 2 deletions src/methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,10 @@ static Handler recordHandler(recordMatcher, [](const MatchFinder::MatchResult& r
if(paramname.empty())
paramname = ("_p")+std::to_string(param->getFunctionScopeIndex());
auto origparamtype = param->getType().getUnqualifiedType();
// auto origparamtypestr = std::regex_replace(origparamtype.getAsString(), reg::classstructenum, "");
auto paramtype = origparamtype.getCanonicalType()
.getUnqualifiedType();
auto typedata = Typedata(paramtype, record->getASTContext());
auto origparamtypestr = typedata.cpptypestr;
auto origparamtypestr = std::regex_replace(param->getType().getAsString(), reg::classstructenum, "");

if(!typedata.ok)
{
Expand Down

0 comments on commit a499d8e

Please sign in to comment.