Classes | Functions | Variables
check_include_guards Namespace Reference

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()
 

Function Documentation

◆ build_valid_guard()

def check_include_guards.build_valid_guard (   fpath)

Definition at line 25 of file check_include_guards.py.

◆ load()

def check_include_guards.load (   fpath)

Definition at line 31 of file check_include_guards.py.

◆ save()

def check_include_guards.save (   fpath,
  contents 
)

Definition at line 36 of file check_include_guards.py.

Variable Documentation

◆ action

check_include_guards.action

Definition at line 183 of file check_include_guards.py.

◆ argp

check_include_guards.argp = argparse.ArgumentParser(description='include guard checker')

Definition at line 182 of file check_include_guards.py.

◆ args

check_include_guards.args = argp.parse_args()

Definition at line 185 of file check_include_guards.py.

◆ default

check_include_guards.default

Definition at line 183 of file check_include_guards.py.

◆ False

check_include_guards.False

Definition at line 183 of file check_include_guards.py.

◆ FILE_LIST_COMMAND

string check_include_guards.FILE_LIST_COMMAND = ' | '.join((git_command, grep_filter))

Definition at line 193 of file check_include_guards.py.

◆ filename_list

tuple check_include_guards.filename_list = []

Definition at line 197 of file check_include_guards.py.

◆ git_command

string check_include_guards.git_command = 'git diff --name-only HEAD'

Definition at line 189 of file check_include_guards.py.

◆ grep_filter

string check_include_guards.grep_filter = r"grep -E '^(include|src/core)/.*\.h$'"

Definition at line 187 of file check_include_guards.py.

◆ ok

bool check_include_guards.ok = True

Definition at line 196 of file check_include_guards.py.

◆ ROOT

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.

◆ validator

check_include_guards.validator = GuardValidator()

Definition at line 206 of file check_include_guards.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:01