Kazu Hirata
651c502fc8
[clang] Stop including llvm/ADT/DenseSet.h (NFC)
...
Identified with clangd.
2023-11-11 22:25:48 -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
Kazu Hirata
b7a7aeee90
[clang] Qualify auto in range-based for loops (NFC)
2022-09-03 23:27:27 -07: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
a93ff1826b
[Analyzer][NFC] Remove prefix from WebKitNoUncountedMemberChecker name
2020-06-15 14:13:56 -07:00
Jan Korous
a95c08db12
[Analyzer][NoUncountedMembersChecker] Fix crash for C structs
...
Fixes https://bugs.llvm.org/show_bug.cgi?id=46177
Fixes second bug reported in https://bugs.llvm.org/show_bug.cgi?id=46142
2020-06-04 15:57:19 -07:00
Jan Korous
d61ad66050
[Analyzer][WebKit] Check record definition is available in NoUncountedMembers checker
...
isRefCountable asserts that the record passed as an argument has a definition available.
Fixes: https://bugs.llvm.org/show_bug.cgi?id=46142
Differential Revision: https://reviews.llvm.org/D81017
2020-06-02 13:10:36 -07:00
Jan Korous
660cda572d
[Analyzer][WebKit] NoUncountedMembersChecker
...
Differential Revision: https://reviews.llvm.org/D77178
2020-05-27 19:46:32 -07:00