Re: [cfe-users] got wrong parameter type using clang

2019-12-12 Thread henry ding via cfe-users
l found there were a typedecl which typedef string as int, this may be the reason std::string|int|/usr/include/c++/4.8.5/bits/stringfwd.h 2019-12-12 2:13 GMT+08:00, Richard Smith : > On Tue, 10 Dec 2019, 22:45 henry ding via cfe-users, < > cfe-users@lists.llvm.org> wrote: > >

[cfe-users] got wrong parameter type using clang

2019-12-10 Thread henry ding via cfe-users
simple test.cpp: void test(std::string xx,string bb,int aa){} clang usage: int getFuncInfo(Rewriter* TheRewrite,clang::ASTContext *Context, const FunctionDecl *func,FuncNode &node){ clang::LangOptions LangOpts; LangOpts.CPlusPlus = true; Policy.FullyQualifiedName = 1; ..