24.02.1
|
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 | |
str check_header_guards.find_expected_header_guard | ( | str | filepath, |
str | prefix, | ||
str | add_extension, | ||
str | drop_outermost_subdir | ||
) |
Definition at line 127 of file check_header_guards.py.
References arm_compute.join().
Tuple[List[str], bool] check_header_guards.fix_header_guard | ( | List[str] | lines, |
str | expected_header_guard, | ||
str | comment_style | ||
) |
Definition at line 84 of file check_header_guards.py.
References find_code_boundaries(), is_define(), is_endif(), and looks_like_header_guard().
bool check_header_guards.is_define | ( | str | line | ) |
Definition at line 56 of file check_header_guards.py.
Referenced by fix_header_guard().
bool check_header_guards.is_endif | ( | str | line | ) |
Definition at line 59 of file check_header_guards.py.
Referenced by fix_header_guard().
bool check_header_guards.is_ifndef | ( | str | line | ) |
bool check_header_guards.looks_like_header_guard | ( | str | line | ) |
Definition at line 77 of file check_header_guards.py.
References is_ifndef(), and strip_comments().
Referenced by fix_header_guard().
bool check_header_guards.skip_file | ( | str | filepath, |
List[str] | extensions, | ||
List[str] | exclude, | ||
List[str] | include | ||
) |
Definition at line 140 of file check_header_guards.py.
action |
Definition at line 170 of file check_header_guards.py.
add_extension = args.add_extension |
Definition at line 181 of file check_header_guards.py.
args = parser.parse_args() |
Definition at line 174 of file check_header_guards.py.
choices |
Definition at line 165 of file check_header_guards.py.
comment_style = args.comment_style |
Definition at line 183 of file check_header_guards.py.
default |
Definition at line 166 of file check_header_guards.py.
drop_outermost_subdir = args.drop_outermost_subdir |
Definition at line 182 of file check_header_guards.py.
string exclude = '' else [] |
Definition at line 178 of file check_header_guards.py.
extensions = args.extensions.split(",") |
Definition at line 177 of file check_header_guards.py.
Referenced by CLDevice.CLDevice(), arm_compute.device_supports_extension(), and arm_compute::test::validation.TEST_CASE().
files = args.files |
Definition at line 176 of file check_header_guards.py.
guards_updated |
Definition at line 199 of file check_header_guards.py.
help |
Definition at line 162 of file check_header_guards.py.
string include = '' else [] |
Definition at line 179 of file check_header_guards.py.
level |
Definition at line 186 of file check_header_guards.py.
List |
Definition at line 197 of file check_header_guards.py.
logger = logging.getLogger("check_header_guards") |
Definition at line 31 of file check_header_guards.py.
logging_level = logging.INFO |
Definition at line 185 of file check_header_guards.py.
nargs |
Definition at line 162 of file check_header_guards.py.
new_lines |
Definition at line 199 of file check_header_guards.py.
parser |
Definition at line 157 of file check_header_guards.py.
prefix = args.prefix |
Definition at line 180 of file check_header_guards.py.
Referenced by PrettyPrinter.print_error().
required |
Definition at line 164 of file check_header_guards.py.
int retval = 0 |
Definition at line 188 of file check_header_guards.py.
Referenced by Tensor.call_accessor(), WallClock< output_timestamps >.start(), WallClock< output_timestamps >.stop(), OpenCLMemoryUsage.test_start(), and OpenCLClock< output_timestamps >.test_start().
str |
Definition at line 162 of file check_header_guards.py.
type |
Definition at line 162 of file check_header_guards.py.