Creating parameters for a function with clang
问题 I have source code which looks like this, void update(); void update() { } Iam trying to parse this code with clang and modify the code to this. typedef float v4sf attribute ((vector_size(16))); void update(v4sf& v1, v4sf& v2); void update(v4sf& v1, v4sf& v2) { } I looked at the Rewriter classes of clang. In the function which i wrote as shown below, MyRecursiveASTVisitor::VisitFunctionDecl(FunctionDecl *f) FunctionDecl has setParams() method which i could use. I would have to create params