This check enforces rule 15.1.
It checks, that all thrown exceptions are of type std::exception (or derived).
Details
- Reviewers
alexfh hokein aaron.ballman jbcoe lebedev.ri
Diff Detail
- Build Status
Buildable 9233 Build 9233: arc lint + arc unit
Event Timeline
clang-tidy/hicpp/ExceptionBaseclassCheck.cpp | ||
---|---|---|
36 | yes. that would be more telling. |
Still got no commit access :(, but i asked already ;)
Could you please apply this patch?
Can you rebase? It does not apply cleanly. Alternatively, you can wait for @lattner to give you your credentials and commit yourself (he's usually pretty quick at getting those out to folks).
Ok, i missed this somehow, and i have some concerns...
https://reviews.llvm.org/rL310727#108850
i did work on the generic code with macros and templates.
i could not reproduce all issues, but in general template exception cause problems with diagnostics and with catching these cases.
the inheritance tree is catched correctly, as far as i can see, maybe you could me with reproducing ur issue @lebedev.ri ?
How about: "throwing an exception whose type is not derived from 'std::exception'" and an accompanying note that points to the declaration of the exception object, if any?