summaryrefslogtreecommitdiff
path: root/test/Parser/brackets.c
Commit message (Collapse)AuthorAge
* Provide a better diagnostic when braces are put before the identifier.Richard Trieu2014-06-24
When a user types: int [4] foo; assume that the user means: int foo[4]; Update the information for 'foo' to prevent additional errors, and provide a fix-it hint to move the brackets to the correct location. Additionally, suggest parens for types that require it, such as: int [4] *foo; to: int (*foo)[4]; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211641 91177308-0d34-0410-b5e6-96231b3b80d8