From f09bc9300f48893bb84413c99a742c574dfd9a58 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Wed, 13 Mar 2024 16:11:38 +0530 Subject: [PATCH] TEST: Updated reference tests --- .../clang_ast-parse_comments_01-c88db9a.json | 13 ++ ...clang_ast-parse_comments_01-c88db9a.stdout | 122 ++++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 tests/reference/clang_ast-parse_comments_01-c88db9a.json create mode 100644 tests/reference/clang_ast-parse_comments_01-c88db9a.stdout diff --git a/tests/reference/clang_ast-parse_comments_01-c88db9a.json b/tests/reference/clang_ast-parse_comments_01-c88db9a.json new file mode 100644 index 0000000..0b9636a --- /dev/null +++ b/tests/reference/clang_ast-parse_comments_01-c88db9a.json @@ -0,0 +1,13 @@ +{ + "basename": "clang_ast-parse_comments_01-c88db9a", + "cmd": "lc --show-clang-ast --parse-all-comments {infile} -o {outfile}", + "infile": "tests/../integration_tests/parse_comments_01.cpp", + "infile_hash": "6e12dc83be93e6dd0d2baab66c712b7e66c6ef700d3176978384f2c1", + "outfile": null, + "outfile_hash": null, + "stdout": "clang_ast-parse_comments_01-c88db9a.stdout", + "stdout_hash": "4adb4a4df50ef8fa3de15a8181b73b13a68f21d1611ed0b60832ee12", + "stderr": null, + "stderr_hash": null, + "returncode": 0 +} \ No newline at end of file diff --git a/tests/reference/clang_ast-parse_comments_01-c88db9a.stdout b/tests/reference/clang_ast-parse_comments_01-c88db9a.stdout new file mode 100644 index 0000000..2443cbc --- /dev/null +++ b/tests/reference/clang_ast-parse_comments_01-c88db9a.stdout @@ -0,0 +1,122 @@ +TranslationUnitDecl 0x156016208 <> +|-TypedefDecl 0x156017090 <> implicit __int128_t '__int128' +| `-BuiltinType 0x1560167d0 '__int128' +|-TypedefDecl 0x156017100 <> implicit __uint128_t 'unsigned __int128' +| `-BuiltinType 0x1560167f0 'unsigned __int128' +|-TypedefDecl 0x15604d488 <> implicit __NSConstantString '__NSConstantString_tag' +| `-RecordType 0x15604d200 '__NSConstantString_tag' +| `-CXXRecord 0x156017158 '__NSConstantString_tag' +|-TypedefDecl 0x15604d4f0 <> implicit __SVInt8_t '__SVInt8_t' +| `-BuiltinType 0x1560169d0 '__SVInt8_t' +|-TypedefDecl 0x15604d558 <> implicit __SVInt16_t '__SVInt16_t' +| `-BuiltinType 0x1560169f0 '__SVInt16_t' +|-TypedefDecl 0x15604d5c0 <> implicit __SVInt32_t '__SVInt32_t' +| `-BuiltinType 0x156016a10 '__SVInt32_t' +|-TypedefDecl 0x15604d628 <> implicit __SVInt64_t '__SVInt64_t' +| `-BuiltinType 0x156016a30 '__SVInt64_t' +|-TypedefDecl 0x15604d690 <> implicit __SVUint8_t '__SVUint8_t' +| `-BuiltinType 0x156016a50 '__SVUint8_t' +|-TypedefDecl 0x15604d6f8 <> implicit __SVUint16_t '__SVUint16_t' +| `-BuiltinType 0x156016a70 '__SVUint16_t' +|-TypedefDecl 0x15604d760 <> implicit __SVUint32_t '__SVUint32_t' +| `-BuiltinType 0x156016a90 '__SVUint32_t' +|-TypedefDecl 0x15604d7c8 <> implicit __SVUint64_t '__SVUint64_t' +| `-BuiltinType 0x156016ab0 '__SVUint64_t' +|-TypedefDecl 0x15604d830 <> implicit __SVFloat16_t '__SVFloat16_t' +| `-BuiltinType 0x156016ad0 '__SVFloat16_t' +|-TypedefDecl 0x15604d898 <> implicit __SVFloat32_t '__SVFloat32_t' +| `-BuiltinType 0x156016af0 '__SVFloat32_t' +|-TypedefDecl 0x15604d900 <> implicit __SVFloat64_t '__SVFloat64_t' +| `-BuiltinType 0x156016b10 '__SVFloat64_t' +|-TypedefDecl 0x15604d968 <> implicit __SVBFloat16_t '__SVBFloat16_t' +| `-BuiltinType 0x156016b30 '__SVBFloat16_t' +|-TypedefDecl 0x15604d9d0 <> implicit __clang_svint8x2_t '__clang_svint8x2_t' +| `-BuiltinType 0x156016b50 '__clang_svint8x2_t' +|-TypedefDecl 0x15604da38 <> implicit __clang_svint16x2_t '__clang_svint16x2_t' +| `-BuiltinType 0x156016b70 '__clang_svint16x2_t' +|-TypedefDecl 0x15604daa0 <> implicit __clang_svint32x2_t '__clang_svint32x2_t' +| `-BuiltinType 0x156016b90 '__clang_svint32x2_t' +|-TypedefDecl 0x15604db08 <> implicit __clang_svint64x2_t '__clang_svint64x2_t' +| `-BuiltinType 0x156016bb0 '__clang_svint64x2_t' +|-TypedefDecl 0x15604db70 <> implicit __clang_svuint8x2_t '__clang_svuint8x2_t' +| `-BuiltinType 0x156016bd0 '__clang_svuint8x2_t' +|-TypedefDecl 0x15604dbd8 <> implicit __clang_svuint16x2_t '__clang_svuint16x2_t' +| `-BuiltinType 0x156016bf0 '__clang_svuint16x2_t' +|-TypedefDecl 0x15604dc40 <> implicit __clang_svuint32x2_t '__clang_svuint32x2_t' +| `-BuiltinType 0x156016c10 '__clang_svuint32x2_t' +|-TypedefDecl 0x15604dca8 <> implicit __clang_svuint64x2_t '__clang_svuint64x2_t' +| `-BuiltinType 0x156016c30 '__clang_svuint64x2_t' +|-TypedefDecl 0x15604dd10 <> implicit __clang_svfloat16x2_t '__clang_svfloat16x2_t' +| `-BuiltinType 0x156016c50 '__clang_svfloat16x2_t' +|-TypedefDecl 0x15604dd78 <> implicit __clang_svfloat32x2_t '__clang_svfloat32x2_t' +| `-BuiltinType 0x156016c70 '__clang_svfloat32x2_t' +|-TypedefDecl 0x15604dde0 <> implicit __clang_svfloat64x2_t '__clang_svfloat64x2_t' +| `-BuiltinType 0x156016c90 '__clang_svfloat64x2_t' +|-TypedefDecl 0x15604de48 <> implicit __clang_svbfloat16x2_t '__clang_svbfloat16x2_t' +| `-BuiltinType 0x156016cb0 '__clang_svbfloat16x2_t' +|-TypedefDecl 0x15604deb0 <> implicit __clang_svint8x3_t '__clang_svint8x3_t' +| `-BuiltinType 0x156016cd0 '__clang_svint8x3_t' +|-TypedefDecl 0x15604df18 <> implicit __clang_svint16x3_t '__clang_svint16x3_t' +| `-BuiltinType 0x156016cf0 '__clang_svint16x3_t' +|-TypedefDecl 0x15604df80 <> implicit __clang_svint32x3_t '__clang_svint32x3_t' +| `-BuiltinType 0x156016d10 '__clang_svint32x3_t' +|-TypedefDecl 0x15604dfe8 <> implicit __clang_svint64x3_t '__clang_svint64x3_t' +| `-BuiltinType 0x156016d30 '__clang_svint64x3_t' +|-TypedefDecl 0x15604e050 <> implicit __clang_svuint8x3_t '__clang_svuint8x3_t' +| `-BuiltinType 0x156016d50 '__clang_svuint8x3_t' +|-TypedefDecl 0x15604e0b8 <> implicit __clang_svuint16x3_t '__clang_svuint16x3_t' +| `-BuiltinType 0x156016d70 '__clang_svuint16x3_t' +|-TypedefDecl 0x15604e120 <> implicit __clang_svuint32x3_t '__clang_svuint32x3_t' +| `-BuiltinType 0x156016d90 '__clang_svuint32x3_t' +|-TypedefDecl 0x15604e188 <> implicit __clang_svuint64x3_t '__clang_svuint64x3_t' +| `-BuiltinType 0x156016db0 '__clang_svuint64x3_t' +|-TypedefDecl 0x15781c600 <> implicit __clang_svfloat16x3_t '__clang_svfloat16x3_t' +| `-BuiltinType 0x156016dd0 '__clang_svfloat16x3_t' +|-TypedefDecl 0x15781c668 <> implicit __clang_svfloat32x3_t '__clang_svfloat32x3_t' +| `-BuiltinType 0x156016df0 '__clang_svfloat32x3_t' +|-TypedefDecl 0x15781c6d0 <> implicit __clang_svfloat64x3_t '__clang_svfloat64x3_t' +| `-BuiltinType 0x156016e10 '__clang_svfloat64x3_t' +|-TypedefDecl 0x15781c738 <> implicit __clang_svbfloat16x3_t '__clang_svbfloat16x3_t' +| `-BuiltinType 0x156016e30 '__clang_svbfloat16x3_t' +|-TypedefDecl 0x15781c7a0 <> implicit __clang_svint8x4_t '__clang_svint8x4_t' +| `-BuiltinType 0x156016e50 '__clang_svint8x4_t' +|-TypedefDecl 0x15781c808 <> implicit __clang_svint16x4_t '__clang_svint16x4_t' +| `-BuiltinType 0x156016e70 '__clang_svint16x4_t' +|-TypedefDecl 0x15781c870 <> implicit __clang_svint32x4_t '__clang_svint32x4_t' +| `-BuiltinType 0x156016e90 '__clang_svint32x4_t' +|-TypedefDecl 0x15781c8d8 <> implicit __clang_svint64x4_t '__clang_svint64x4_t' +| `-BuiltinType 0x156016eb0 '__clang_svint64x4_t' +|-TypedefDecl 0x15781c940 <> implicit __clang_svuint8x4_t '__clang_svuint8x4_t' +| `-BuiltinType 0x156016ed0 '__clang_svuint8x4_t' +|-TypedefDecl 0x15781c9a8 <> implicit __clang_svuint16x4_t '__clang_svuint16x4_t' +| `-BuiltinType 0x156016ef0 '__clang_svuint16x4_t' +|-TypedefDecl 0x15781ca10 <> implicit __clang_svuint32x4_t '__clang_svuint32x4_t' +| `-BuiltinType 0x156016f10 '__clang_svuint32x4_t' +|-TypedefDecl 0x15781ca78 <> implicit __clang_svuint64x4_t '__clang_svuint64x4_t' +| `-BuiltinType 0x156016f30 '__clang_svuint64x4_t' +|-TypedefDecl 0x15781cae0 <> implicit __clang_svfloat16x4_t '__clang_svfloat16x4_t' +| `-BuiltinType 0x156016f50 '__clang_svfloat16x4_t' +|-TypedefDecl 0x15781cb48 <> implicit __clang_svfloat32x4_t '__clang_svfloat32x4_t' +| `-BuiltinType 0x156016f70 '__clang_svfloat32x4_t' +|-TypedefDecl 0x15781cbb0 <> implicit __clang_svfloat64x4_t '__clang_svfloat64x4_t' +| `-BuiltinType 0x156016f90 '__clang_svfloat64x4_t' +|-TypedefDecl 0x15781cc18 <> implicit __clang_svbfloat16x4_t '__clang_svbfloat16x4_t' +| `-BuiltinType 0x156016fb0 '__clang_svbfloat16x4_t' +|-TypedefDecl 0x15781cc80 <> implicit __SVBool_t '__SVBool_t' +| `-BuiltinType 0x156016fd0 '__SVBool_t' +|-TypedefDecl 0x15781cd20 <> implicit __builtin_ms_va_list 'char *' +| `-PointerType 0x15781cce0 'char *' +| `-BuiltinType 0x1560162b0 'char' +|-TypedefDecl 0x15781cd90 <> implicit __builtin_va_list 'char *' +| `-PointerType 0x15781cce0 'char *' +| `-BuiltinType 0x1560162b0 'char' +`-FunctionDecl 0x15781ce40 <$DIR/tests/../integration_tests/parse_comments_01.cpp:1:1, line:12:1> line:1:5 main 'int ()' + `-CompoundStmt 0x15781d078 + |-DeclStmt 0x15781d030 + | `-VarDecl 0x15781cfa0 col:9 a 'int' + | `-FullComment 0x15781d148 + | `-ParagraphComment 0x15781d120 + | |-TextComment 0x15781d0d0 Text=" #pragma clang diagnostic push" + | `-TextComment 0x15781d0f0 Text=" #pragma clang diagnostic ignored "-Wunused-variable"" + `-ReturnStmt 0x15781d068 + `-IntegerLiteral 0x15781d048 'int' 0