<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rikka@google.com" title="Kaelyn Takata <rikka@google.com>"> <span class="fn">Kaelyn Takata</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Typo correction finds variable being initialized"
href="https://llvm.org/bugs/show_bug.cgi?id=7488">bug 7488</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>unassignedclangbugs@nondot.org
</td>
<td>rikka@google.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Typo correction finds variable being initialized"
href="https://llvm.org/bugs/show_bug.cgi?id=7488#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Typo correction finds variable being initialized"
href="https://llvm.org/bugs/show_bug.cgi?id=7488">bug 7488</a>
from <span class="vcard"><a class="email" href="mailto:rikka@google.com" title="Kaelyn Takata <rikka@google.com>"> <span class="fn">Kaelyn Takata</span></a>
</span></b>
<pre>I'm fairly certain this issue was be fixed by r236519; as of r236883 the code:
void f(int FOO) {
int foo = Foo;
}
yields:
/tmp/foo.cpp:2:13: error: use of undeclared identifier 'Foo'
int foo = Foo;
^
1 error generated.
And if the identifiers are made longer so that correction to the function
parameter can happen (in the above example, 2/3 of the identifier would have to
be changed), the code:
void f(int FOObar) {
int foobar = Foobar;
}
yields:
/tmp/foo.cpp:2:16: error: use of undeclared identifier 'Foobar'; did you mean
'FOObar'?
int foobar = Foobar;
^~~~~~
FOObar
/tmp/foo.cpp:1:12: note: 'FOObar' declared here
void f(int FOObar) {
^
1 error generated.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>