Removes a reference to google-internal document and expands the relevant material in place.
Fixes #60633.
Paths
| Differential D143750
[clang-tidy] Clarify documention of `bugprone-unchecked-optional-access`. ClosedPublic Authored by ymandel on Feb 10 2023, 8:55 AM.
Details Summary Removes a reference to google-internal document and expands the relevant material in place. Fixes #60633.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Feb 10 2023, 10:10 AM This revision was landed with ongoing or failed builds.Feb 10 2023, 10:15 AM Closed by commit rGe7e577f68421: [clang-tidy] Clarify documention of `bugprone-unchecked-optional-access`. (authored by ymandel). · Explain Why This revision was automatically updated to reflect the committed changes. ymandel marked an inline comment as done.
Revision Contents
Diff 496542 clang-tools-extra/docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst
|
Strictly speaking, value on an empty optional will not terminate the program. It will raise an exception that can be handled.
(Of course, at Google, exceptions are banned so termination is right in that context.)