aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.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
commitf4b81d0029653c2592b5aa9305bd59e37729c463 (patch)
tree7b8873ccd4aeda9e0d7be5cbc329e0ec0c143cdf /clang/lib/Frontend/InitPreprocessor.cpp
parente49e30357b49aa9d8da2b2199312344f6a87fbc4 (diff)
downloadllvm-f4b81d0029653c2592b5aa9305bd59e37729c463.zip
llvm-f4b81d0029653c2592b5aa9305bd59e37729c463.tar.gz
llvm-f4b81d0029653c2592b5aa9305bd59e37729c463.tar.bz2
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]; llvm-svn: 211641
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions