aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
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
commit2472882de709cc6096f7113ba0f5f1eebe6cebd2 (patch)
tree76a7c5bc7dea82c0098fdab7ea04ea9fde15cb5d /lib/CodeGen/CodeGenModule.h
parent6a143ffd46a339b17ab5b0c9c20bfdb99c5cfee3 (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions