diff options
| author | Florian Mayer <fmayer@google.com> | 2025-10-21 13:50:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 13:50:08 -0700 |
| commit | 419fbf906b7d21808fdf768f07e4791a24b22c99 (patch) | |
| tree | 98de12d60bf1e9b3bae55313a6b5b4c5ff822eea /clang/lib/Frontend/FrontendAction.cpp | |
| parent | f6799d2899ef689a5e4d55beef9b52914d2ae95f (diff) | |
| download | llvm-419fbf906b7d21808fdf768f07e4791a24b22c99.zip llvm-419fbf906b7d21808fdf768f07e4791a24b22c99.tar.gz llvm-419fbf906b7d21808fdf768f07e4791a24b22c99.tar.bz2 | |
[FlowSensitive] [StatusOr] [3/N] Support absl::Status ops (#163868)
`absl::StatusOr::status` allows extraction of the status associated with
a StatusOr value. That can also be used to check whether the StatusOr
has a value or not.
This makes sure code like this is checked properly:
```cpp
int target(absl::StatusOr<int> SOR) {
if (SOR.status().ok())
return *SOR;
return 0;
}
```
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
0 files changed, 0 insertions, 0 deletions
