FemtoIDE
FemtoIDE copied to clipboard
IDE: C++ beautify
const
is always splitted on a new line:
Example:
bool Point::RectCollision(const Point & p1,const Point & s1, const Point & p2, const Point & s2)
becomes:
bool Point::RectCollision(const Point & p1,
const Point & s1,
const Point & p2,
const Point & s2)
Woops. This makes sense in JavaScript, but not in C++. This kind of problem is inevitable, unfortunately, since we're using a JS beautifier for C++ as a stopgap. The idea was to use clangd instead, but that seems to be so unreliable (see #96) I'm almost giving up on it.