[cfe-dev] LibTooling Tutorial directory paths

Phil King via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 7 08:43:16 PDT 2019


Thanks for the clarification.
I've tried putting the files in ~/clang-llvm/clang-tool-extra/loop-convert and adding add_subdirectory(loop-convert) to ~/clang-llvm/clang-tool-extra/CMakeLists.txt.
However, I think there must be something else I need to do as a "make" does not result in anything new being built!
Do I need to pass -DLLVM_ENABLE_PROJECTS=<something> to cmake?
Phil. 

    On Thursday, 6 June 2019, 08:54:21 BST, Ilya Biryukov <ibiryukov at google.com> wrote:  
 
 Hi Phil,
Use ~/clang-llvm/clang instead of ~/clang-llvm/tools/clang, and put the new tool in ~/clang-llvm/clang-tools-extra instead of ~/clang-llvm/tools/clang/tools/extra.LLVM has two supported directory layouts and the tutorial was only partially updated to use the new monorepo layout.
On Wed, Jun 5, 2019 at 4:26 PM Phil King via cfe-dev <cfe-dev at lists.llvm.org> wrote:

I'm trying to work through the "Create a ClangTool" tutorial at https://clang.llvm.org/docs/LibASTMatchersTutorial.html
The instructions include "cd ~/clang-llvm/llvm/tools/clang", but this directory does not exist within the tree that's generated from the previous stages. "~/clang-llvm/llvm/tools/" is there.
Various other commands also depend on similar paths.
Where should the loop-convert directory be placed?
Thanks
Phil._______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



-- 
Regards,Ilya Biryukov  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190607/7cb85702/attachment.html>


More information about the cfe-dev mailing list