[clang] [Clang] Fix a crash when using ast-dump=json (PR #70224)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 26 14:37:20 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,
----------------
llvm-beanz wrote:
To add a bit of context on the change to using regex matches. These tests are fragile to your system’s native line-endings. I changed these to regex matches in an effort to get clang’s tests to pass under a git checkout with autocrlf enabled.
https://github.com/llvm/llvm-project/pull/70224
More information about the cfe-commits
mailing list