I’d like for the
clang-format to check that each of my headers have the proper include guard.
For example, for the file
dopelib/dopestuff/whatitisyo.h, I’d like the code to be formatted like this:
#ifndef DOPELIB_DOPESTUFF_WHATITISYO_H #define DOPELIB_DOPESTUFF_WHATITISYO_H /** Code here. **/ #endif // DOPELIB_DOPESTUFF_WHATITISYO_H
clnag-format check this structure and make sure that the include guard is there and that it is named appropriately with the file name in the
#ifndef (sort of what cpplint does)?