24.04
|
Go to the source code of this file.
Namespaces | |
check_header_guards | |
Functions | |
(int, int) | find_code_boundaries (List[str] lines) |
bool | is_define (str line) |
bool | is_endif (str line) |
bool | is_ifndef (str line) |
str | strip_comments (str line) |
bool | looks_like_header_guard (str line) |
Tuple[List[str], bool] | fix_header_guard (List[str] lines, str expected_header_guard, str comment_style) |
str | find_expected_header_guard (str filepath, str prefix, str add_extension, str drop_outermost_subdir) |
bool | skip_file (str filepath, List[str] extensions, List[str] exclude, List[str] include) |
Variables | |
logger = logging.getLogger("check_header_guards") | |
parser | |
type | |
str | |
nargs | |
help | |
required | |
choices | |
default | |
action | |
args = parser.parse_args() | |
files = args.files | |
extensions = args.extensions.split(",") | |
string | exclude = '' else [] |
string | include = '' else [] |
prefix = args.prefix | |
add_extension = args.add_extension | |
drop_outermost_subdir = args.drop_outermost_subdir | |
comment_style = args.comment_style | |
logging_level = logging.INFO | |
level | |
int | retval = 0 |
List | |
new_lines | |
guards_updated | |