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.rel (path)
 
 pragma_once_to_guards.trailer_index (text)
 
 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

 pragma_once_to_guards.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
 pragma_once_to_guards.SRC = os.path.join(ROOT, 'src')
 
dict pragma_once_to_guards.SKIP_DIRS = {'external'}
 
tuple pragma_once_to_guards.HEADER_SUFFIXES = ('.h', '.hh', '.hpp', '.hxx')
 
 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
 
dict pragma_once_to_guards.TRIPWIRE_HEADERS
 
dict pragma_once_to_guards.UNGUARDED_BY_DESIGN = XMACRO_HEADERS | TRIPWIRE_HEADERS
 
tuple pragma_once_to_guards.MODELINES = ('// clang-format off\n// modelines:', '// modelines:')