[PATCH] D52880: [clang-tidy] fix PR39167, bugprone-exception-escape hangs-up

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 4 04:10:43 PDT 2018


lebedev.ri added a comment.

In https://reviews.llvm.org/D52880#1255035, @JonasToth wrote:

> In https://reviews.llvm.org/D52880#1255031, @lebedev.ri wrote:
>
> > Needs a test.
>
>
> How shall i test it? It feels that this condition should have been there from the beginning on, as the check only makes sense in c++ and with exceptions.


I'm guessing you need a run line with `-x c`, and with `-x c++ -fno-exceptions`, not sure about the contents of the file, but the clang-tidy crashes are easy to creduce.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52880





More information about the cfe-commits mailing list