clair icon indicating copy to clipboard operation
clair copied to clipboard

Name matching functions

Open linuswagner opened this issue 1 year ago • 1 comments

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.

linuswagner avatar Jan 28 '24 16:01 linuswagner

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.

jurgenvinju avatar Jan 28 '24 19:01 jurgenvinju