Parameter name doesn't match rule "unknown element"

Resharper C++ can't figure out what is "myName"
void func(const std::string& myName)
{

}

I have rules for parameter names, but since resharper can't figure out where is parameter, it says that I violate naming rule for "unknown element". I can't even edit naming rules for "unknown elements".

2 comments

Hello!

When you see "Unknown element" this means that the element did not match any naming rule at all. We plan to hide the naming inspection in cases like this (https://youtrack.jetbrains.com/issue/RSCPP-26083).

Could you please show what your naming rule for parameters looks like? Or just export naming settings and we'll take a look.

0

Ah, Entity Kind was unset. Don't know how that happened, but now it works.

Thanks Igor.

0

Please sign in to leave a comment.