From bcc6b206a75223cae8f7f27e7e0b924a847a5cc3 Mon Sep 17 00:00:00 2001 From: jwx1102601 Date: Wed, 15 Nov 2023 19:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BA=94=E7=94=A8=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E5=B7=A5=E5=85=B7=E5=8D=95=E4=B8=AA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=A7=A3=E6=9E=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jwx1102601 --- capi_parser/src/coreImpl/check/check.py | 32 +- capi_parser/src/coreImpl/check/check_name.py | 6 +- capi_parser/src/coreImpl/check/data.json | 1010 +++++------------- 3 files changed, 288 insertions(+), 760 deletions(-) diff --git a/capi_parser/src/coreImpl/check/check.py b/capi_parser/src/coreImpl/check/check.py index 823459bcd..eb1e1e098 100644 --- a/capi_parser/src/coreImpl/check/check.py +++ b/capi_parser/src/coreImpl/check/check.py @@ -14,9 +14,11 @@ # limitations under the License. import json +import os from typedef.check.check import ApiResultInfo, FileDocInfo, OutputTxt from coreImpl.check.check_doc import process_comment, process_file_doc_info from coreImpl.check.check_name import check_file_name, check_ndk_name +from coreImpl.parser.parser import parser_include_ast def process_api_json(api_info, file_doc_info: FileDocInfo, api_result_info_list): @@ -44,6 +46,7 @@ def process_file_json(file_info, api_result_info_list): api_result_info_list.extend(check_file_name(file_info['name'])) apis = file_info['children'] file_doc_info = FileDocInfo() + api_result_info_list.extend(process_comment(file_info["comment"], file_doc_info, file_info)) for api in apis: process_api_json(api, file_doc_info, api_result_info_list) api_result_info_list.extend(process_file_doc_info(file_doc_info, file_info)) @@ -58,23 +61,28 @@ def process_all_json(python_obj) -> list[ApiResultInfo]: def write_in_txt(check_result): txtResul = [] - for result in check_result: - location = '{}(line:{}, col:{})'.format(result.location, result.locationLine, result.locationColumn) - message = 'API check error of [{}]:{}'.format(result.errorType['description'], result.errorInfo) - txtResul.append(OutputTxt(result.errorType['id'], result.level, location, result.fileName, message)) - txtResul.append('api_check: false') + if len(check_result) == 0: + txtResul.append('api_check: false') + else: + for result in check_result: + location = '{}(line:{}, col:{})'.format(result.location, result.locationLine, result.locationColumn) + message = 'API check error of [{}]:{}'.format(result.errorType['description'], result.errorInfo) + txtResul.append(OutputTxt(result.errorType['id'], result.level, location, result.fileName, message)) + txtResul.append('api_check: false') result_json = json.dumps(txtResul, default=lambda obj: obj.__dict__, indent=4) fs = open(r'./Error.txt', 'w', encoding='utf-8') fs.write(result_json) fs.close() -def curr_entry(file_path): - with open('./src/coreImpl/check/data.json') as json_file: - python_obj = json.load(json_file) - check_result = process_all_json(python_obj) - if len(check_result) == 0: - return +def curr_entry(pr_id): + file_path = os.path.abspath(os.path.join(os.getcwd(), "..{}..{}all_files.txt".format(os.sep, os.sep))) + file_list = get_md_files(file_path) + check_result = [] + for file in file_list: + root_path = file.split('sdk_c')[0] + 'sdk_c' + python_obj = parser_include_ast(root_path, file) + check_result.extend(process_all_json(python_obj)) write_in_txt(check_result) @@ -83,7 +91,7 @@ def get_md_files(url) -> list[str]: file_list = [] line = file.readline() while line: - file_list.append(line) + file_list.append(line.splitlines()[0]) line = file.readline() file.close() return file_list diff --git a/capi_parser/src/coreImpl/check/check_name.py b/capi_parser/src/coreImpl/check/check_name.py index af35ba371..d30bfe43f 100644 --- a/capi_parser/src/coreImpl/check/check_name.py +++ b/capi_parser/src/coreImpl/check/check_name.py @@ -47,6 +47,8 @@ def check_file_name(file_path): error_info = ErrorMessage.TRANSLATION_UNIT.value api_result_info = ApiResultInfo(ErrorType.NAMING_ERRORS.value, error_info, '') api_result_info.set_type(LogType.LOG_FILE.value) + api_result_info.set_file_name(file_path) + api_result_info.set_location(file_path) api_result_info.set_level(2) api_result_info_list.append(api_result_info) return api_result_info_list @@ -70,8 +72,8 @@ def processing_check_data(function_type, api_info): class CheckName(enum.Enum): - LARGE_HUMP = r'^([A-Z][a-z0-9]*)*$' - SMALL_HUMP = r'^([a-z][A-Z0-9]*)*$' + LARGE_HUMP = r'^([A-Z][a-z0-9]*)*([\_]([A-Z][a-z0-9]*)*)*$' + SMALL_HUMP = r'^([a-z][A-Z0-9]*)*([\_]([a-z][A-Z0-9]*)*)*$' ALL_UPPERCASE_HUMP = r'^[A-Z]+[0-9]*([\_][A-Z0-9]+)*$' GLOBAL_VARIABLE = r'^g_([a-z][A-Z0-9]*)*$' FILE_NAME = r'^[a-z]+[a-z0-9]+([\_][a-z0-9]+)*\.h$' diff --git a/capi_parser/src/coreImpl/check/data.json b/capi_parser/src/coreImpl/check/data.json index 5681b08b0..91db05b87 100644 --- a/capi_parser/src/coreImpl/check/data.json +++ b/capi_parser/src/coreImpl/check/data.json @@ -1,16 +1,20 @@ [ { - "name": "C:\\Users\\Administrator\\Desktop\\test\\drawing_aypes.h", + "name": "C:\\Users\\Administrator\\Desktop\\drawing_types.h", "kind": "TRANSLATION_UNIT", "type": "", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "/**\n * @addtogroup Drawing\n * @{\n *\n * @brief Provides functions such as 2D graphics rendering, text drawing, and image display.\n * \n * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n *\n * @since 8\n * @version 1.0\n */\n\n/**\n * @file drawing_types.h\n *\n * @brief Declares the data types for drawing 2D graphics, including the canvas, brush, pen, bitmap, and path.\n *\n * @since 8\n * @version 1.0\n */\n\n", "children": [ { "name": "C_INCLUDE_DRAWING_TYPES_H", - "kind": "FUNCTION_DECL", + "kind": "MACRO_DEFINITION", "type": "def_no_type", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 17, + "location_path": "drawing_types.h", + "location_line": 38, "location_column": 9 } }, @@ -18,19 +22,23 @@ "name": "stdint.h", "kind": "INCLUSION_DIRECTIVE", "type": "inclusion_no_type", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 46, "location_column": 1 } }, { - "name": "VN_LIST", + "name": "VNi_LIST", "kind": "VAR_DECL", "type": "const int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 20, + "location_path": "drawing_types.h", + "location_line": 41, "location_column": 11 }, "is_extern": false, @@ -39,10 +47,12 @@ "name": "var_int_no_spelling", "kind": "INTEGER_LITERAL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 20, - "location_column": 21 + "location_path": "drawing_types.h", + "location_line": 41, + "location_column": 22 }, "integer_value": "5" } @@ -52,9 +62,11 @@ "name": "g_xxxBaseValue", "kind": "VAR_DECL", "type": "const int[4]", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 11 }, "is_extern": false, @@ -63,9 +75,11 @@ "name": "var_int_no_spelling", "kind": "INTEGER_LITERAL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 26 }, "integer_value": "4" @@ -74,9 +88,11 @@ "name": "", "kind": "INIT_LIST_EXPR", "type": "const int[4]", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 31 }, "children": [ @@ -84,9 +100,11 @@ "name": "integer_no_spelling", "kind": "INTEGER_LITERAL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 33 }, "integer_value": "1" @@ -95,9 +113,11 @@ "name": "integer_no_spelling", "kind": "INTEGER_LITERAL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 36 }, "integer_value": "2" @@ -106,9 +126,11 @@ "name": "integer_no_spelling", "kind": "INTEGER_LITERAL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 39 }, "integer_value": "4" @@ -117,9 +139,11 @@ "name": "integer_no_spelling", "kind": "INTEGER_LITERAL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 23, + "location_path": "drawing_types.h", + "location_line": 44, "location_column": 42 }, "integer_value": "8" @@ -132,40 +156,60 @@ "name": "OSIdleCtr", "kind": "VAR_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 53, "location_column": 12 }, "is_extern": true }, { - "name": "_Node", + "name": "Node", "kind": "STRUCT_DECL", - "type": "struct _Node", + "type": "Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 56, - "location_column": 16 + "location_column": 9 }, "members": [ { "name": "dataParse", "kind": "FIELD_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 58, - "location_column": 7 + "location_column": 6 }, "member": "struct_member" }, + { + "name": "_Node", + "kind": "STRUCT_DECL", + "type": "struct _Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", + "location": { + "location_path": "drawing_types.h", + "location_line": 59, + "location_column": 9 + } + }, { "name": "next", "kind": "FIELD_DECL", "type": "struct _Node *", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 59, "location_column": 16 }, @@ -175,8 +219,10 @@ "name": "struct _Node", "kind": "TYPE_REF", "type": "struct _Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 59, "location_column": 9 } @@ -189,39 +235,59 @@ "name": "Node", "kind": "TYPEDEF_DECL", "type": "Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 60, "location_column": 2 }, "children": [ { - "name": "_Node", + "name": "Node", "kind": "STRUCT_DECL", - "type": "struct _Node", + "type": "Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 56, - "location_column": 16 + "location_column": 9 }, "members": [ { "name": "dataParse", "kind": "FIELD_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 58, - "location_column": 7 + "location_column": 6 }, "member": "struct_member" }, + { + "name": "_Node", + "kind": "STRUCT_DECL", + "type": "struct _Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", + "location": { + "location_path": "drawing_types.h", + "location_line": 59, + "location_column": 9 + } + }, { "name": "next", "kind": "FIELD_DECL", "type": "struct _Node *", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 59, "location_column": 16 }, @@ -231,8 +297,10 @@ "name": "struct _Node", "kind": "TYPE_REF", "type": "struct _Node", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", + "location_path": "drawing_types.h", "location_line": 59, "location_column": 9 } @@ -247,9 +315,11 @@ "name": "Un", "kind": "UNION_DECL", "type": "union Un", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 63, + "location_path": "drawing_types.h", + "location_line": 64, "location_column": 7 }, "members": [ @@ -257,9 +327,11 @@ "name": "numSize", "kind": "FIELD_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 65, + "location_path": "drawing_types.h", + "location_line": 66, "location_column": 6 }, "member": "union_member" @@ -270,628 +342,27 @@ "name": "NoteCome", "kind": "FUNCTION_DECL", "type": "int (char)", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 69, + "location_path": "drawing_types.h", + "location_line": 70, "location_column": 5 }, "return_type": "int", - "is_extern": false, + "is_extern": true, "parm": [ { - "name": "AgetNote", + "name": "getNote", "kind": "PARM_DECL", "type": "char", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 69, + "location_path": "drawing_types.h", + "location_line": 70, "location_column": 19 } - }, - { - "name": "", - "kind": "COMPOUND_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 69, - "location_column": 28 - }, - "children": [ - { - "name": "", - "kind": "DECL_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 71, - "location_column": 5 - }, - "children": [ - { - "name": "PowerBoardStatus", - "kind": "ENUM_DECL", - "type": "enum PowerBoardStatus", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 71, - "location_column": 10 - } - }, - { - "name": "powerBoardStatusOfSlot", - "kind": "VAR_DECL", - "type": "enum PowerBoardStatus", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 71, - "location_column": 27 - }, - "is_extern": false, - "children": [ - { - "name": "enum PowerBoardStatus", - "kind": "TYPE_REF", - "type": "enum PowerBoardStatus", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 71, - "location_column": 10 - } - } - ] - } - ] - }, - { - "name": "", - "kind": "DECL_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 72, - "location_column": 5 - }, - "children": [ - { - "name": "name", - "kind": "VAR_DECL", - "type": "char[17]", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 72, - "location_column": 10 - }, - "is_extern": false, - "children": [ - { - "name": "\"CSDN_Author:Xa_L\"", - "kind": "STRING_LITERAL", - "type": "char[17]", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 72, - "location_column": 17 - } - } - ] - } - ] - }, - { - "name": "", - "kind": "DECL_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 73, - "location_column": 2 - }, - "children": [ - { - "name": "ch", - "kind": "VAR_DECL", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 73, - "location_column": 7 - }, - "is_extern": false, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 73, - "location_column": 10 - }, - "children": [ - { - "name": "A", - "kind": "CHARACTER_LITERAL", - "type": "int", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 73, - "location_column": 10 - } - } - ] - } - ] - } - ] - }, - { - "name": "", - "kind": "DECL_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 74, - "location_column": 2 - }, - "children": [ - { - "name": "ret", - "kind": "VAR_DECL", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 74, - "location_column": 7 - }, - "is_extern": false - } - ] - }, - { - "name": "binary_ope_no_spelling", - "kind": "BINARY_OPERATOR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 2 - }, - "children": [ - { - "name": "ret", - "kind": "DECL_REF_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 2 - } - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 8 - }, - "children": [ - { - "name": "memchr", - "kind": "CALL_EXPR", - "type": "void *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 8 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "void *(*)(const void *, int, unsigned long long)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 8 - }, - "children": [ - { - "name": "memchr", - "kind": "DECL_REF_EXPR", - "type": "void *(const void *, int, unsigned long long)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 8 - } - } - ] - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "const void *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 15 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 15 - }, - "children": [ - { - "name": "name", - "kind": "DECL_REF_EXPR", - "type": "char[17]", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 15 - } - } - ] - } - ] - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "int", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 21 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 21 - }, - "children": [ - { - "name": "ch", - "kind": "DECL_REF_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 21 - } - } - ] - } - ] - }, - { - "name": "strlen", - "kind": "CALL_EXPR", - "type": "unsigned long long", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 25 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "unsigned long long (*)(const char *)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 25 - }, - "children": [ - { - "name": "strlen", - "kind": "DECL_REF_EXPR", - "type": "unsigned long long (const char *)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 25 - } - } - ] - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "const char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 32 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 32 - }, - "children": [ - { - "name": "name", - "kind": "DECL_REF_EXPR", - "type": "char[17]", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 75, - "location_column": 32 - } - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "name": "", - "kind": "IF_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 76, - "location_column": 2 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "_Bool", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 76, - "location_column": 5 - } - }, - { - "name": "", - "kind": "COMPOUND_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 77, - "location_column": 2 - }, - "children": [ - { - "name": "printf", - "kind": "CALL_EXPR", - "type": "int", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 3 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "int (*)(const char *, ...)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 3 - }, - "children": [ - { - "name": "printf", - "kind": "DECL_REF_EXPR", - "type": "int (const char *, ...)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 3 - } - } - ] - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "const char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 10 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 10 - }, - "children": [ - { - "name": "\"Success found %c\"", - "kind": "STRING_LITERAL", - "type": "char[17]", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 10 - } - } - ] - } - ] - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "int", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 29 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 29 - }, - "children": [ - { - "name": "ch", - "kind": "DECL_REF_EXPR", - "type": "char", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 78, - "location_column": 29 - } - } - ] - } - ] - } - ] - } - ] - }, - { - "name": "", - "kind": "COMPOUND_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 81, - "location_column": 2 - }, - "children": [ - { - "name": "printf", - "kind": "CALL_EXPR", - "type": "int", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 82, - "location_column": 3 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "int (*)(const char *, ...)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 82, - "location_column": 3 - }, - "children": [ - { - "name": "printf", - "kind": "DECL_REF_EXPR", - "type": "int (const char *, ...)", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 82, - "location_column": 3 - } - } - ] - }, - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "const char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 82, - "location_column": 10 - }, - "children": [ - { - "name": "unexposed_expr_no_spelling", - "kind": "UNEXPOSED_EXPR", - "type": "char *", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 82, - "location_column": 10 - }, - "children": [ - { - "name": "\"No success\"", - "kind": "STRING_LITERAL", - "type": "char[11]", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 82, - "location_column": 10 - } - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "name": "", - "kind": "RETURN_STMT", - "type": "", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 84, - "location_column": 2 - }, - "children": [ - { - "name": "integer_no_spelling", - "kind": "INTEGER_LITERAL", - "type": "int", - "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 84, - "location_column": 9 - }, - "integer_value": "0" - } - ] - } - ] } ] }, @@ -899,9 +370,11 @@ "name": "OH_Drawing_Canvas", "kind": "STRUCT_DECL", "type": "struct OH_Drawing_Canvas", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 95, + "location_path": "drawing_types.h", + "location_line": 80, "location_column": 16 } }, @@ -909,10 +382,11 @@ "name": "OH_Drawing_Canvas", "kind": "TYPEDEF_DECL", "type": "OH_Drawing_Canvas", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Defines a rectangular canvas on which various shapes, images,\n * and texts can be drawn by using the brush and pen.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 95, + "location_path": "drawing_types.h", + "location_line": 80, "location_column": 34 }, "children": [ @@ -920,9 +394,11 @@ "name": "struct OH_Drawing_Canvas", "kind": "TYPE_REF", "type": "struct OH_Drawing_Canvas", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 95, + "location_path": "drawing_types.h", + "location_line": 80, "location_column": 16 } } @@ -932,9 +408,11 @@ "name": "OH_Drawing_Pen", "kind": "STRUCT_DECL", "type": "struct OH_Drawing_Pen", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 103, + "location_path": "drawing_types.h", + "location_line": 88, "location_column": 16 } }, @@ -942,10 +420,11 @@ "name": "OH_Drawing_Pen", "kind": "TYPEDEF_DECL", "type": "OH_Drawing_Pen", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Defines a pen, which is used to describe the style and color to outline a shape.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 103, + "location_path": "drawing_types.h", + "location_line": 88, "location_column": 31 }, "children": [ @@ -953,9 +432,11 @@ "name": "struct OH_Drawing_Pen", "kind": "TYPE_REF", "type": "struct OH_Drawing_Pen", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 103, + "location_path": "drawing_types.h", + "location_line": 88, "location_column": 16 } } @@ -965,9 +446,11 @@ "name": "OH_Drawing_Brush", "kind": "STRUCT_DECL", "type": "struct OH_Drawing_Brush", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 111, + "location_path": "drawing_types.h", + "location_line": 96, "location_column": 16 } }, @@ -975,10 +458,11 @@ "name": "OH_Drawing_Brush", "kind": "TYPEDEF_DECL", "type": "OH_Drawing_Brush", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Defines as a brush, which is used to describe the style and color to fill in a shape.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 111, + "location_path": "drawing_types.h", + "location_line": 96, "location_column": 33 }, "children": [ @@ -986,9 +470,11 @@ "name": "struct OH_Drawing_Brush", "kind": "TYPE_REF", "type": "struct OH_Drawing_Brush", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 111, + "location_path": "drawing_types.h", + "location_line": 96, "location_column": 16 } } @@ -998,24 +484,23 @@ "name": "OH_Drawing_Path", "kind": "STRUCT_DECL", "type": "struct OH_Drawing_Path", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 119, + "location_path": "drawing_types.h", + "location_line": 104, "location_column": 16 } }, { "name": "OH_Drawing_Path", - "kind": "FUNCTION_DECL", + "kind": "TYPEDEF_DECL", "type": "OH_Drawing_Path", - "parm": [{"name": "AAA", - "kind": "param_DECL", - "type": "AAA" - }], - "comment": "/**\n * @param name Defines a path, which is used to customize various shapes.\n * \n * @since 8\n * @version 1.0\n */", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "/**\n * @brief Defines a path, which is used to customize various shapes.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 119, + "location_path": "drawing_types.h", + "location_line": 104, "location_column": 32 }, "children": [ @@ -1023,9 +508,11 @@ "name": "struct OH_Drawing_Path", "kind": "TYPE_REF", "type": "struct OH_Drawing_Path", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 119, + "location_path": "drawing_types.h", + "location_line": 104, "location_column": 16 } } @@ -1035,9 +522,11 @@ "name": "OH_Drawing_Bitmap", "kind": "STRUCT_DECL", "type": "struct OH_Drawing_Bitmap", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 127, + "location_path": "drawing_types.h", + "location_line": 112, "location_column": 16 } }, @@ -1045,10 +534,11 @@ "name": "OH_Drawing_Bitmap", "kind": "TYPEDEF_DECL", "type": "OH_Drawing_Bitmap", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Defines a bitmap, which is a memory that contains the pixel data of a shape.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 127, + "location_path": "drawing_types.h", + "location_line": 112, "location_column": 34 }, "children": [ @@ -1056,9 +546,11 @@ "name": "struct OH_Drawing_Bitmap", "kind": "TYPE_REF", "type": "struct OH_Drawing_Bitmap", + "gn_path": "C:\\Users\\Administrator\\Desktop", + "comment": "none_comment", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 127, + "location_path": "drawing_types.h", + "location_line": 112, "location_column": 16 } } @@ -1068,10 +560,11 @@ "name": "OH_Drawing_ColorFormat", "kind": "ENUM_DECL", "type": "OH_Drawing_ColorFormat", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Enumerates storage formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 135, + "location_path": "drawing_types.h", + "location_line": 120, "location_column": 9 }, "members": [ @@ -1079,10 +572,11 @@ "name": "COLOR_FORMAT_UNKNOWN", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** Unknown format. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 137, + "location_path": "drawing_types.h", + "location_line": 122, "location_column": 5 }, "value": 0 @@ -1091,10 +585,11 @@ "name": "COLOR_FORMAT_ALPHA_8", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** Each pixel is represented by 8 bits, which together indicate alpha. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 139, + "location_path": "drawing_types.h", + "location_line": 124, "location_column": 5 }, "value": 1 @@ -1103,10 +598,11 @@ "name": "COLOR_FORMAT_RGB_565", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * the first 5 bits indicate red, the subsequent 6 bits indicate green, and the last 5 bits indicate blue.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 144, + "location_path": "drawing_types.h", + "location_line": 129, "location_column": 5 }, "value": 2 @@ -1115,10 +611,11 @@ "name": "COLOR_FORMAT_ARGB_4444", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * every 4 bits indicate alpha, red, green, and blue, respectively.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 149, + "location_path": "drawing_types.h", + "location_line": 134, "location_column": 5 }, "value": 3 @@ -1127,10 +624,11 @@ "name": "COLOR_FORMAT_RGBA_8888", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate alpha, red, green, and blue, respectively.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 154, + "location_path": "drawing_types.h", + "location_line": 139, "location_column": 5 }, "value": 4 @@ -1139,10 +637,11 @@ "name": "COLOR_FORMAT_BGRA_8888", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate blue, green, red, and alpha, respectively.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 159, + "location_path": "drawing_types.h", + "location_line": 144, "location_column": 5 }, "value": 5 @@ -1153,10 +652,11 @@ "name": "OH_Drawing_ColorFormat", "kind": "TYPEDEF_DECL", "type": "OH_Drawing_ColorFormat", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Enumerates storage formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 160, + "location_path": "drawing_types.h", + "location_line": 145, "location_column": 3 }, "children": [ @@ -1164,10 +664,11 @@ "name": "OH_Drawing_ColorFormat", "kind": "ENUM_DECL", "type": "OH_Drawing_ColorFormat", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Enumerates storage formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 135, + "location_path": "drawing_types.h", + "location_line": 120, "location_column": 9 }, "members": [ @@ -1175,10 +676,11 @@ "name": "COLOR_FORMAT_UNKNOWN", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** Unknown format. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 137, + "location_path": "drawing_types.h", + "location_line": 122, "location_column": 5 }, "value": 0 @@ -1187,10 +689,11 @@ "name": "COLOR_FORMAT_ALPHA_8", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** Each pixel is represented by 8 bits, which together indicate alpha. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 139, + "location_path": "drawing_types.h", + "location_line": 124, "location_column": 5 }, "value": 1 @@ -1199,10 +702,11 @@ "name": "COLOR_FORMAT_RGB_565", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * the first 5 bits indicate red, the subsequent 6 bits indicate green, and the last 5 bits indicate blue.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 144, + "location_path": "drawing_types.h", + "location_line": 129, "location_column": 5 }, "value": 2 @@ -1211,10 +715,11 @@ "name": "COLOR_FORMAT_ARGB_4444", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n * every 4 bits indicate alpha, red, green, and blue, respectively.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 149, + "location_path": "drawing_types.h", + "location_line": 134, "location_column": 5 }, "value": 3 @@ -1223,10 +728,11 @@ "name": "COLOR_FORMAT_RGBA_8888", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate alpha, red, green, and blue, respectively.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 154, + "location_path": "drawing_types.h", + "location_line": 139, "location_column": 5 }, "value": 4 @@ -1235,10 +741,11 @@ "name": "COLOR_FORMAT_BGRA_8888", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n * every 8 bits indicate blue, green, red, and alpha, respectively.\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 159, + "location_path": "drawing_types.h", + "location_line": 144, "location_column": 5 }, "value": 5 @@ -1251,10 +758,11 @@ "name": "OH_Drawing_AlphaFormat", "kind": "ENUM_DECL", "type": "OH_Drawing_AlphaFormat", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Enumerates alpha formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 168, + "location_path": "drawing_types.h", + "location_line": 153, "location_column": 9 }, "members": [ @@ -1262,10 +770,11 @@ "name": "ALPHA_FORMAT_UNKNOWN", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** Unknown format. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 170, + "location_path": "drawing_types.h", + "location_line": 155, "location_column": 5 }, "value": 0 @@ -1274,10 +783,11 @@ "name": "ALPHA_FORMAT_OPAQUE", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** The bitmap does not have the alpha component. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 172, + "location_path": "drawing_types.h", + "location_line": 157, "location_column": 5 }, "value": 1 @@ -1286,10 +796,11 @@ "name": "ALPHA_FORMAT_PREMUL", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** The color component of each pixel is premultiplied by the alpha component. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 174, + "location_path": "drawing_types.h", + "location_line": 159, "location_column": 5 }, "value": 2 @@ -1298,10 +809,11 @@ "name": "ALPHA_FORMAT_UNPREMUL", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** The color component of each pixel is not premultiplied by the alpha component. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 176, + "location_path": "drawing_types.h", + "location_line": 161, "location_column": 5 }, "value": 3 @@ -1312,10 +824,11 @@ "name": "OH_Drawing_AlphaFormat", "kind": "TYPEDEF_DECL", "type": "OH_Drawing_AlphaFormat", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Enumerates alpha formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 177, + "location_path": "drawing_types.h", + "location_line": 162, "location_column": 3 }, "children": [ @@ -1323,10 +836,11 @@ "name": "OH_Drawing_AlphaFormat", "kind": "ENUM_DECL", "type": "OH_Drawing_AlphaFormat", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/**\n * @brief Enumerates alpha formats of bitmap pixels.\n * \n * @since 8\n * @version 1.0\n */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 168, + "location_path": "drawing_types.h", + "location_line": 153, "location_column": 9 }, "members": [ @@ -1334,10 +848,11 @@ "name": "ALPHA_FORMAT_UNKNOWN", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** Unknown format. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 170, + "location_path": "drawing_types.h", + "location_line": 155, "location_column": 5 }, "value": 0 @@ -1346,10 +861,11 @@ "name": "ALPHA_FORMAT_OPAQUE", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** The bitmap does not have the alpha component. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 172, + "location_path": "drawing_types.h", + "location_line": 157, "location_column": 5 }, "value": 1 @@ -1358,10 +874,11 @@ "name": "ALPHA_FORMAT_PREMUL", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** The color component of each pixel is premultiplied by the alpha component. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 174, + "location_path": "drawing_types.h", + "location_line": 159, "location_column": 5 }, "value": 2 @@ -1370,10 +887,11 @@ "name": "ALPHA_FORMAT_UNPREMUL", "kind": "ENUM_CONSTANT_DECL", "type": "int", + "gn_path": "C:\\Users\\Administrator\\Desktop", "comment": "/** The color component of each pixel is not premultiplied by the alpha component. */", "location": { - "location_path": "C:\\Users\\Administrator\\Desktop\\test\\drawing_types.h", - "location_line": 176, + "location_path": "drawing_types.h", + "location_line": 161, "location_column": 5 }, "value": 3 -- Gitee