================
@@ -49,7 +49,7 @@ struct RegularException {
// --------------
----------------
localspook wrote:
I see, that makes sense! It seems though that the existing tests already verify
essentially the scenario you describe. The equivalent of your
`RegularException` is `runtime_error`:
https://github.com/llvm/llvm-project/blob/1e985b6ddf023af5782d48c1cce881668fdf6ceb/clang-tools-extra/test/clang-tidy/checkers/bugprone/throw-keyword-missing.cpp#L24-L32
And indeed, the existing tests have lots of cases with intervening
`ExprWithCleanups`: https://godbolt.org/z/vajK9n5eW. It seems the new matcher
handles this correctly because, like you suggested, the check already defaults
to `TK_IgnoreUnlessSpelledInSource`:
https://github.com/llvm/llvm-project/blob/1e985b6ddf023af5782d48c1cce881668fdf6ceb/clang-tools-extra/clang-tidy/bugprone/ThrowKeywordMissingCheck.h#L30-L32
https://github.com/llvm/llvm-project/pull/173748
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits