TypePrinter should not ignore IndexTypeCVRQualifiers on constant-sized arrays
authorHal Finkel <hfinkel@anl.gov>
Sat, 19 Jul 2014 02:01:03 +0000 (02:01 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 19 Jul 2014 02:01:03 +0000 (02:01 +0000)
commitbfe2d3c0f966e8d6ab873b54deacee9048780d19
tree46966232c18e963bbab202f64d0791e8a19b1a11
parent48d53e2c4c9131766e61fb52c7876fbcf9859463
TypePrinter should not ignore IndexTypeCVRQualifiers on constant-sized arrays

C99 array parameters can have index-type CVR qualifiers, and the TypePrinter
should print them when present (and we were not for constant-sized arrays).
Otherwise, we'd drop the restrict in:

  int foo(int a[restrict static 3]) { ... }

llvm-svn: 213445
clang/lib/AST/TypePrinter.cpp
clang/test/Sema/ast-print.c