[clang-tools-extra] clang-tidy: add misc-use-bulk-insert check (PR #226742)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 27 09:34:24 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE LINT COMMENT: clang-tidy-->
:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
```bash
git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/misc/UseBulkInsertCheck.cpp clang-tools-extra/clang-tidy/misc/UseBulkInsertCheck.h clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py -path build -p1 -quiet
```
</details>
<details>
<summary>
View the output from clang-tidy here.
</summary>
```
clang-tools-extra/clang-tidy/misc/UseBulkInsertCheck.cpp:25:26: error: no matching function for call to object of type 'const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr>' [clang-diagnostic-error]
25 | callee(memberExpr(
| ^~~~~~~~~~
clang/include/clang/ASTMatchers/ASTMatchersInternal.h:127:11: note: candidate function template not viable: no known conversion from 'Matcher<CXXMethodDecl>' to 'const Matcher<clang::MemberExpr>' for 1st argument
127 | ResultT operator()(const ArgT &Arg1, const ArgsT &... Args) const {
| ^ ~~~~~~~~~~~~~~~~
clang/include/clang/ASTMatchers/ASTMatchersInternal.h:133:11: note: candidate function not viable: no known conversion from '::clang::ast_matchers::internal::Matcher<CXXMethodDecl>' to 'ArrayRef<clang::ast_matchers::internal::Matcher<clang::MemberExpr>>' for 1st argument
133 | ResultT operator()(ArrayRef<ArgT> Args) const {
| ^ ~~~~~~~~~~~~~~~~~~~
clang/include/clang/ASTMatchers/ASTMatchersInternal.h:124:11: note: candidate function not viable: requires 0 arguments, but 1 was provided
124 | ResultT operator()() const { return Func({}); }
| ^
```
</details>
https://github.com/llvm/llvm-project/pull/226742
More information about the cfe-commits
mailing list