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

Type resolution for variables / function arguments #478

Closed
levibus opened this issue Jul 3, 2024 · 1 comment
Closed

Type resolution for variables / function arguments #478

levibus opened this issue Jul 3, 2024 · 1 comment

Comments

@levibus
Copy link

levibus commented Jul 3, 2024

Hi, I would like to use scip to create normalized function names that contain their argument types. For example, the function

foo(int a, double b)

would look something like foo_int_double. I've tried looking at many different fields in the index.scip result (SymbolInformation.signature_documentation looked promising) but the fields I look at either don't contain relevant information or are blank. However, variable type resolution seems like something that could be found with scip. For instance, I'm thinking of when you hover over a variable in an IDE and it gives you the variable type or you hover over a function and it gives you the function declaration. How can I find the types of variables or function arguments in a scip file?

@varungandhi-src
Copy link
Contributor

scip-clang currently only supports information for code navigation, which doesn't include type information.

We have a proposed extension to SCIP to add structured signatures: sourcegraph/scip#231

If we were to add that to SCIP, then scip-clang could potentially record that information and it would be accessible from the generated index.

I'm thinking of when you hover over a variable in an IDE and it gives you the variable type or you hover over a function and it gives you the function declaration.

This is currently only part of the documentation strings.

I'm closing this as out-of-scope for now, as structured signatures haven't been added to SCIP.

@varungandhi-src varungandhi-src closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
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

2 participants