From 2c44d6319ea48550df087133ea0bdcd61267740a Mon Sep 17 00:00:00 2001 From: littleGnAl Date: Mon, 20 Nov 2023 14:31:13 +0800 Subject: [PATCH] feat: [cxx-parser] Add template_t --- cxx-parser/__integration_test__/cxx_parser.integration.test.ts | 3 ++- cxx-parser/__tests__/unit_test/cxx_parser.test.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cxx-parser/__integration_test__/cxx_parser.integration.test.ts b/cxx-parser/__integration_test__/cxx_parser.integration.test.ts index 890a5d3..e511b3a 100644 --- a/cxx-parser/__integration_test__/cxx_parser.integration.test.ts +++ b/cxx-parser/__integration_test__/cxx_parser.integration.test.ts @@ -65,7 +65,8 @@ struct AAA { "is_const":false, "kind":100, "name":"int", - "source":"int" + "source":"int", + "template_arguments":[] } } ], diff --git a/cxx-parser/__tests__/unit_test/cxx_parser.test.ts b/cxx-parser/__tests__/unit_test/cxx_parser.test.ts index d7a23e1..4cc4b25 100644 --- a/cxx-parser/__tests__/unit_test/cxx_parser.test.ts +++ b/cxx-parser/__tests__/unit_test/cxx_parser.test.ts @@ -63,6 +63,7 @@ describe('cxx_parser', () => { kind: 101, name: 'Test', source: 'Test *', + template_arguments: [], }, }, ], @@ -137,6 +138,7 @@ describe('cxx_parser', () => { kind: 101, name: 'Test', source: 'Test *', + template_arguments: [], }, }, ], @@ -216,6 +218,7 @@ describe('cxx_parser', () => { kind: 101, name: 'Test', source: 'Test *', + template_arguments: [], }, }, ],