Get parameter name in Clion plugin
In a Clion plugin, I need to get a parameter name at the caller side, e.g. if a function is declared:
```void fun(int abc);```
and called
```fun(42);```
then when invoking an intent on '42' PsiElement, I need to get the corresponding parameter name, 'abc' in this example.
In a similar plugin for Intellij I get the parameter name using PsiCallExpression.resolveMethod(), which contains the list of declared parameters. How can I achieve a similar result in a Clion plugin? It is clear it should be possible, since the IDE itself displays parameter name hints.
Please sign in to leave a comment.