summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2014-06-24 23:14:24 +0000
committerRichard Trieu <rtrieu@google.com>2014-06-24 23:14:24 +0000
commit3e11835412bb95edf3526dc16082ff61586100a5 (patch)
tree7a00fa5091c31442407561c18a65ebb5b9ea78aa /lib/CodeGen/CGExprComplex.cpp
parent93d4222c228925c5c97d0e0190d7e614db1778f3 (diff)
downloadclang-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 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions