I’ve been having trouble getting “Goto Symbol” (with or without a project) working on some of the functions in my C project which are prepended by macros.
For example, this works:
static void test(void);
static void test(void)
{
return;
}
but if I have code like this:
static void test(void);
SECTION("dram") static void test(void)
{
return;
}
then “Goto symbol”->“test” only finds the declaration on line 1, not the definition afterwards. I’ve found the problem is due to the parenthesis around the “read”. Presumably the parser is deciding that the function is called “SECTION” rather than “test”.
Does anyone know of any workaround for this? We use that kind of code all over this place in this project and it’s not likely to change at this point.
Thanks for the help!