diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-02 07:52:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-02 07:52:18 +0000 |
commit | c6ad8131dd33ada7258e0846fa51557584c71c3c (patch) | |
tree | b876956d2e2edec0b3aeab69c2856f4b439eac21 /clang/test/Parser/function-decls.c | |
parent | 216d8654fd8f5090b8f775b40c283a3def1e42c9 (diff) | |
download | bcm5719-llvm-c6ad8131dd33ada7258e0846fa51557584c71c3c.tar.gz bcm5719-llvm-c6ad8131dd33ada7258e0846fa51557584c71c3c.zip |
implement AST representation for function types with and without a prototype.
This lets us pretty print stuff like this:
void foo() {
int X;
X = sizeof(void (*(*)())());
X = sizeof(int(*)(int, float, ...));
X = sizeof(void (*(int arga, void (*argb)(double Y)))(void* Z));
as:
X = sizeof(void (*(*)())())
X = sizeof(int (*)(int, float, ...))
X = sizeof(void (*(int, void (*)(double)))(void *))
Ah the wonders of 'modern' C syntax!
llvm-svn: 39232
Diffstat (limited to 'clang/test/Parser/function-decls.c')
0 files changed, 0 insertions, 0 deletions