Difference between revisions of "Header Guard plugin"

From Code::Blocks
(Created page with "Category:Code::Blocks 3rd Party Plugins {{Infobox_Plugin| name = Header Guard | logo = File:Generic-plugin.png | developer = | maintainer = | version = 0.1.1 }}...")
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Code::Blocks 3rd Party Plugins]]
+
[[Category:Code::Blocks Core Plugins]]
 
{{Infobox_Plugin|
 
{{Infobox_Plugin|
 
   name = Header Guard |
 
   name = Header Guard |
 
   logo = [[File:Generic-plugin.png]] |
 
   logo = [[File:Generic-plugin.png]] |
   developer = |
+
   developer = Thomas Denk |
   maintainer = |
+
   maintainer = Thomas Denk |
 
   version = 0.1.1
 
   version = 0.1.1
 
}}
 
}}
Line 10: Line 10:
 
Adds a header guard to every <tt>.h</tt> file that doesn't have one when saving. Filenames are hashed to a 64-bit hex number to support umlaut characters (and Kanji, Cyrillic, or whatever) regardless of file encoding, and regardless of what's legal as a C/C++ macro name.
 
Adds a header guard to every <tt>.h</tt> file that doesn't have one when saving. Filenames are hashed to a 64-bit hex number to support umlaut characters (and Kanji, Cyrillic, or whatever) regardless of file encoding, and regardless of what's legal as a C/C++ macro name.
  
Header guard is included in Code::Blocks source code (<tt>[http://svn.berlios.de/wsvn/codeblocks/trunk/src/plugins/headerguard/ src/plugins/headerguard/]</tt>), however, it is not built by default.
+
The Header Guard plugin is included in Code::Blocks' source code (<tt>[http://svn.berlios.de/wsvn/codeblocks/trunk/src/plugins/headerguard/ src/plugins/headerguard/]</tt>), however, it is not built by default to prevent unexpected behavior.

Latest revision as of 13:21, 5 November 2011

Header Guard
Generic-plugin.png
Developer(s): Thomas Denk
Maintainer(s): Thomas Denk
Version: 0.1.1

Adds a header guard to every .h file that doesn't have one when saving. Filenames are hashed to a 64-bit hex number to support umlaut characters (and Kanji, Cyrillic, or whatever) regardless of file encoding, and regardless of what's legal as a C/C++ macro name.

The Header Guard plugin is included in Code::Blocks' source code (src/plugins/headerguard/), however, it is not built by default to prevent unexpected behavior.