[all-commits] [llvm/llvm-project] cd22e0: [clang][dataflow] Refine matching of optional type...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Mon Apr 17 11:03:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cd22e0dc9d0b5487eb2d54dd028a2aa439627159
https://github.com/llvm/llvm-project/commit/cd22e0dc9d0b5487eb2d54dd028a2aa439627159
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
Log Message:
-----------
[clang][dataflow] Refine matching of optional types to anchor at top level.
This patch refines the matching of the relevant optional types to anchor on the
global namespace. Previously, we could match anything with the right name
(e.g. `base::Optional`) even if nested within other namespaces. This over
matching resulted in an assertion violation when _different_ `base::Optional`
was encountered nested inside another namespace.
Fixes issue #57036.
Differential Revision: https://reviews.llvm.org/D148344
More information about the All-commits
mailing list