Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros with same name in different C files are considered the same #60

Open
thoni56 opened this issue May 1, 2020 · 1 comment
Open
Labels

Comments

@thoni56
Copy link
Owner

thoni56 commented May 1, 2020

Looking at GetChar() in c-xrefactory itself, you will find it in lex.c, classfilereader.c and cxfile.c.

Pushing one of them and navigating through all references you will see that they are somehow considered the same by c-xrefactory.

(The example was taken from commit 0bec71f in case those functions are refactored out or renamed in later commits.)

@thoni56 thoni56 added the bug label May 1, 2020
@thoni56
Copy link
Owner Author

thoni56 commented May 11, 2020

This is an example of when to apply -exactpositionresolve option...

It seems like this flag is stored in the Tags file and tags generated without it are incompatible with c-xref updates running without that option, and vice versa.

It would be good to have the precision of -exactpositionresolve with out the cost of losing fast updates...

I am unsure why the macros in the example are missinterpreted since they are local to the C-files they reside in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant