Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

any guide on review clang compiler source code in emacs?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
guyuming
Apprentice
Apprentice
Posts: 269
Joined: Thu Nov 19, 2020 1:09 am

any guide on review clang compiler source code in emacs?

  • Quote

Post by guyuming » Mon Jun 14, 2021 12:40 am

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?
Top
Post Reply
1 post • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic