Need direction to proceed with building a C++ code refactoring tool

Hi All,
       I am new to Clang. The the task I am working is on developing a C++
code refactoring tool. For this I have decided to use LibTooling. My
question for you is where do I start, which are the pre-requistes I need to
meet before starting with my work. Are there any available example code so
that I can get a hang of it.

Hi All,
       I am new to Clang. The the task I am working is on developing a C++
code refactoring tool. For this I have decided to use LibTooling. My
question for you is where do I start, which are the pre-requistes I need to
meet before starting with my work. Are there any available example code so
that I can get a hang of it.

Hi Subiah,

you can start by looking at the examples in the clang-tools-extra
repository (http://clang.llvm.org/docs/ClangTools.html documents how to get
them).

Let me know if you have more questions :slight_smile:

Cheers,
/Manuel

Hi Manuel,

Thanks for the reply. I will explore further and will let you know I have
any difficulties. Further Manuel, I got a link with CodeLite editor and
Clang for developing the tool. Do you think that this IDE will do good or if
I use it along with Visual Studio 2008.

I use vim & cmake on linux. Note that most of the docs assume Linux, and
that the Windows support (especially around tooling) is still pretty rough
:frowning:

Cheers,
/Manuel

I guess clang on windows is not great as on Linux and Mac.
But, I am not a clang developer, just a user.
Others may have better knowledge. Check it out.

Hi Manuel,

       I am co-developer with nagarajan.I follow the instruction in the
following link to work Codelite with Clang compiler in Windows.

     http://www.codelite.org/LiteEditor/ClangCompiler

But it seems not working.

Hi De Meetei,
                 Thank you as well for the reply. I am not given a choice
but to use windows. I am following this link
http://www.codelite.org/LiteEditor/ClangCompiler to setup my dev
environment. I am getting a few errors. Will try to fix them else will be
posting again for a possible solution. By the way "It's Always better to try
and fail instead of not doing/trying anything" quote is just apt.

Hi All,
       Just wanted to inform you all I just compiled and ran my sample c++
program using CodeLite and Clang.