/qemu/scripts/codeconverter/codeconverter/ |
H A D | test_regexps.py | 13 def fullmatch(regexp, s): argument 14 return re.fullmatch(regexp, s, re.MULTILINE) 116 print(TypeInfoVar.regexp) 119 assert fullmatch(TypeInfoVar.regexp, test_empty) 128 assert re.search(TypeInfoVar.regexp, test_simple, re.MULTILINE) 144 assert re.search(TypeInfoVar.regexp, test_interfaces, re.MULTILINE) 158 assert re.search(TypeInfoVar.regexp, test_comments, re.MULTILINE) 173 assert re.search(TypeInfoVar.regexp, test_comments, re.MULTILINE) 223 print(InitialIncludes.regexp)
|
H A D | qom_macros.py | 104 regexp = S(r'^[ \t]*typedef', SP, variable in SimpleTypedefMatch 135 regexp = RE_STRUCT_TYPEDEF variable in FullStructTypedefMatch 247 regexp = RE_CHECK_MACRO variable in TypeCheckMacro 442 regexp = S(RE_MACRO_DEFINE, variable in InterfaceCheckMacro 576 regexp = RE_FILE_BEGIN variable in TypeDeclarationFixup 644 regexp = RE_FILE_BEGIN variable in DeclareVoidTypes 697 regexp = S(r'^[ \t]*DECLARE_TYPE_NAME\s*\(', variable in DeclareTypeName 706 regexp = S(r'^[ \t]*OBJECT_DECLARE_TYPE\s*\(', variable in ObjectDeclareType 762 regexp = RE_INCLUDE variable in Include 768 regexp = S(RE_FILE_BEGIN, variable in InitialIncludes [all …]
|
H A D | test_patching.py | 13 regexp = '[abc]{3}' variable in BasicPattern 50 regexp = S(r'BEGIN\s+', NAMED('name', RE_IDENTIFIER), r'\n', variable in Function 54 regexp = S(r'^\s*', NAMED('name', RE_IDENTIFIER), r'\(\)\n') variable in Statement
|
H A D | qom_type_info.py | 36 regexp = RE_ARRAY_ITEM variable in ArrayItem 39 regexp = RE_ARRAY variable in ArrayInitializer 46 regexp = RE_TI_FIELD_INIT variable in FieldInitializer 100 regexp = S(NAMED('begin', RE_TYPEINFO_START), variable in TypeInfoVar 428 regexp = S(r'^[ \t]*OBJECT_DEFINE_TYPE_EXTENDED\s*\(\s*', variable in ObjectDefineTypeExtended 441 regexp = S(r'^[ \t]*OBJECT_DEFINE_TYPE\s*\(\s*', variable in ObjectDefineType 490 regexp = S(r'^[ \t]*#[ \t]*define', CPP_SPACE, variable in AddDeclareVoidInstanceType 808 regexp = S(r'^[ \t]*type_init\s*\(\s*', NAMED('name', RE_IDENTIFIER), r'\s*\);?[ \t]*\n') variable in TypeInitMacro 825 regexp = S(r'static\s+void\s+', NAMED('name', RE_IDENTIFIER), r'\s*\(\s*void\s*\)\n', variable in StaticVoidFunction 856 regexp = S(r'^[ \t]*', NAMED('func_name', 'type_register_static'), variable in TypeRegisterStaticCall [all …]
|
H A D | patching.py | 46 regexp: Optional[str] = None variable in FileMatch 60 return re.compile(klass.regexp, re.MULTILINE) 214 regexp = r'(?s).*' # (?s) is re.DOTALL variable in FullMatch 326 if not hasattr(klass, 'regexp') or klass.regexp is None: 330 DBG("regexp: %s", klass.regexp)
|
/qemu/scripts/codeconverter/ |
H A D | converter.py | 62 or not match_classes[c].regexp:
|