[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-ui-dev] Error trying to Auto-Format C++ Code with // comments
|
I'm having trouble using Eclipse CDT to auto-format my code that has comment
lines like this:
// Render the object using wireframe patches
void renderWireframePatches(void) {
glPushMatrix();
transform();
//for_each(face_list.begin(), face_list.end(), outline);
for_each(&TMPatchFace::outline);
glPopMatrix();
}
when i use auto-format (CTR+SHIFT+F) it becomes this:
// Render the object using wireframe patches
void renderWireframePatches(void) {
glPushMatrix();
transform();
//for_each(face_list.begin(), face_list.end(), outline);
for_each(&TMPatchFace::outline);
glPopMatrix();
}
Does anyone know why that would be? If i change the comment style to /* ...
*/, the auto-format functionality works as expected. I'm totally stumped.
Thanks for the help,
Dave
--
View this message in context: http://www.nabble.com/Error-trying-to-Auto-Format-C%2B%2B-Code-with----comments-tp19364589p19364589.html
Sent from the Eclipse CDT - UI mailing list archive at Nabble.com.