title: How do I use Clang from a C# project?
body: <p>My goal is to use <code>Clang</code> within a <code>C#</code> program to parse <code>C++</code> source code and build an <code>AST</code>.</p>
  
  <p>If I understand correctly, I need to get <code>libClang</code> from somewhere as it is a <code>C</code> wrapper around <code>Clang</code>, and then I should be able to use the code in the following link to be able to use <code>libClang</code> from a <code>C#</code> project.</p>
  
  <p><a href="https://github.com/SimonRichards/clang-sharp" rel="nofollow">https://github.com/SimonRichards/clang-sharp</a></p>
  
  <p>My problem is I am lost on how to install <code>Clang</code>. I have download the source from here:</p>
  
  <p><a href="https://github.com/FunkMonkey/libClang" rel="nofollow">https://github.com/FunkMonkey/libClang</a></p>
  
  <p>and I tried running the makefiles through the visual studio command prompt but it just gives me an error:</p>
  
  <p><code>Makefile(14) : fatal error U1034: syntax error : separator missing
  Stop.</code></p>
  
  <p>I'm quite confused as I'm not used to github and makefiles. I think the general process I need to follow is:</p>
  
  <ol>
  <li>Install <code>LLVM</code> - where and what is this?</li>
  <li>Install <code>Clang</code> - where is this?</li>
  <li>Install <code>libClang</code> - how to run the makefiles?</li>
  <li>Use SimonRichard's <code>clang-sharp</code></li>
  </ol>