Re: [cfe-users] add method to a existing class and save to source file

2018-05-04 Thread Jonas Toth via cfe-users
This is a question relating clang-refactor i guess. Maybe ask on cfe-dev since its development specific. Am 05.05.2018 um 02:22 schrieb ? ?? via cfe-users: > Dear Clang users:       >       I have a class named  classA  in a.h and a.cpp file. it have > some methods, I want to add a new method def

[cfe-users] add method to a existing class and save to source file

2018-05-04 Thread ? ?? via cfe-users
Dear Clang users: I have a class named classA in a.h and a.cpp file. it have some methods, I want to add a new method definition to a.h and add new method body after last method use clang . How to do it ? I know the RecursiveASTVisitor::VisitCXXRecordDecl(...) can visit CXXRecordD