[PATCH] D70823: [clang-tidy] Adding cert-pos34-c check
Zurab Tsinadze via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 28 13:21:13 PST 2019
zukatsinadze marked 5 inline comments as done.
zukatsinadze added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/cert/PutenvWithAutoCheck.cpp:28
+ unless(hasDescendant(callExpr(callee(functionDecl(hasAnyName(
+ "::alloc", "::malloc", "::realloc", "::calloc")))))))))))
+ .bind("func"),
----------------
Charusso wrote:
> `alloc` -> `alloca`
I think ``alloca`` allocates memory on stack, so thats why I didn't include it here.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70823/new/
https://reviews.llvm.org/D70823
More information about the cfe-commits
mailing list