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.
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 27536 Build 27535: arc lint + arc unit
Event Timeline
Hmm, i think this diff is incorrect. Doesn't it also include the changes from D57100 ?
yup, needs constant rebasing, i will do a final rebase once the other refactring is in.
Please add tests with lambdas,
test/clang-tidy/modernize-use-noexcept-new-noexcept.cpp | ||
---|---|---|
5–6 | Unused functions. |
clang-tidy/modernize/UseNoexceptCheck.h | ||
---|---|---|
1 | Nit: sorry OCD kicking in... space after tidy and before first - |
Great! However, I would rename the test files: modernize-use-noexcept-opt.cpp is inaccurate since there are multiple options, it could be e.g. modernize-use-noexcept-dont-use-noexcept-false.cpp. modernize-use-noexcept-new-noexcept.cpp is a bit misleading because of the new which is a valid C++ keyword. modernize-use-noexcept-add-missing-noexcept.cpp sounds better for me.
Its on the todolist, but i currently have many things to do in my real life, so no time for clang-tidy development :(
Nit: sorry OCD kicking in... space after tidy and before first -