Home » Community » U++ community news and announcements » ide now using libclang
ide now using libclang [message #58835] |
Fri, 16 September 2022 10:57  |
 |
mirek
Messages: 14257 Registered: November 2005
|
Ultimate Member |
|
|
After 3 months of development, theide is now using libclang for Assist. There are still some issues to fix/improve, but overall it now seems stable enough (and useful) for the community to start using/testing.
Some notes and (sometimes) temporary issues:
- in Linux, we have yet to alter the installation script to install libclang. However, as we are using runtime loading for it, when not installed it just means Assist does not work...
- Unfortunately one of drawbacks of libclang is that it does not work inside templates. I have a workaround in mind for autocomplete maybe, but for now it is a feature, not a bug.
- There is a new function, Alt-U - find all usage of current function/variables. There are more to come...
- Navigator is now usable, but still needs some work. Will work a bit differently.
- All libclang parsing is done in background threads. It is MUCH heavier on computing resources than our home-grown parser. The impact can be to a degree adjusted in Setup... Especially "indexer" - the component that needs to recompile all files of project to keep track of everything - is heavy, probably needs at least 4 CPU cores to be used reasonable. It is possible to make it "on command" in setup. That said, with 5950X, it takes 11s to reindex theide sources, which IMO is fine.
(this merge happened right now, so it will be in nightly builds tomorrow)
|
|
|
Goto Forum:
Current Time: Mon May 12 20:12:57 CEST 2025
Total time taken to generate the page: 0.03947 seconds
|