Menu

#274 cppparser: autocompletion ignores #define's

open
nobody
None
5
2012-09-26
2004-07-09
No

in example

define otherfunc(a) testfunc(a)

int testfunc(int a);

int main(int argc, char *argv[])
{
test<ctrl+space>
return 0;
}
--
on ctrl+space - doesn't give any tip unless I added the
function on the bottom:
--

define otherfunc(a) testfunc(a)

int testfunc(int a);

int main(int argc, char *argv[])
{
test<ctrl+space>
return 0;
}

int testfunc(int a)
{
return 0;
}
--
Now it shows the testfunc in the list. But if I instead do:
--

define otherfunc(a) testfunc(a)

int testfunc(int a);

int main(int argc, char *argv[])
{
other<ctrl+space>
return 0;
}

int testfunc(int a)
{
return 0;
}
--
other<ctrl+space> doesn't ever show me the otherfunc -
which is just an alias to testfunc.

a better example would be to include <windows.h> and
typing MessageBo<ctrl+space> - autocompletion should
suggest MessageBoxA, MessageBoxW AND MessageBox (which
is in #define) - instead it suggests just the first two.
MessageBox is defined:
int WINAPI MessageBoxA(HWND,LPCSTR,LPCSTR,UINT);

define MessageBox MessageBoxA

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.