This patch replaces each use of the previous API with the new one.
In variadic cases, it will use the ADL matchesAny(Call, CDs...) variadic function.
Also simplifies some code involving such operations.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Once I understand the motivation behind CallDescription::matches(), this patch looks good. The use of variadic matching is a nice cleanup.
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | ||
---|---|---|
2275 | I think this would be more unified to the rest and would make further refactoring easier (considering my other comment https://reviews.llvm.org/D113590#inline-1089657) |
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | ||
---|---|---|
2275 | I think the member function is more readable. What I tried to do is to have the exact same name for both. That would play nicely with the Stroustrup's unified member function call syntax (brevzin.github.io blog post). |
LGTM!
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | ||
---|---|---|
2275 | Okay, let's not get stuck on nuances. |
I think this would be more unified to the rest and would make further refactoring easier (considering my other comment https://reviews.llvm.org/D113590#inline-1089657)