[PATCH] D122704: [Clang][CodeGen]Beautify dump format, add indent for nested struct and struct members
Wang Yihan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 29 22:17:59 PDT 2022
yihanaa created this revision.
yihanaa added reviewers: erichkeane, aaron.ballman.
yihanaa added a project: clang.
Herald added a project: All.
yihanaa requested review of this revision.
Herald added a subscriber: cfe-commits.
Beautify dump format, add indent for nested struct and struct members, also fix test cases in dump-struct-builtin.c
for example:
struct:
struct A {
int a;
struct B {
int b;
struct C {
struct D {
int d;
union E {
int x;
int y;
} e;
} d;
int c;
} c;
} b;
};
Before:
struct A {
int a = 0
struct B {
int b = 0
struct C {
struct D {
int d = 0
union E {
int x = 0
int y = 0
}
}
int c = 0
}
}
}
After:
struct A {
int a = 0
struct B {
int b = 0
struct C {
struct D {
int d = 0
union E {
int x = 0
int y = 0
}
}
int c = 0
}
}
}
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122704
Files:
clang/docs/ReleaseNotes.rst
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/dump-struct-builtin.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122704.419051.patch
Type: text/x-patch
Size: 41321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220330/182ecdad/attachment-0001.bin>
More information about the cfe-commits
mailing list