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

Symbols in "additional C code" section of YACC file are not always handled correctly #50

Open
thoni56 opened this issue Feb 21, 2020 · 0 comments

Comments

@thoni56
Copy link
Owner

thoni56 commented Feb 21, 2020

If you have a grammar with some function declared in the last ("additional C code") section (Outline of a Bison grammar) the symbols inside a function is handled correctly (in that a goto-definition works as expected).

But a static or non-static function defined in that section does not seem to have a symbol table entry ("Definition not found"). This works as expected in the generated C file.

An example is the cgram.y in c-xrefactory itself.

The effect of this is also that renaming such a function will only change the references and not the definition.

@thoni56 thoni56 changed the title Symbols in "additional C code" section of YACC file are not handled correctly Symbols in "additional C code" section of YACC file are not always handled correctly Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant