[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 09:53:00 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:

Hmm, the regex changes were made in https://github.com/llvm/llvm-project/commit/6d8e5c968538eff2c024d46d5715de0828a69407 by Chris Bieneman and reviewed by Aaron in https://reviews.llvm.org/D119362. It looks like those regex changes need to be preserved. It seems that script could use an update. Perhaps follow up with Chris?

https://github.com/llvm/llvm-project/pull/70224


More information about the cfe-commits mailing list