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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits