[clang-tidy] suggest adding `noexcept` to non-throwing functions
Open
check-request
clang-tidy
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
It could be helpful to suggest to add `noexcept` to functions which are not throwing.
I understand that this would be an extremely noisy check but it would provide an opposite approach to more robust exception handling to `bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing: OnlyUndefined`.
Contributor guide
Research direction
Start with clang-tidy and the bugprone-exception-escape check, especially TreatFunctionsWithoutSpecificationAsThrowing: OnlyUndefined. Determine the intended scope and noise policy for suggesting noexcept, then establish the check behavior and test expectations before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100