[clang] Fieldregion descript name (PR #112313)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 03:18:59 PDT 2024
================
@@ -143,4 +142,18 @@ void top() {
EXPECT_EQ(Output, "DescriptiveNameChecker: array[x]\n");
}
+TEST(MemRegionDescriptiveNameTest, FieldRegWithSuperElementReg) {
+ StringRef Code = R"cpp(
+void reportDescriptiveName(int *p);
+struct val_struct { int val; };
+extern struct val_struct val_struct_array[3];
----------------
steakhal wrote:
Could you test multidimensional arrays too?
```
extern struct val_struct val_struct_array[3][4];
reportDescriptiveName(&val_struct_array[1][2].val);
```
https://github.com/llvm/llvm-project/pull/112313
More information about the cfe-commits
mailing list