[clang-tools-extra] [NFC][clang-tidy] Update documentation for StatusOr check. (PR #176498)
Rohan Jacob-Rao via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 16 16:25:03 PST 2026
================
@@ -132,16 +132,16 @@ status check:
.. code:: cpp
- void f1(absl::StatusOr<int> sor) {
- use(*sor); // unsafe: it is unclear whether the status of `sor` is ok.
+ void f1(absl::StatusOr<int> x) {
+ use(*x); // unsafe: it is unclear whether the status of `x` is ok.
}
- void f2(absl::StatusOr<MyStruct> sor) {
- use(sor->member); // unsafe: it is unclear whether the status of `sor` is ok.
+ void f2(absl::StatusOr<MyStruct> s) {
----------------
rohanjr wrote:
Done, thanks.
https://github.com/llvm/llvm-project/pull/176498
More information about the cfe-commits
mailing list