Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
pragma_once_to_guards.py File Reference

Go to the source code of this file.

Namespaces

namespace  pragma_once_to_guards
 

Functions

 pragma_once_to_guards.guard_name (path)
 
 pragma_once_to_guards.headers ()
 
 pragma_once_to_guards.convert (text, guard)
 
 pragma_once_to_guards.wrap_unguarded (text, guard)
 
 pragma_once_to_guards.main ()
 

Variables

str pragma_once_to_guards.SRC = 'src'
 
dict pragma_once_to_guards.SKIP_DIRS = {'external'}
 
 pragma_once_to_guards.PRAGMA_RE = re.compile(r'^[ \t]*#[ \t]*pragma[ \t]+once[ \t]*\r?\n', re.M)
 
 pragma_once_to_guards.GUARD_RE
 
dict pragma_once_to_guards.XMACRO_HEADERS
 
str pragma_once_to_guards.MODELINE = '// clang-format off\n// modelines:'