Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM with nit.
llvm/unittests/IR/VPIntrinsicTest.cpp | ||
---|---|---|
253 | I know const auto* follows the convention. However, i like just const auto here because do we really want to assert the type structure of what is actually just 'some' iterator to us? |
llvm/unittests/IR/VPIntrinsicTest.cpp | ||
---|---|---|
253 | Yes I agree it's a bit weird because it looks like an iterator but it's ultimately a Type * const *. Alternatively we could perhaps explicitly use FunctionType::param_iterator. That's also a fairly common way of doing it in llvm, relatively speaking. I'm a bit wary of overriding clang-tidy in general as its opinions -- rightly or wrongly -- are what decides whether tools like editors show warnings, whether patches are landed "despite ongoing or failed builds" etc. |
llvm/unittests/IR/VPIntrinsicTest.cpp | ||
---|---|---|
253 | +1 for FunctionType::param_iterator |
llvm/unittests/IR/VPIntrinsicTest.cpp | ||
---|---|---|
253 | You have yourself a deal! I take it your LGTM still stands? I'll wait for your okay. |
I know const auto* follows the convention. However, i like just const auto here because do we really want to assert the type structure of what is actually just 'some' iterator to us?