Classes | |
| class | GuardValidator |
Functions | |
| def | build_valid_guard (fpath) |
| def | load (fpath) |
| def | save (fpath, contents) |
Variables | |
| action | |
| argp = argparse.ArgumentParser(description='include guard checker') | |
| args = argp.parse_args() | |
| default | |
| False | |
| string | FILE_LIST_COMMAND = ' | '.join((git_command, grep_filter)) |
| list | filename_list = [] |
| string | git_command = 'git diff --name-only HEAD' |
| string | grep_filter = r"grep -E '^(include|src/core)/.*\.h$'" |
| bool | ok = True |
| ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) | |
| validator = GuardValidator() | |
| def check_include_guards.build_valid_guard | ( | fpath | ) |
Definition at line 25 of file check_include_guards.py.
| def check_include_guards.load | ( | fpath | ) |
Definition at line 31 of file check_include_guards.py.
| def check_include_guards.save | ( | fpath, | |
| contents | |||
| ) |
Definition at line 36 of file check_include_guards.py.
| check_include_guards.action |
Definition at line 183 of file check_include_guards.py.
| check_include_guards.argp = argparse.ArgumentParser(description='include guard checker') |
Definition at line 182 of file check_include_guards.py.
| check_include_guards.args = argp.parse_args() |
Definition at line 185 of file check_include_guards.py.
| check_include_guards.default |
Definition at line 183 of file check_include_guards.py.
| check_include_guards.False |
Definition at line 183 of file check_include_guards.py.
| string check_include_guards.FILE_LIST_COMMAND = ' | '.join((git_command, grep_filter)) |
Definition at line 193 of file check_include_guards.py.
| tuple check_include_guards.filename_list = [] |
Definition at line 197 of file check_include_guards.py.
Definition at line 189 of file check_include_guards.py.
| string check_include_guards.grep_filter = r"grep -E '^(include|src/core)/.*\.h$'" |
Definition at line 187 of file check_include_guards.py.
| bool check_include_guards.ok = True |
Definition at line 196 of file check_include_guards.py.
| check_include_guards.ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) |
Definition at line 178 of file check_include_guards.py.
| check_include_guards.validator = GuardValidator() |
Definition at line 206 of file check_include_guards.py.