i want to take a look at the clang compiler source code in emacs with help of lsp-mode and clangd.
to get the source code, i can use the installsources feature in gentoo, however, it does not provide the CMakeLists.txt with it: viewtopic-p-8618715-highlight-.html#8618715
so, i work with the source code unpacked with ebuild command and modified the .ebuild file to generate compile_commands.json: viewtopic-p-8621544-highlight-.html#8621544
now, the problems, when i open a .cpp code randomly, for example, /var/tmp/portage/sys-devel/clang-12.0.0-r1/work/clang/tools/clang-format/ClangFormat.cpp, it always says that the .h file in the include section is not founded.
with linux locate command, i can find that the /usr/lib/llvm/12/include folder contains the .h files included. However, even if i added this folder with lsp-workspace-folds-add command in emacs, the .h file is still said to be not found.
i can clone and build the project following https://clang.llvm.org/get_started.html, but i should not use make install this way since it will conflict with gentoo portage, right?
so, any tutorial on how to review the clang, llvm source code with emacs on gentoo?
