eclipse-cdt-cloud / cdt-gdb-adapter

CDT GDB Debug Adapter
Eclipse Public License 2.0
27 stars 40 forks source link

Remove parenthesis cleanup & extra getFullPathExpression() calls #322

Open WyoTwT opened 7 months ago

WyoTwT commented 7 months ago

The total removal of parenthesis removes casting parenthesis and breaks potential watch expressions so this cleanup should be removed. Instead of calling getFullPathExpression() multiple times, built the fullPath from the topLevelExpression variable. In the case of Expressions, add encapsulating parenthesis to handle type casting properly. Update casting tests accordingly.