cppIncludeGuard icon indicating copy to clipboard operation
cppIncludeGuard copied to clipboard

Is it possible to have a subfolder prefix for all folders?

Open headhunter45 opened this issue 2 years ago • 2 comments

I'm trying to setup my guards like this for "/Folder1/Folder2/File-Name With Spaces.h" "ProjectName__Folder1__Folder2__File_Name_With_Spaces_h__" As close as I have gotten so far. "ProjectName__FOLDER1_FOLDER2_FILE_NAME_WITH_SPACES_H__" I can get ProjectName with a prefix. I can get the 2 underscores at the end with a suffix. I can get the file path.

So my two questions/feature suggestions are.

  1. Don't change file/folder name case.
  2. Have a prefix for all subfolders so I can add the extra underscore.
  3. A prefix/suffix for the comment at the end. I'm looking for something like "// End !defined(MY_INCLUDE_GUARD)"

headhunter45 avatar Apr 28 '23 05:04 headhunter45

+1 for feature number 2

f-scholer avatar Feb 13 '24 12:02 f-scholer

For #2 https://github.com/AkiraMiyakoda/cppIncludeGuard/pull/442 I'll probably do the other two later.

headhunter45 avatar Jul 07 '24 20:07 headhunter45