It used to work, but was accidentally broken by:
------------------------------------------------------------------------
r179769 | akirtzidis | 2013-04-18 20:41:15 +0400 (Thu, 18 Apr 2013) | 4 lines
[libclang] Report parameter array types as written in source, not decayed to pointer types.
Patch by Doug.
rdar://13684618
------------------------------------------------------------------------
The issue with decayed types was fixed by:
------------------------------------------------------------------------
r190796 | akirtzidis | 2013-09-16 21:26:23 +0400 (Mon, 16 Sep 2013) | 3 lines
[libclang] Don't report a DecayedType as "unexposed", report it as the original (as written) type.
Patch by Anders Waldenborg!
------------------------------------------------------------------------
So this patch partially reverts r179769, and adds more tests.
Test results (clang-test):
Expected Passes : 8287
Expected Failures : 13
Unsupported Tests : 142
This also fixes: https://llvm.org/bugs/show_bug.cgi?id=18669