[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen or wcslen
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 29 14:11:47 PDT 2018
Eugene.Zelenko added inline comments.
================
Comment at: clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp:46
+/// from ' "data_name", "data", ' to just 'data' by "memmoving" it char-by-char.
+bool isTrimFunc(const MatchFinder::MatchResult &Result) {
+ const auto *FuncExpr = Result.Nodes.getNodeAs<CallExpr>("expr");
----------------
Should be static too.
https://reviews.llvm.org/D45050
More information about the cfe-commits
mailing list