[PATCH] D118224: [clang-tidy] bugprone-signal-handler improvements: display call chain

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 26 01:27:08 PST 2022


balazske created this revision.
Herald added subscribers: carlosgalvezp, steakhal, martong, gamesh411, Szelethus, dkrupp, xazax.hun.
balazske requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Display notes for a possible call chain if an unsafe function is found to be
called (maybe indirectly) from a signal handler.
The call chain displayed this way includes probably not the first calls of
the functions, but it is a valid possible (in non path-sensitive way) one.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118224

Files:
  clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.cpp
  clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.h
  clang-tools-extra/test/clang-tidy/checkers/bugprone-signal-handler.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118224.403167.patch
Type: text/x-patch
Size: 13089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220126/ea338823/attachment.bin>


More information about the cfe-commits mailing list