cgmb / guardonce

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

Handle #endif with no space before comments #14

Closed cgmb closed 7 years ago

cgmb commented 7 years ago

The VulkanSDK includes a bunch of guards that end with stuff like: #endif//MATCH_H. They're valid, but guardonce expects a space or a newline after endif, so checkguard complains about them.

My goal is to have a smarter version of guardonce that actually understands comments (as mentioned in #7), but perhaps there's an easier fix for now.