3 ms·
The original comment says "they just weren't anywhere in the code that humans could see." Where would you and the comment in a situation like that one? I don'
by msangi 9y ago
The original comment says "they just weren't anywhere in the code that humans could see."
Where would you and the comment in a situation like that one?
I don't have anything against generated code but it should be visible and, as you said, it should be crystal clear where it come from
- ndh2 9y agoI think in this instance it's also a matter of tools. Visual Studio/Visual Assist would have been able to find the class definition, and that's where the comment would go. For cscope it's a matter of configuration, which should be auto-generated by the build tool. If the class is being used, then the definition has got to be somewhere, hopefully in a header. It's simply a file that is included somewhere. And it will be human readable. There is no magic.
- mikelevins 9y agoThe class definitions were not in any file. That was the entire point. They didn't exist at all except as transient build artifacts.