Lines Matching refs:r
53 PUBLIC_MACRO_PATTERN = r"^(MBEDTLS|PSA)_[0-9A-Z_]*[0-9A-Z]$"
54 INTERNAL_MACRO_PATTERN = r"^[0-9A-Za-z_]*[0-9A-Z]$"
56 IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$"
377 macro_regex = re.compile(r"# *define +(?P<macro>\w+)")
414 mbed_regex = re.compile(r"\b(MBED.+?|PSA)_[A-Z0-9_]*")
415 exclusions = re.compile(r"// *no-check-names|#error")
466 optional_c_identifier = r"([_a-zA-Z][_a-zA-Z0-9]*)?"
468 re.search(r"^(typedef +)?enum " + \
470 r" *{", line)):
473 re.search(r"^(typedef +)?enum", line)):
476 re.search(r"^{", line)):
479 re.search(r"^}", line)):
482 not re.search(r"^ *#", line)):
483 enum_const = re.search(r"^ *(?P<enum_const>\w+)", line)
497 r'/\*.*?\*/', # block comment entirely on one line
498 r'//.*', # line comment
499 r'(?P<string>")(?:[^\\\"]|\\.)*"', # string literal
520 m = re.search(r"\*/", line)
536 m = re.search(r"/\*", line)
550 r".* \**(\w+) *\( *\w",
552 r".*\( *\* *(\w+) *\) *\(",
554 r"(?:typedef +)?(?:struct|union|enum) +(\w+)(?: *{)?$",
556 r"}? *(\w+)[;[].*",
560 r"extern +\"C\"",
561 r"(typedef +)?(struct|union|enum)( *{)?$",
562 r"} *;?$",
563 r"$",
564 r"//",
565 r"#",
596 if re.search(r"^([\w\*\(]+\s+)+$", line):
742 nm_undefined_regex = re.compile(r"^\S+: +U |^$|^\S+:$")
743 nm_valid_regex = re.compile(r"^\S+( [0-9A-Fa-f]+)* . _*(?P<symbol>\w+)")
855 if re.search(r".*__.*", item_match.name):
883 typo_exclusion = re.compile(r"XXX|__|_$|^MBEDTLS_.*CONFIG_FILE$|"
884 r"MBEDTLS_TEST_LIBTESTDRIVER*|"
885 r"PSA_CRYPTO_DRIVER_TEST")