Пример #1
0
    def __read_location(self, decl, attrs):

        to_skip = []
        if "CastXML" in utils.xml_generator:
            # These fields are generated by clang, and have no location.
            # Just set an empty location for them. Gccxml does not have
            # this problem.
            # bug #19: gp_offset, fp_offset, overflow_arg_area, reg_save_area
            # bug #32: isa, flags, str and length were added in llvm 3.9
            to_skip = [
                "gp_offset",
                "fp_offset",
                "overflow_arg_area",
                "reg_save_area",
                "isa",
                "flags",
                "str",
                "length"
            ]

        if "name" in attrs and attrs["name"] in to_skip:
            decl.location = declarations.location_t('', -1)
        else:
            decl.location = declarations.location_t(
                file_name=attrs[XML_AN_FILE],
                line=int(attrs[XML_AN_LINE]))
Пример #2
0
    def __read_location(self, decl, attrs):

        to_skip = []
        if "CastXML" in utils.xml_generator:
            # These fields are generated by clang, and have no location.
            # Just set an empty location for them. Gccxml does not have
            # this problem. See also bug #19.
            to_skip = [
                "gp_offset", "fp_offset", "overflow_arg_area", "reg_save_area"]

        if "name" in attrs and attrs["name"] in to_skip:
            decl.location = declarations.location_t('', -1)
        else:
            decl.location = declarations.location_t(
                file_name=attrs[XML_AN_FILE],
                line=int(attrs[XML_AN_LINE]))
Пример #3
0
    def __read_location(self, decl, attrs):

        to_skip = []
        if "CastXML" in utils.xml_generator:
            # These fields are generated by clang, and have no location.
            # Just set an empty location for them. Gccxml does not have
            # this problem. See also bug #19.
            to_skip = [
                "gp_offset", "fp_offset", "overflow_arg_area", "reg_save_area"]

        if "name" in attrs and attrs["name"] in to_skip:
            decl.location = declarations.location_t('', -1)
        else:
            decl.location = declarations.location_t(
                file_name=attrs[XML_AN_FILE],
                line=int(attrs[XML_AN_LINE]))
Пример #4
0
    def __read_location(self, decl, attrs):

        to_skip = []
        if "CastXML" in utils.xml_generator:
            # These fields are generated by clang, and have no location.
            # Just set an empty location for them. Gccxml does not have
            # this problem.
            # bug #19: gp_offset, fp_offset, overflow_arg_area, reg_save_area
            # bug #32: isa, flags, str and length were added in llvm 3.9
            to_skip = [
                "gp_offset", "fp_offset", "overflow_arg_area", "reg_save_area",
                "isa", "flags", "str", "length"
            ]

        if "name" in attrs and attrs["name"] in to_skip:
            decl.location = declarations.location_t('', -1)
        else:
            decl.location = declarations.location_t(
                file_name=attrs[XML_AN_FILE], line=int(attrs[XML_AN_LINE]))