(defn, preprocess=True, predefined_types=None, arch=None)
return _decl_to_type(decl, arch=arch), node.name
Parse a simple type expression into a SimType, returning the a tuple of the type object and any associated name
    that might be found in the place a name would go in a type declaration.

    >>> parse_type_with_name('int *foo')
Parse a simple type expression into a SimType, returning the a tuple of the type object and any associated name
    that might be found in the place a name would go in a type declaration.
Parse a simple type expression into a SimType returning the a tuple of the type object and any associated name that might be found in the place a name would go in a type declaration .
def parse_type_with_name(defn, preprocess=True, predefined_types=None, arch=None):  # pylint:disable=unused-argument
    """
    Parse a simple type expression into a SimType, returning the a tuple of the type object and any associated name
    that might be found in the place a name would go in a type declaration.

    >>> parse_type_with_name('int *foo')
    """
    if pycparser is None:
        raise ImportError("Please install pycparser in order to parse C definitions")

    if preprocess:
        defn = re.sub(r"/\*.*?\*/", r"", defn)

    node = _type_parser_singleton.parse(text=defn, scope_stack=_make_scope(predefined_types))
    if not isinstance(node, pycparser.c_ast.Typename) and \
            not isinstance(node, pycparser.c_ast.Decl):
        raise pycparser.c_parser.ParseError("Got an unexpected type out of pycparser")

    decl = node.type
    return _decl_to_type(decl, arch=arch), node.name
def parse_type_with_name ( defn , preprocess = True , predefined_types = None , arch = None ) : # pylint:disable=unused-argument if pycparser is None : raise ImportError ( "Please install pycparser in order to parse C definitions" ) if preprocess : defn = re . sub ( r"/\*.*?\*/" , r"" , defn ) node = _type_parser_singleton . parse ( text = defn , scope_stack = _make_scope ( predefined_types ) ) if not isinstance ( node , pycparser . c_ast . Typename ) and not isinstance ( node , pycparser . c_ast . Decl ) : raise pycparser . c_parser . ParseError ( "Got an unexpected type out of pycparser" ) decl = node . type return _decl_to_type ( decl , arch = arch ) , node . name