LLVM code style encourages this [1], this check can detect the missing cases
and provide an automatic fixit.
[1] https://llvm.org/docs/CodingStandards.html#comment-formatting
Differential D78546
Enable bugprone-argument-comments check in llvm. hokein on Apr 21 2020, 1:56 AM. Authored by
Details
LLVM code style encourages this [1], this check can detect the missing cases [1] https://llvm.org/docs/CodingStandards.html#comment-formatting
Diff Detail
Unit Tests Event TimelineComment Actions
Not very strongly, it just says it can be helpful (and tells you how to do it if you do it). So I'm wary of making it mandatory in cases where it isn't a clear readability win. Had a look at this on clangd code:
I think this would be a better check if we increased the arg threshold to 3 and excluded functions in namespace std. Comment Actions agree, my attemption was not to make it mandatory. a clang-tidy check is suboptimal, maybe a clangd tweak is a better choice. every time I write a comment like this manually, I wish if there is a tool that could help me doing this stuff automatically, and then I find this clang-tidy check.
sounds good to me (we also receive some internal bugs about the false positives on std symbols), that needs to extend the check to support these options . |