summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/function-decls.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-02 07:52:18 +0000
committerChris Lattner <sabre@nondot.org>2006-12-02 07:52:18 +0000
commitc6ad8131dd33ada7258e0846fa51557584c71c3c (patch)
treeb876956d2e2edec0b3aeab69c2856f4b439eac21 /clang/test/Parser/function-decls.c
parent216d8654fd8f5090b8f775b40c283a3def1e42c9 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud