The aim is to Parse c++ files using LLVM Clang,
#include
https://clang.llvm.org/doxygen/group__CINDEX__CURSOR__TRAVERSAL.html
----
cmake -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld" -G "Visual Studio 17 2022" -A Win32 -Thost=x64 ..\llvm
Then built via VS2022: ALL-BUILD, release, win32
----
Everything is working as it should until attempting to use: clang_getFirstChild
https://clang.llvm.org/doxygen/classclang_1_1syntax_1_1Tree.html#a8b68e6f1894be0984b99af45b1137140
Including the necessary library within main(), no other additional code, generates build errors:
#include "clang/Tooling/Syntax/Tree.h"
Not the first error but top of the red list:
\llvm\include\llvm\Support\Compiler.h(18,10): error C1083: Cannot open include file: 'llvm/Config/llvm-config.h': No such file or directory
-----------
I'm very new to LLVM Clang, but suspect the issue has something to do with the cmake stage. How do I fix this?