コード例 #1
0
ファイル: scanner.py プロジェクト: Artoria2e5/pygccxml
    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
ファイル: scanner.py プロジェクト: iMichka/pygccxml
    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
ファイル: scanner.py プロジェクト: MarkOates/pygccxml
    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
ファイル: scanner.py プロジェクト: richa10/ITK
    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]))