Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.59k stars 282 forks source link

Code completion suggests out-of-scope variables #175

Open letangphuquy opened 3 years ago

letangphuquy commented 3 years ago

image

As you can see, y is in bracket closure, an inner scope. If I access y outside of the scope, this should get Compile Error.

letangphuquy commented 3 years ago

More example : image It should suggest at this instead : image

letangphuquy commented 3 years ago

The code-completion feature has few bugs as I listed above, from the Bloodshed-DevCpp. Hope you devs can fix it soon <3.