Closed GoogleCodeExporter closed 9 years ago
OK, agree. No need to test invalid code. But I don't think it's necessary to
modify IWYU code which tells that NoUsageDefinedOutOfLine should be removed.
Original comment by vsap...@gmail.com
on 7 Jul 2013 at 7:45
Originally, I hadn't thought to do so, but I stumbled over the relevant section
in iwyu.cc:
https://code.google.com/p/include-what-you-use/source/browse/trunk/iwyu.cc#3419
It seems to me this search for the first decl is pointless, as the language
only allows for one. And if someone is using the language extension to allow
nested class redeclarations, there's no real harm to leaving them all.
But I don't completely understand the effects of removing this check, so I'll
leave it in for now. It seems harmless.
Thanks for review!
Original comment by kim.gras...@gmail.com
on 10 Jul 2013 at 8:36
Fixed in r476
Original comment by kim.gras...@gmail.com
on 10 Jul 2013 at 8:40
Original issue reported on code.google.com by
kim.gras...@gmail.com
on 6 Jul 2013 at 7:39Attachments: