[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 09:58:17 PDT 2023
================
@@ -217,21 +221,21 @@ void i();
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FunctionTemplateDecl",
// CHECK-NEXT: "loc": {
-// CHECK-NEXT: "offset": {{[0-9]+}},
+// CHECK-NEXT: "offset": 142,
----------------
tahonermann wrote:
It looks like a regular expression was previously used to avoid sensitivity to the `offset` values. I'm not familiar with this test, but I see the comment above regarding using `gen_ast_dump_json_test.py` to generate the `CHECK` lines. Did you use that script?
https://github.com/llvm/llvm-project/pull/70224
More information about the cfe-commits
mailing list