[PATCH] D128697: [clang-tidy] Add new check `bugprone-unhandled-exception-at-sto`

gehry via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 27 23:14:32 PDT 2022


Sockke created this revision.
Sockke added a reviewer: aaron.ballman.
Herald added subscribers: carlosgalvezp, xazax.hun, mgorny.
Herald added a project: All.
Sockke requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Calls to **stoi** and **stod** families of functions may throw exceptions so they need to be surrounded by try/catch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128697

Files:
  clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
  clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
  clang-tools-extra/clang-tidy/bugprone/UnhandledExceptionAtStoCheck.cpp
  clang-tools-extra/clang-tidy/bugprone/UnhandledExceptionAtStoCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-exception-at-sto.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/test/clang-tidy/checkers/bugprone/unhandled-exception-at-sto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128697.440473.patch
Type: text/x-patch
Size: 16661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220628/af256cc1/attachment-0001.bin>


More information about the cfe-commits mailing list