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

Name matching functions #81

Open
linuswagner opened this issue Jan 28, 2024 · 1 comment
Open

Name matching functions #81

linuswagner opened this issue Jan 28, 2024 · 1 comment

Comments

@linuswagner
Copy link
Collaborator

When I extract function and method names from the AST, I want to match them to their corresponding logical names in the M3.

The M3 includes the structure of the arguments in the name. It would be nice to have somewhere a "full name to argument-less" relation. Looks like cFunctionsToNoArgs could do something like that, but on my C++ code, there's no difference.

@jurgenvinju
Copy link
Member

The decl keyword field on AST nodes is supposed to provide this match. It's of type loc and on declarations tells us what the resolved qualified name is of the declared artifact. On expressions and other names in statements it annotates uses of names with the resolved qualified URI.

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

No branches or pull requests

2 participants