[PATCH] D83717: [clang-tidy] Add check fo SEI CERT item ENV32-C
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 3 06:26:08 PDT 2020
aaron.ballman added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/cert/ExitHandlerCheck.cpp:37
+ return false;
+ constexpr StringRef ExitFunctions[] = {"_Exit", "exit", "quick_exit"};
+ return llvm::is_contained(ExitFunctions, FD->getName());
----------------
`abort()` as well?
How about in C++ mode calling `std::terminate()`?
One last class of problem functions are ones that are attributed as not returning (this would include user-defined functions).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83717/new/
https://reviews.llvm.org/D83717
More information about the cfe-commits
mailing list