The check assumed the matched function call has 3 arguments, but the matcher didn't guaranteed that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D83301
[clang-tidy] More strict on matching the standard memset function in memset-usage check. ClosedPublic Authored by hokein on Jul 7 2020, 6:46 AM.
Details Summary The check assumed the matched function call has 3 arguments, but the matcher didn't guaranteed that.
Diff Detail
Event TimelineComment Actions
good idea. This revision is now accepted and ready to land.Jul 9 2020, 7:40 AM Closed by commit rG5f41ca48d1c4: [clang-tidy] More strict on matching the standard memset function in memset… (authored by hokein). · Explain WhyJul 10 2020, 2:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 276968 clang-tools-extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-suspicious-memset-usage.cpp
|