eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.08k stars 444 forks source link

Handle anonymous classes #3399

Closed AJenbo closed 1 week ago

AJenbo commented 4 weeks ago

Fixes #3398

Generate a name similar to the run time names for anonymous classes, when encountering a classes with no identifier.

Before this PR a class with no identifier would not be set as the current scope so it's content would instead be assigned to which ever previous scope was set (usually a method) which could lead to crashes when trying to cast it to a class.