New to Clang.

Hello,

I am new to clang and need some guidance as to where to start.

What I have done so far:

  1. I have retrieved LLVM and CLang.

  2. I have created a VS project using Cmake

  3. I have built LLVM and Clang using Visual Studio 2013 and the project ALL_BUILD

What I would like to do:

I would like to use the CLang LibTooling library to start creating a refactoring tool.

First try: I created a Visual Studio Project included all the header files according to the following link:
http://kevinaboos.wordpress.com/2013/07/23/clang-tutorial-part-ii-libtooling-example/

When I try to compile I get the error “Cannot open include file: ‘clang/Driver/Options.inc’: No such file or directory”.

I used the make file:

I don't know much about Windows or the MSVC build, but it sounds like you're using the
Makefile from the source directory -- which is not the right thing.

You should use the makefile from the build directory that cmake creates. If that's an
MSVC project, you should build that project (whatever that means).

E.g., on Mac OS X, it might look like this:

    $ git clone http://llvm.org/git/llvm.git llvm
    $ mkdir build
    $ cd build
    $ cmake -G Ninja ../llvm
    $ ninja

Hope that helps!

Hello,
I am new to clang and need some guidance as to where to start.

What I have done so far:
1. I have retrieved LLVM and CLang.
2. I have created a VS project using Cmake
3. I have built LLVM and Clang using Visual Studio 2013 and the project
ALL_BUILD

What I would like to do:
I would like to use the CLang LibTooling library to start creating a
refactoring tool.

First try: I created a Visual Studio Project included all the header files
according to the following link:

http://kevinaboos.wordpress.com/2013/07/23/clang-tutorial-part-ii-libtooling-example/

Yea, you cannot use the Makefile part of this tutorial - you'll need to use
CMake to build it (you can just cargo cult the CMakeLists.txt from a
different example directory and adapt it)

Cheers,
/Manuel