News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

ClangComplete plugin

Started by Lalaland, November 10, 2011, 03:51:45 PM

Previous topic - Next topic

Lalaland

#45
As promised, here are some pictures(I wanted to refactor the code first):



And this is the same code that the current code completion could not handle


EDIT: I am now also using the previously suggested code for manually adding in gcc's search paths.

ollydbg

Quote from: Lalaland on November 22, 2011, 11:08:55 PM
As promised, here are some pictures(I wanted to refactor the code first):



And this is the same code that the current code completion could not handle


EDIT: I am now also using the previously suggested code for manually adding in gcc's search paths.
Wonderful job!
I will take time to check it works under Windows+mingw. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ollydbg

#47
Hi, found another clang plugin:
A Small Matter of Programming: A Vim plugin for navigating C++ with libclang

which can navigate in C++ source code. :D :D :D

Edit:
Another one:
https://github.com/jessevdk/gedit-code-assistance
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Lalaland

#48
I now have actual file control, with a calltip if the file is not done yet. I am using a map of translation units to filenames, and it tries to compile all of the files in a project on project load.

That was the last goal on the list, so it is going to be time to make a new list of stuff to do ...

Sadly I am going to have to ditch accessablity, no-one replied to my email on the clang mailing list, and I want to be able to use the official precompiled libclang libraries.

Apxont

Is possible to save all clang trans units to cache, and then recreate them from cache without reparsing them from files by standart methods, or recreation must be implemented by programmer?

Lalaland

According to the API, clang should be caching it's results for individual translation units. I am also holding onto translation units for files.

dmoore

Has anyone successfully used this plugin recently?

I managed to build it on linux after fixing some weird includes, but so far trying to run i either get segfaults or a completion tip that says it is still parsing. Any tips?
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]