References don't work for local variables
Posted: Wed Mar 17, 2021 11:20 am
While trying to understand a complex code base, I discovered that Goto Declaration, Goto Implementation, and Search -> Find References don't appear to work for local variables. Here is a small, standalone code sample that demonstrates this. Within Codelite, only global_int gets any results for those 3 search actions. Those 3 search actions don't do anything with local variables - main_int, ret, param_int, func1_int. Is this intentional?
Thanks.
Thanks.
Code: Select all
#include <stdio.h>
int global_int = 4;
int func1(int param_int)
{
int func1_int = 3;
func1_int *= param_int;
func1_int += global_int;
printf("func1 ret: %d\n", func1_int);
return func1_int;
}
int main(int argc, char **argv)
{
int main_int = global_int + 1;
printf("main hello world\n");
int ret = func1(main_int);
printf("main ret: %d\n", ret);
return 0;
}