aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-24 22:31:37 +0000
committerChris Lattner <sabre@nondot.org>2010-05-24 22:31:37 +0000
commitfb58515bc3a1c521dc7ac71bf7304e8097501ec6 (patch)
tree1c0d1dd067e10f7264c4eca2ecbb31b490d52b9d /clang/lib/CodeGen/CodeGenModule.cpp
parent76b3de92f2a325304f0f652751ecf9f4adf715bf (diff)
downloadllvm-fb58515bc3a1c521dc7ac71bf7304e8097501ec6.zip
llvm-fb58515bc3a1c521dc7ac71bf7304e8097501ec6.tar.gz
llvm-fb58515bc3a1c521dc7ac71bf7304e8097501ec6.tar.bz2
improve the fixit for the missing : error when parsing ?:. When
there are already two spaces before the token where the : was expected, put the : in between the spaces. This means we get it right in both of these cases: t.c:2:17: error: expected ':' return a ? b c; ^ : t.c:3:16: error: expected ':' return a ? b c; ^ : In the later case, the diagnostic says to insert ": ", in the former case it says to insert ":" between the spaces. This fixes rdar://8007231 llvm-svn: 104569
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions