Browsing wxWidgets source code

General questions regarding the usage of CodeLite
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Browsing wxWidgets source code

Post by eranif »

Nosferax wrote:I don't really know -where- it's supposed to be located...
that explains why it does not work for you
Nosferax wrote:I did find something that looks to be it in ./CodeLite/tags_option_data.cpp, but there is no line containing the PyAPI thing.
Its not hard coded...

The 'token replacement table' is edited by the GUI, you can edit it from (the menu bar):
'Settings -> Tags Settings -> Advanced'

and then select the 'Tokens' sub page.

At the bottom of that list, add this entry:

Code: Select all

re:PyAPI_FUNC\(([0-9a-zA-Z_\*:&]*)\)=\1
And retag your workspace (full)

Eran
Make sure you have read the HOW TO POST thread
User avatar
Nosferax
CodeLite Enthusiast
Posts: 20
Joined: Fri Feb 05, 2010 4:59 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Browsing wxWidgets source code

Post by Nosferax »

Oh, yes. Now that makes more sense :D

But still, it didn't work...

Completion shows PyObject_CallFunction and PyObject_CallMethod, but not the variants ending in ObjArgs...

So, what I've done so far :

- Get the revision in which you added regexpression support for tokens (4080)
- Added the token to the list :
re:PyAPI_FUNC\(([0-9a-zA-Z_\*:&]*)\)=\1
- Retagged my workspace (full)

Now I have no idea what is the problem. Sorry for the trouble :P

Nox
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Browsing wxWidgets source code

Post by eranif »

Completion shows PyObject_CallFunction and PyObject_CallMethod, but not the variants ending in ObjArgs...
Can you explain it with details?

Also:
- Make sure you also replace codelite_indexer (should be done automatically for you if you are using 'make install')
- Change the regex into (I added a space)

Code: Select all

re:PyAPI_FUNC\(([0-9a-zA-Z_\*:& ]*)\)=\1
- Make sure that your code is including the relevant files (e.g. abstract.h)

Also, please paste here the output of the 'Trace' tab once the re-tag is done
Eran
Make sure you have read the HOW TO POST thread
User avatar
Nosferax
CodeLite Enthusiast
Posts: 20
Joined: Fri Feb 05, 2010 4:59 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Browsing wxWidgets source code

Post by Nosferax »

Okay, adding the space did the trick.

I got it now, thanks!

Nox
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Browsing wxWidgets source code

Post by eranif »

I added a wiki page on this subject:

http://codelite.org/LiteEditor/MacrosHandling101

You can also find this page from the main documentation page of codelite (search 'macros'):

http://codelite.org/LiteEditor/Documentation

Eran
Make sure you have read the HOW TO POST thread
Post Reply