[PATCH] D129832: [sanitizer] Add "mainsrc" prefix to sanitizer special case list

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 15 02:21:19 PDT 2022


vitalybuka accepted this revision.
vitalybuka added a comment.
This revision is now accepted and ready to land.

The patch is LGTM, but please consider to keep an ignorelist limited.



================
Comment at: clang/docs/SanitizerSpecialCaseList.rst:110-112
+``mainsrc`` can be useful enabling a ubsan check for a large code base when
+finding the direct stack frame triggering the failure for every failure is
+difficult.
----------------
MaskRay wrote:
> vitalybuka wrote:
> > if this is transitionalt solution, would it be better just to use -fno-sanitize= on *.cpp file?
> This provides a more convenient way than using `-fno-sanitize=` for a different set of files.
> 
> E.g. if a group wants to ignore a check for all ``[a-m]*` files, then can use `mainsrc:[a-m]*` instead of patching the build system.
Convenience of -fno-sanitize= approach that you make it visible to maintainer of component. Then it's their responsibility.
Ignore list is toolchain team debt.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129832/new/

https://reviews.llvm.org/D129832



More information about the cfe-commits mailing list