[all-commits] [llvm/llvm-project] a184a0: [clang][dataflow] Add support for disabling warnin...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Fri Mar 25 09:45:07 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a184a0d8aae6efc1d7f19a900155b8694178d617
https://github.com/llvm/llvm-project/commit/a184a0d8aae6efc1d7f19a900155b8694178d617
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-03-25 (Fri, 25 Mar 2022)
Changed paths:
M clang/include/clang/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.h
M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
Log Message:
-----------
[clang][dataflow] Add support for disabling warnings on smart pointers.
This patch provides the user with the ability to disable all checked of accesses
to optionals that are the pointees of smart pointers. Since smart pointers are
not modeled (yet), the system cannot distinguish safe from unsafe accesses to
optionals through smart pointers. This results in false positives whenever
optionals are used through smart pointers. The patch gives the user the choice
of ignoring all positivess in these cases.
Differential Revision: https://reviews.llvm.org/D122143
More information about the All-commits
mailing list