[all-commits] [llvm/llvm-project] 7f0760: [clang][dataflow] Add support for `value_or` in a ...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Thu Mar 31 06:22:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7f076004e941fe60ab613a218da31a25b09b0925
https://github.com/llvm/llvm-project/commit/7f076004e941fe60ab613a218da31a25b09b0925
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-03-31 (Thu, 31 Mar 2022)
Changed paths:
M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
Log Message:
-----------
[clang][dataflow] Add support for `value_or` in a comparison.
This patch adds limited modeling of the `value_or` method. Specifically, when
used in a particular idiom in a comparison to implicitly check whether the
optional holds a value.
Differential Revision: https://reviews.llvm.org/D122231
More information about the All-commits
mailing list