Wrongly hightlighted unresolved/ambigious symbol

ReSharper 2022.3, but in fact since 2019.3, I've been encountering this. As is shown below, correct symbol is false alarmed unresolved. So is the HRESULT, highlighted ambigious symbol, while the code is correct itself. Not happening in 2019.1 and below.

1
3 comments

Sorry, I don't see this issue on the latest R# version:

This R# version is too old for us to support.

 

0

 

since 2019.3 this problem seems to persist, which may be affecting latest version. as is shown, in a new or small project, this doesn't arise. However, when i try to create a header in a solution a bit bigger, like thousands of lines of code, many strange problems occur.

then on a bigger project there are many false alerts.

though commctrl.h is not included here it doesn't make the symbol red, and even after i have included it later, this still occurs.

0

It seems like some necessary defines are missing and HRESULT is defined incorrectly. We need a repro project to investigate. You can try “Go to declaration” on HRESULT to check where R# thinks it's defined. And it's also better to check these things in compilable .cpp files, since standalone headers don't have proper compilation properties.

0

Please sign in to leave a comment.