Re: Semantic confuses between local variable and function with the same name
Eric Ludlam <[email protected]> Sun, 22 Mar 2015 15:17:45 -0400
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 03/06/2015 04:19 AM, Tu Do wrote:
> For example, if I have a local variable named "max", i.e. int max = 0; ,
> and another function named "max", Semantic won't recognize the current
> max in scope as variable, but max as an external function.
I tried an experiment:
int max(int a, int b) {
}
int main() {
int max = 1;
int b;
b = max!
}
If I analyze at the !, I get the variable. If I ask for possible
completions, I get the function. I think the local context is doing
ok. Completion tends to just care about getting the text right by
scanning for all the possible symbols, and picking out something based
on some relatively criteria.
Does that match your expectation?
Eric
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/