[LLVMbugs] [Bug 7488] Typo correction finds variable being initialized
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 8 10:51:59 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=7488
Kaelyn Takata <rikka at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Assignee|unassignedclangbugs at nondot. |rikka at google.com
|org |
--- Comment #2 from Kaelyn Takata <rikka at google.com> ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150508/e71fe35f/attachment.html>
More information about the llvm-bugs
mailing list