Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
For the use of auto, is there extra convention except what's said here? https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
It feels the style convention is a bit loose though, except those enforced by linter.
(FYI this is the original diff: https://reviews.llvm.org/D81800)
I feel so. For longer type names like std::pair<..., ...> or std::map<...>::iterator people don't typically write the underlying type. I agree with such practice. However, in this file, when we can write a single identifier instead auto , I think we should stick with the rule.
(FYI this is the original diff: https://reviews.llvm.org/D81800)
Thanks. Corrected the title.
Ok, I'm not aware of the single identifier rule, but makes sense to me. Thanks for the touch up.
(FYI this is the original diff: https://reviews.llvm.org/D81800)
Thanks. Corrected the title.