diff options
| author | Richard Trieu <rtrieu@google.com> | 2014-06-24 23:14:24 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2014-06-24 23:14:24 +0000 |
| commit | 3e11835412bb95edf3526dc16082ff61586100a5 (patch) | |
| tree | 7a00fa5091c31442407561c18a65ebb5b9ea78aa /test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap | |
| parent | 93d4222c228925c5c97d0e0190d7e614db1778f3 (diff) | |
| download | clang-3e11835412bb95edf3526dc16082ff61586100a5.tar.gz clang-3e11835412bb95edf3526dc16082ff61586100a5.tar.bz2 clang-3e11835412bb95edf3526dc16082ff61586100a5.tar.xz | |
Provide a better diagnostic when braces are put before the identifier.
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
Diffstat (limited to 'test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap')
0 files changed, 0 insertions, 0 deletions
