cgmb / guardonce

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

checkguard.py should understand #pragma once #9

Closed cgmb closed 7 years ago

cgmb commented 10 years ago

Typically, checkguard is looking for files with mismatched include guards. Files with a #pragma once don't need to be included in the error list by default.

cgmb commented 7 years ago

Fixed in v2.0.0

Use --only guard if you want #pragma once to be considered an error, or --only once if you want include guards to be considered an error.