saaadhu / naggy

A live compiler diagnostics extension for Atmel Studio
18 stars 4 forks source link

C++11 warnings with AS7 and Naggy 4.0? #55

Open dinvlad opened 8 years ago

dinvlad commented 8 years ago

Hi Senthil,

I'm experiencing a strange issue described in http://www.avrfreaks.net/forum/empty-tooltips-broken-syntax-highlighting-arduino-atmel-studio-7, or rather even a few of them:

1) some keywords (e.g. PROGMEM) are getting highlighted unless put before the name of the variable. It appears to work correctly for arrays though.

2) Some C++11-specific constructs (e.g. parameter names in variadic templates) are marked as errors, even though compilation runs successfully after I added '-std=c++11' to compiler flags.

3) Most important of all, all tooltips that are supposed to explain any errors are empty.

(3) may be due to some other unrelated issue with AS7, but (1) and (2) look like they could be due to Naggy. I should also note that my stock version of AS7 didn't ship with Naggy installed, so I had to manually download it from the gallery. Installing it didn't appear to make any difference though.

In addition, (1) and (2) only appear after I make an intentional typo in my code. When I first load otherwise my code, even if it contains that typo, they (along with the typo) don't show up.

Thanks a lot, Denis