This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy][docs][NFC] Improve documentation of bugprone-unhandled-exception-at-new
ClosedPublic

Authored by balazske on Nov 25 2021, 8:37 AM.

Diff Detail

Event Timeline

balazske created this revision.Nov 25 2021, 8:37 AM
balazske requested review of this revision.Nov 25 2021, 8:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2021, 8:37 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Eugene.Zelenko added inline comments.Nov 25 2021, 9:04 AM
clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-exception-at-new.rst
65

Two excessive newlines.

whisperity added inline comments.
clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-exception-at-new.rst
55

What does

exception types or exceptions

mean?

55

by the code is either superfluous or misleading. Did you mean that the exception should be caught and handled in the same scope where the allocation took place?

60

Is that the warning message the check prints?

60–61
69
whisperity retitled this revision from [clang-tidy] Improve documentation of bugprone-unhandled-exception-at-new [NFC] to [clang-tidy][docs][NFC] Improve documentation of bugprone-unhandled-exception-at-new.Nov 26 2021, 4:28 AM
balazske updated this revision to Diff 390048.Nov 26 2021, 7:06 AM

Apply of review comments.

balazske marked 5 inline comments as done.Nov 26 2021, 7:09 AM
balazske added inline comments.
clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-exception-at-new.rst
55

Now it is probably better. "Other exception" is any thrown exception of other class than the mentioned ones.

60

Warning text is changed to the exact checker's message.

aaron.ballman accepted this revision.Dec 2 2021, 2:03 PM

LGTM aside from a small nit.

clang-tools-extra/docs/clang-tidy/checks/bugprone-unhandled-exception-at-new.rst
16–17
This revision is now accepted and ready to land.Dec 2 2021, 2:03 PM
balazske updated this revision to Diff 391640.Dec 3 2021, 7:34 AM
balazske marked 2 inline comments as done.

Applied the text changes.

This revision was landed with ongoing or failed builds.Dec 3 2021, 7:37 AM
This revision was automatically updated to reflect the committed changes.