Code hinting And Autocompletion questions

General questions regarding the usage of CodeLite
Sidar
CodeLite Enthusiast
Posts: 13
Joined: Fri May 04, 2012 6:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Code hinting And Autocompletion questions

Post by Sidar »

Code Hinting:(Maybe I overlooked it)
Does codelite support code hinting? In the sense that it underlines variables and such (I.E. Never used variables ) or points out when a syntax error is made.

As for auto-completion:
Why can't I filter out an include folder?
I'm using SFML and when I type

Code: Select all

#include <SFML
And hit control space, nothing happens.

When I type:

Code: Select all

#include <SFML/
it shows me everything within the project except the SFML headers.

My project does compile normal without complaining about the SFML headers and such. The auto completion just isn't doing much?

Also:
Any link to a page explaining why I would want to use clang over ctag?

OS and version:
Windows 7 Enterprise.
v3.5.5377
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code hinting And Autocompletion questions

Post by eranif »

Sidar wrote:Does codelite support code hinting? In the sense that it underlines variables and such (I.E. Never used variables ) or points out when a syntax error is made.
No
Sidar wrote:it shows me everything within the project except the SFML headers.
I will check this one out

Sidar wrote:Also:
Any link to a page explaining why I would want to use clang over ctag?
http://www.codelite.org/LiteEditor/ClangIntegration35

Eran
Sidar
CodeLite Enthusiast
Posts: 13
Joined: Fri May 04, 2012 6:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code hinting And Autocompletion questions

Post by Sidar »

No
Well are there any plans for that or is that practically impossible to implement it with the current structure?


Edit:
Reading the clang page...I'm not really sure if im doing it right. But is it also necessary to include paths to libraries such as SFML? In fact if i don't add the include path to clang it says it doesn't know what SFML is.

Thanks for the Reply
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code hinting And Autocompletion questions

Post by eranif »

Sidar wrote:Well are there any plans for that or is that practically impossible to implement it with the current structure?
There are no plans on implementing it at this point in time. Simply from resources point of view.
Sidar wrote:But is it also necessary to include paths to libraries such as SFML?
codelite should get the include paths from the project settings, so unless you are using your own makefile and not using codelite's build system, you should not add anything (assuming that you already specified the path to SFML in the project settings)

Eran
Make sure you have read the HOW TO POST thread
Sidar
CodeLite Enthusiast
Posts: 13
Joined: Fri May 04, 2012 6:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code hinting And Autocompletion questions

Post by Sidar »

Well I have added the SFML includes to the compilers include path.
I might be doing something completely wrong( even though my project runs fine with no errors whatsoever), maybe also why the #include auto complete doesn't work.
But i had to add it manually for clang as well.

include paths is set to:

Code: Select all

.;$(ProjectPath)/SFML/include
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code hinting And Autocompletion questions

Post by eranif »

Sidar wrote:.;$(ProjectPath)/SFML/include
can you try and add it using full paths without macros?

Eran
Make sure you have read the HOW TO POST thread
Sidar
CodeLite Enthusiast
Posts: 13
Joined: Fri May 04, 2012 6:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code hinting And Autocompletion questions

Post by Sidar »

If you meant for the #include completion: No effect.
Absolute path works for clang though.
Post Reply