Tried to pick two interesting examples from the tests.
This check has no options.
Details
Diff Detail
Event Timeline
Woohoo!
docs/analyzer/checkers.rst | ||
---|---|---|
225–226 | Hmm. While this page is a documentation, I would still expect regular users to browse through it -- are we sure that we want to add future plans for a non-alpha checker? I'm not against it, just a question. |
docs/analyzer/checkers.rst | ||
---|---|---|
225–226 | I think it is a good idea. A non-alpha checker can also be further developed, by anyone else. It is good that we don't forget about further features. This note also highlights the limitations of the checker. |
docs/analyzer/checkers.rst | ||
---|---|---|
225–226 | How about this: "Future plans include to add support for blahblah". The current statement should rather be a TODO in the code. |
docs/analyzer/checkers.rst | ||
---|---|---|
225–226 | I suggest presenting it as "The checker is currently limited to std::strings and doesn't recognize some of the more sophisticated approaches to passing unowned pointers around, such as std::string_views". It sounds a bit more negative than it deserves to sound, but that's the most documentation-like text i managed to come up with so far >.< Maybe put it under a "Known Limitations:" marker and/or expand the main part of the documentation in order to keep the reader's impression balanced, eg. "Many container methods in the C++ standard library are known to invalidate "references" (including actual references, iterators and raw pointers) to elements of the container. Using such references after they are invalidated causes undefined behavior, which is a common source of memory errors in C++ that this checker is capable of finding."
I'd love our users to browse it! Maybe we should consider adding a documentation link to our HTML report headers as the documentation gets good enough. | |
232 | The test_ part doesn't add much here, maybe drop it? |
Revised the documentation according to @NoQ's comments. By literally copy pasting it. Like any good programmer should do :^)
Thanks!
One more quick question: Who is Husi???
clang/docs/analyzer/checkers.rst | ||
---|---|---|
261 ↗ | (On Diff #215288) | This declaration doesn't add much to the documentation, feel free to remove it :) |
Well thats me. Long story short, the reason why my name is Szelethus is that my first ever character to hit max level in World of Warcraft was called Szelethús. It literally means "slice of meat" in Hungarian. When I got to university, we were instructed to pick a nickname at the beginning of the freshman camp, where the shorthand version "Husi" ("meat", pronounced along the lines of "hushie") was born, and stuck on me ever since. So aside from my parents, I'm universally called that, even in the office.
Hmm. While this page is a documentation, I would still expect regular users to browse through it -- are we sure that we want to add future plans for a non-alpha checker? I'm not against it, just a question.