[PATCH] D57108: [clang-tidy] diagnose possibiltiy to add 'noexcept' in modernize-use-noexcept

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 23 10:54:04 PST 2019


JonasToth created this revision.
JonasToth added reviewers: aaron.ballman, alexfh, hokein.
Herald added subscribers: xazax.hun, mgorny.

This patch utilizes the refactored `ExceptionAnalyzer` for
`modernize-use-noexcept` to diagnose possibilties to introduce `noexcept`
if there is no exception specification at all.
A follow-up patch will then implement the code-transformation if this patch
is useful.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D57108

Files:
  clang-tidy/bugprone/ExceptionEscapeCheck.cpp
  clang-tidy/bugprone/ExceptionEscapeCheck.h
  clang-tidy/modernize/UseNoexceptCheck.cpp
  clang-tidy/modernize/UseNoexceptCheck.h
  clang-tidy/utils/CMakeLists.txt
  clang-tidy/utils/ExceptionAnalyzer.cpp
  clang-tidy/utils/ExceptionAnalyzer.h
  docs/clang-tidy/checks/bugprone-exception-escape.rst
  test/clang-tidy/bugprone-exception-escape.cpp
  test/clang-tidy/modernize-use-noexcept-new-noexcept.cpp
  test/clang-tidy/modernize-use-noexcept-opt.cpp
  test/clang-tidy/modernize-use-noexcept.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57108.183133.patch
Type: text/x-patch
Size: 28458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190123/963328ed/attachment-0001.bin>


More information about the cfe-commits mailing list