[PATCH] D20689: [clang-tidy] Add 'readability-suspicious-call-argument' check
Whisperity via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 28 03:07:47 PDT 2021
whisperity marked an inline comment as done.
whisperity added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/readability/SuspiciousCallArgumentCheck.cpp:694-695
+
+ for (std::size_t I = 0, E = CalleeFuncDecl->getNumParams(); I != E; ++I) {
+ if (const auto *Param = CalleeFuncDecl->getParamDecl(I)) {
+ ParamTypes.push_back(Param->getType());
----------------
aaron.ballman wrote:
> Range-based for loop over `CalledFuncDecl->params()`?
(Note: it's `parameters()` now, not `params()`!)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D20689/new/
https://reviews.llvm.org/D20689
More information about the cfe-commits
mailing list