Ryosuke Niwa
09273d408d
Fix WebKit static analyzers to support ref and deref methods to be defined on different classes. ( #69985 )
2023-11-10 12:21:36 -08:00
Vlad Serebrennikov
edd690b02e
[clang][NFC] Refactor TagTypeKind ( #71160 )
...
This patch converts TagTypeKind into scoped enum. Among other benefits,
this allows us to forward-declare it where necessary.
2023-11-03 21:45:39 +04:00
Kazu Hirata
6ad0788c33
[clang] Use std::optional instead of llvm::Optional (NFC)
...
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to remove #include "llvm/ADT/Optional.h".
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-14 12:31:01 -08:00
Kazu Hirata
a1580d7b59
[clang] Add #include <optional> (NFC)
...
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with
std::optional.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-14 11:07:21 -08:00
Jan Korous
47e6851423
[Analyzer][WebKit] Use tri-state types for relevant predicates
...
Some of the predicates can't always be decided - for example when a type
definition isn't available. At the same time it's necessary to let
client code decide what to do about such cases - specifically we can't
just use true or false values as there are callees with
conflicting strategies how to handle this.
This is a speculative fix for PR47276.
Differential Revision: https://reviews.llvm.org/D88133
2020-09-22 21:57:24 -07:00
Jan Korous
54e91a3c70
Reland "[Analyzer][WebKit] RefCntblBaseVirtualDtorChecker"
...
This reverts commit 1108f5c737dbdab0277874a7e5b237491839c43a.
2020-05-21 16:41:00 -07:00
Nico Weber
1108f5c737
Revert "[Analyzer][WebKit] RefCntblBaseVirtualDtorChecker"
...
This reverts commit f7c7e8a523f56b0ed1b14c0756ba4e5d1ccb48d2.
Breaks build everywhere.
2020-05-21 15:49:46 -04:00
Jan Korous
f7c7e8a523
[Analyzer][WebKit] RefCntblBaseVirtualDtorChecker
...
Differential Revision: https://reviews.llvm.org/D77177
2020-05-21 11:54:49 -07:00