cgmb / guardonce

Utilities for converting from C/C++ include guards to #pragma once and back again.
MIT License
142 stars 3 forks source link

Strip trailing whitespace after removing include guards #10

Closed cgmb closed 7 years ago

cgmb commented 8 years ago

It would be nice to have a flag for this. I try to ensure guardonce makes minimal changes to the files it touches, but removing the guards without removing the surrounding whitespace may violate style conventions. The Qt Creator changeover is a concrete example of a time when this would have been helpful.

bjorn commented 7 years ago

Missed this too, but Sublime Text helped me out with a regular expression like /\n\n\Z/\n/. :-)

cgmb commented 7 years ago

Hey! Thank you for the feedback. I'm glad you found guardonce useful. I tried out Tiled a couple years ago, and I was quite impressed.

bjorn commented 7 years ago

@cgmb Thanks!

Diversibee looks like an interesting project as well. :-)