[PATCH] D87627: [clang-tidy] Fix crash in modernize-use-noexcept on uninstantiated throw class

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 19:53:16 PDT 2020


njames93 added a comment.

Please fix the clang-format fail too.



================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-use-noexcept-opt.cpp:23
+// Shouldn't crash due to llvm_unreachable in canThrow() on EST_Uninstantiated
+template <int> class c { void *operator new(size_t) throw (int);};
+void s() { c<1> doesnt_crash; }
----------------
This line is causing tests to fail


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87627



More information about the cfe-commits mailing list