[PATCH] D33537: [clang-tidy] Exception Escape Checker
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 20 10:06:09 PDT 2017
JonasToth added a comment.
> I agree that we should not spend too much effort on making warnings from the compiler and tidy disjunct.
+1
There is an effort to treat clangs frontend warnings similar to clang-tidy checks within clang-tidy. This would allow to manage the overlap as well.
Will this check find stuff like this (or is it part of the frontend)
int throwing() {
throw int(42);
}
int not_throwing() noexcept {
throwing();
}
It would be nice to have a check that could automatically introduce `noexcept` into a codebase for cases it safe. I think this path would be a good place for it.
https://reviews.llvm.org/D33537
More information about the cfe-commits
mailing list